X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/06464f55e26e1f26e10c04f4a11a4d85fadbd5f7..d2f6e192623989eac4015582e1e20f61499cc782:/testsuite/daemon.test diff --git a/testsuite/daemon.test b/testsuite/daemon.test index 54865053..439b8835 100644 --- a/testsuite/daemon.test +++ b/testsuite/daemon.test @@ -24,8 +24,29 @@ . "$suitedir/rsync.fns" +SSH="$scratchdir/pretend-ssh" + +cat >"$SSH" <<'EOT' +while : ; do + case "$1" in + -*) shift ;; + localhost) shift; break ;; + *) exit 1 ;; + esac +done + +eval "${@}" +EOT +chmod +x "$SSH" + build_rsyncd_conf +cd "$scratchdir" + +ln -s test-rsyncd.conf rsyncd.conf + +$RSYNC -ve $SSH --rsync-path="$RSYNC" localhost:: + RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon" export RSYNC_CONNECT_PROG