X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cf72f20426c4b6c9c2467185f85e09e0028d39b6..604f343c49fcc8ec396e439cc6146a862a111405:/testsuite/rsync.fns diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 2d27a8c3..41f3354b 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -150,7 +150,11 @@ checkit() { echo "-------------" echo "check how the files compare with diff:" echo "" - diff -cr $2 $3 || failed=YES + for f in `cd "$2"; find . -type f -print ` + do + diff -c "$2"/"$f" "$3"/"$f" || failed=YES + done + echo "-------------" echo "check how the directory listings compare with diff:" echo "" @@ -197,10 +201,12 @@ use chroot = no hosts allow = localhost, 127.0.0.1 log file = $logfile -[test-from] = $scratchdir/daemon-from/ +[test-from] + path = $FROM read only = yes -[test-to] = $scratchdir/daemon-to/ +[test-to] + path = $TO read only = no EOF } @@ -222,5 +228,18 @@ test_fail() { exit 1 } +test_skipped() { + echo "$@" >&2 + exit 77 +} + +# It failed, but we expected that. don't dump out error logs, +# because most users won't want to see them. But do leave +# the working directory around. +test_xfail() { + echo "$@" >&2 + exit 78 +} + # be reproducible umask 077 \ No newline at end of file