X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/2e6c7f454924fe6e289d054d67f89dda3c2875c6..69b06c50c4a2a94adbf0ca1d3eaef02fab511390:/testsuite/rsync.fns diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 41f3354b..cf4037dd 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -24,6 +24,9 @@ TO=${TMP}/to LOG=${TMP}/log RSYNC="$rsync_bin" +# Berkley's nice. +PATH="$PATH:/usr/ucb" + runtest() { echo $ECHO_N "Test $1: $ECHO_C" if eval "$2" @@ -241,5 +244,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