X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/165dd4a6367ac95282f46ab017159f6e852abdc2..db3ae95cacce2aa0ffd8a43edddd1a8789c474e4:/testsuite/itemize.test diff --git a/testsuite/itemize.test b/testsuite/itemize.test index 6237207f..ca369eeb 100644 --- a/testsuite/itemize.test +++ b/testsuite/itemize.test @@ -2,7 +2,7 @@ # Copyright (C) 2005 by Wayne Davison -# This program is distributable under the terms of the GNU GPL see +# This program is distributable under the terms of the GNU GPL (see # COPYING). # Test the output of various copy commands to ensure itemized output @@ -10,26 +10,11 @@ . "$suitedir/rsync.fns" -set -x - lddir="$tmpdir/ld" chkfile="$scratchdir/rsync.chk" outfile="$scratchdir/rsync.out" -# This is only called if rsync was run with -v or -vv (not -i alone). -# Higher levels of -v would require more filtering. -filter_outfile() { - sed -e '/^building file list /d' \ - -e '/^created directory /d' \ - -e '/^done$/d' \ - -e '/ --whole-file$/d' \ - -e '/^total: /d' \ - -e '/^$/,$d' \ - <"$outfile" >"$outfile.new" - mv "$outfile.new" "$outfile" -} - makepath "$fromdir/foo" makepath "$fromdir/bar/baz" cp -p "$srcdir/configure.in" "$fromdir/foo/config1" @@ -145,7 +130,7 @@ EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 7 failed" mv "$todir" "$lddir" -$RSYNC -ivvplrtH --copy-dest="$lddir" "$fromdir/" "$todir/" \ +$RSYNC -ivvplrtH --copy-dest=../ld "$fromdir/" "$todir/" \ | tee "$outfile" filter_outfile cat <"$chkfile" @@ -162,7 +147,7 @@ EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 8 failed" rm -rf "$todir" -$RSYNC -iplrtH --copy-dest="$lddir" "$fromdir/" "$todir/" \ +$RSYNC -iplrtH --copy-dest=../ld "$fromdir/" "$todir/" \ | tee "$outfile" cat <"$chkfile" .d..t.... ./ @@ -209,7 +194,18 @@ EOT diff $diffopt "$chkfile" "$outfile" || test_fail "test 11 failed" rm -rf "$todir" -$RSYNC -iplrtH --link-dest="$lddir" "$fromdir/" "$todir/" \ +$RSYNC -iplrtH --dry-run --link-dest=../ld "$fromdir/" "$todir/" \ + | tee "$outfile" +cat <"$chkfile" +cd+++++++ ./ +cd+++++++ bar/ +cd+++++++ bar/baz/ +cd+++++++ foo/ +EOT +diff $diffopt "$chkfile" "$outfile" || test_fail "test 12 failed" + +rm -rf "$todir" +$RSYNC -iplrtH --link-dest=../ld "$fromdir/" "$todir/" \ | tee "$outfile" cat <"$chkfile" .d..t.... ./