Implement --tweak, --no-tweak, --no-tweak-hlinked options.
[rsync/rsync.git] / testsuite / rsync.fns
index de62866..441fbb4 100644 (file)
@@ -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.