aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-03-16 20:02:36 +0000
committerWayne Davison <wayned@samba.org>2006-03-16 20:02:36 +0000
commit4209f079dd049759eed3448b3625a90ecd1ee69a (patch)
tree60651dc5486eccfe65460eaed046a57deb800685 /testsuite
parenta7704777cee14bb3d0cb3a288ee44a620fca8a59 (diff)
downloadandroid_external_rsync-4209f079dd049759eed3448b3625a90ecd1ee69a.tar.gz
android_external_rsync-4209f079dd049759eed3448b3625a90ecd1ee69a.tar.bz2
android_external_rsync-4209f079dd049759eed3448b3625a90ecd1ee69a.zip
Make sure that the --relative test creates the implied directories
with user-write permission, and turns any symlinks in the implied dirs into real dirs.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/exclude.test7
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/exclude.test b/testsuite/exclude.test
index 9337560a..e412d306 100644
--- a/testsuite/exclude.test
+++ b/testsuite/exclude.test
@@ -203,11 +203,12 @@ $RSYNC -av --delete-excluded --exclude='*' "$fromdir/" "$todir/"
checkit "$RSYNC -avv -f dir-merge,-_.excl \
\"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
-$RSYNC -avR "$fromdir/foo" "$chkdir/"
+relative_opts='--relative --chmod=Du+w --copy-unsafe-links'
+$RSYNC -av $relative_opts "$fromdir/foo" "$chkdir/"
rm -rf "$chkdir$fromdir/foo/down"
-$RSYNC -avR --existing --filter='-! */' "$fromdir/foo" "$chkdir/"
+$RSYNC -av $relative_opts --existing --filter='-! */' "$fromdir/foo" "$chkdir/"
-checkit "$RSYNC -avvR --exclude=\"$fromdir/foo/down\" \
+checkit "$RSYNC -avv $relative_opts --exclude=\"$fromdir/foo/down\" \
\"$fromdir/foo\" \"$todir\"" "$chkdir$fromdir/foo" "$todir$fromdir/foo"
# The script would have aborted on error, so getting here means we've won.