X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cb8988eb4ab8147ef832c03bc01902ce3be4dcf5..refs/heads/old/matt:/testsuite/rsync.fns diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index de628665..441fbb49 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -78,7 +78,7 @@ rsync_ls_lR() { } check_perms() { - perms=`"$TOOLDIR/tls" "$1" | sed 's/^[-d]\(.........\).*/\1/'` + perms=`"$TOOLDIR/tls" "$1" | sed 's/^[-dlp]\(.........\).*/\1/'` if test $perms = $2; then return 0 fi @@ -91,6 +91,10 @@ rsync_getgroups() { "$TOOLDIR/getgroups" } +confile=`echo "$scratchdir" | sed 's;/testtmp/[^/]*$;/config.h;'` +config_test() { + egrep "^#define $1 1" "$confile" >/dev/null +} #################### # Build test directories $todir and $fromdir, with $fromdir full of files.