Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ee29752
)
Added tests for multiple --compare-dest options and --copy-dest.
author
Wayne Davison
<wayned@samba.org>
Sat, 27 Nov 2004 17:59:48 +0000
(17:59 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 27 Nov 2004 17:59:48 +0000
(17:59 +0000)
testsuite/compare-dest.test
patch
|
blob
|
blame
|
history
diff --git
a/testsuite/compare-dest.test
b/testsuite/compare-dest.test
index
66be4c3
..
cc2eb79
100644
(file)
--- a/
testsuite/compare-dest.test
+++ b/
testsuite/compare-dest.test
@@
-11,23
+11,29
@@
set -x
set -x
-altdir="$tmpdir/alt"
+alt1dir="$tmpdir/alt1"
+alt2dir="$tmpdir/alt2"
# Build some files/dirs/links to copy
hands_setup
# Setup the alt and chk dirs
# Build some files/dirs/links to copy
hands_setup
# Setup the alt and chk dirs
-$RSYNC -av --include=text --include='*/' --exclude='*' "$fromdir/" "$altdir/"
+$RSYNC -av --include=text --include='*/' --exclude='*' "$fromdir/" "$alt1dir/"
+$RSYNC -av --include=etc-ltr-list --include='*/' --exclude='*' "$fromdir/" "$alt2dir/"
sleep 1
touch "$fromdir/dir/text"
sleep 1
touch "$fromdir/dir/text"
-$RSYNC -av --exclude=/text "$fromdir/" "$chkdir/"
+$RSYNC -av --exclude=/text
--exclude=etc-ltr-list
"$fromdir/" "$chkdir/"
# Let's do it!
# Let's do it!
-checkit "$RSYNC -avv --no-whole-file --compare-dest=\"$altdir\" \
+checkit "$RSYNC -avv --no-whole-file \
+ --compare-dest=\"$alt1dir\" --compare-dest=\"$alt2dir\" \
\"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
\"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
+checkit "$RSYNC -avv --no-whole-file \
+ --copy-dest=\"$alt1dir\" --copy-dest=\"$alt2dir\" \
+ \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
# The script would have aborted on error, so getting here means we've won.
exit 0
# The script would have aborted on error, so getting here means we've won.
exit 0