X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f87fb190b3bd1250a07ff12161db2107d7717263..47f43c023bc68f58a1e58501e72276d93876523d:/runtests.sh diff --git a/runtests.sh b/runtests.sh index c401ac45..5e54e177 100755 --- a/runtests.sh +++ b/runtests.sh @@ -154,12 +154,21 @@ fi RSYNC="$rsync_bin $*" #RSYNC="valgrind $rsync_bin $*" -export POSIXLY_CORRECT TOOLDIR srcdir RSYNC +TLS_ARGS='' +if egrep '^#define HAVE_LUTIMES 1' "$srcdir/config.h" >/dev/null; then + TLS_ARGS="$TLS_ARGS -l" +fi +if egrep '#undef CHOWN_MODIFIES_SYMLINK' "$srcdir/config.h" >/dev/null; then + TLS_ARGS="$TLS_ARGS -L" +fi + +export POSIXLY_CORRECT TOOLDIR srcdir RSYNC TLS_ARGS echo "============================================================" echo "$0 running in $TOOLDIR" echo " rsync_bin=$RSYNC" echo " srcdir=$srcdir" +echo " TLS_ARGS=$TLS_ARGS" if [ -f /usr/bin/whoami ]; then testuser=`/usr/bin/whoami`