From: Wayne Davison Date: Fri, 10 Nov 2006 07:37:51 +0000 (+0000) Subject: Changed how we deal with the alternate-dest directory because X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/989b0b8802ab572596ecfece5aeb1afc04cb824c Changed how we deal with the alternate-dest directory because some systems change the time on a directory that gets moved. --- diff --git a/testsuite/itemize.test b/testsuite/itemize.test index 06b73fa8..fb1f3181 100644 --- a/testsuite/itemize.test +++ b/testsuite/itemize.test @@ -10,7 +10,7 @@ . "$suitedir/rsync.fns" -lddir="$tmpdir/ld" +to2dir="$tmpdir/to2" chkfile="$scratchdir/rsync.chk" outfile="$scratchdir/rsync.out" @@ -134,8 +134,7 @@ cat <"$chkfile" EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 7 failed" -mv "$todir" "$lddir" -$RSYNC -ivvplrtH --copy-dest=../ld "$fromdir/" "$todir/" \ +$RSYNC -ivvplrtH --copy-dest=../to "$fromdir/" "$to2dir/" \ | tee "$outfile" filter_outfile cat <"$chkfile" @@ -151,16 +150,16 @@ cL foo/sym -> ../bar/baz/rsync EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 8 failed" -rm -rf "$todir" -$RSYNC -iplrtH --copy-dest=../ld "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -iplrtH --copy-dest=../to "$fromdir/" "$to2dir/" \ | tee "$outfile" cat <"$chkfile" hf foo/extra => foo/config1 EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 9 failed" -rm -rf "$todir" -$RSYNC -vvplrtH --copy-dest="$lddir" "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -vvplrtH --copy-dest="$todir" "$fromdir/" "$to2dir/" \ | tee "$outfile" filter_outfile cat <"$chkfile" @@ -177,8 +176,8 @@ foo/sym is uptodate EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 10 failed" -rm -rf "$todir" -$RSYNC -ivvplrtH --link-dest="$lddir" "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -ivvplrtH --link-dest="$todir" "$fromdir/" "$to2dir/" \ | tee "$outfile" filter_outfile cat <"$chkfile" @@ -194,22 +193,22 @@ $L foo/sym -> ../bar/baz/rsync EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 11 failed" -rm -rf "$todir" -$RSYNC -iplrtH --dry-run --link-dest=../ld "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -iplrtH --dry-run --link-dest=../to "$fromdir/" "$to2dir/" \ | tee "$outfile" cat <"$chkfile" EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 12 failed" -rm -rf "$todir" -$RSYNC -iplrtH --link-dest=../ld "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -iplrtH --link-dest=../to "$fromdir/" "$to2dir/" \ | tee "$outfile" cat <"$chkfile" EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 13 failed" -rm -rf "$todir" -$RSYNC -vvplrtH --link-dest="$lddir" "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -vvplrtH --link-dest="$todir" "$fromdir/" "$to2dir/" \ | tee "$outfile" filter_outfile cat <"$chkfile" @@ -225,8 +224,8 @@ foo/sym is uptodate EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 14 failed" -rm -rf "$todir" -$RSYNC -ivvplrtH --compare-dest="$lddir" "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -ivvplrtH --compare-dest="$todir" "$fromdir/" "$to2dir/" \ | tee "$outfile" filter_outfile # TODO fix really-old problem when combining -H with --compare-dest: @@ -243,15 +242,15 @@ cd foo/ EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 15 failed" -rm -rf "$todir" -$RSYNC -iplrtH --compare-dest="$lddir" "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -iplrtH --compare-dest="$todir" "$fromdir/" "$to2dir/" \ | tee "$outfile" cat <"$chkfile" EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 16 failed" -rm -rf "$todir" -$RSYNC -vvplrtH --compare-dest="$lddir" "$fromdir/" "$todir/" \ +rm -rf "$to2dir" +$RSYNC -vvplrtH --compare-dest="$todir" "$fromdir/" "$to2dir/" \ | tee "$outfile" filter_outfile cat <"$chkfile"