Commit 3381b77d authored by Wayne Davison's avatar Wayne Davison

Improved the test a little.

parent dce70db3
......@@ -20,11 +20,17 @@ altdir="$tmpdir/alt"
hands_setup
# Setup the chk and alt dirs
$RSYNC -av --exclude=text "$fromdir/" "$chkdir/"
# Setup the alt and chk dirs
$RSYNC -av --include=text --include='*/' --exclude='*' "$fromdir/" "$altdir/"
checkit "$RSYNC -avv --compare-dest=\"$altdir\" \"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
sleep 1
touch "$fromdir/dir/text"
$RSYNC -av --exclude=/text "$fromdir/" "$chkdir/"
# Let's do it!
checkit "$RSYNC -avv --no-whole-file --compare-dest=\"$altdir\" \
\"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
# The script would have aborted on error, so getting here means we've won.
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment