summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-10-09 03:06:50 +0000
committerWayne Davison <wayned@samba.org>2006-10-09 03:06:50 +0000
commitdb3ae95cacce2aa0ffd8a43edddd1a8789c474e4 (patch)
tree5ffb83576babd66679f94faf00781c2f1956a87b /testsuite
parent1a05de2bff5c9a61777e1615f4363fd957711d8e (diff)
downloadrsync-db3ae95cacce2aa0ffd8a43edddd1a8789c474e4.tar.gz
Made some of the --link-dest tests use a relative destination
directory, and made one of those do a --dry-run test before the regular test.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/itemize.test17
1 files changed, 14 insertions, 3 deletions
diff --git a/testsuite/itemize.test b/testsuite/itemize.test
index c77ace5f..ca369eeb 100644
--- a/testsuite/itemize.test
+++ b/testsuite/itemize.test
@@ -130,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 <<EOT >"$chkfile"
@@ -147,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 <<EOT >"$chkfile"
.d..t.... ./
@@ -194,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 <<EOT >"$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 <<EOT >"$chkfile"
.d..t.... ./