From: Wayne Davison Date: Wed, 21 Jul 2004 21:06:13 +0000 (+0000) Subject: Improved the test a little. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/3381b77d712fc5b9627fec458eb7e4d1bc166d86 Improved the test a little. --- diff --git a/testsuite/compare-dest.test b/testsuite/compare-dest.test index 28dbda1c..1ddbf78b 100644 --- a/testsuite/compare-dest.test +++ b/testsuite/compare-dest.test @@ -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