X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0abda1b176b0cb95f5a177d5206ddbada9f74787..981b202661f03cf51c79a3369344f95dc0fc35c3:/testsuite/compare-dest.test diff --git a/testsuite/compare-dest.test b/testsuite/compare-dest.test index 66be4c36..116ca001 100644 --- a/testsuite/compare-dest.test +++ b/testsuite/compare-dest.test @@ -9,25 +9,31 @@ . "$suitedir/rsync.fns" -set -x - -altdir="$tmpdir/alt" +alt1dir="$tmpdir/alt1" +alt2dir="$tmpdir/alt2" # Build some files/dirs/links to copy +set -x + 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" -$RSYNC -av --exclude=/text "$fromdir/" "$chkdir/" +$RSYNC -av --exclude=/text --exclude=etc-ltr-list "$fromdir/" "$chkdir/" # 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" +#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