X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/371d1c36b33d89b3a2c0defc0888440e6d18660a..4c631ac621e34e712f25045bd721876c173e6709:/testsuite/rsync.fns diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 6aee8de6..f9660d62 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -201,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 } @@ -239,5 +241,10 @@ test_xfail() { exit 78 } +# Test whether something is a link, allowing for shell peculiarities +is_a_link() { + test -L "$1" || test -h "$1" || /usr/bin/test -L "$1" || /usr/bin/test -h "$1" +} + # be reproducible umask 077 \ No newline at end of file