Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3a72cc2
)
If the OS can't hard-link a symlink, tweak the expected output
author
Wayne Davison
<wayned@samba.org>
Fri, 10 Nov 2006 06:27:35 +0000
(06:27 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 10 Nov 2006 06:27:35 +0000
(06:27 +0000)
when using --link-dest.
testsuite/itemize.test
patch
|
blob
|
blame
|
history
diff --git
a/testsuite/itemize.test
b/testsuite/itemize.test
index
9620a02
..
06b73fa
100644
(file)
--- a/
testsuite/itemize.test
+++ b/
testsuite/itemize.test
@@
-26,6
+26,10
@@
ln -s ../bar/baz/rsync "$fromdir/foo/sym"
umask 022
ln "$fromdir/foo/config1" "$fromdir/foo/extra"
umask 022
ln "$fromdir/foo/config1" "$fromdir/foo/extra"
+# Check if the OS can hard-link symlinks or not
+ln "$fromdir/foo/sym" "$fromdir/foo/sym.test" && L=hL || L=cL
+rm -f "$fromdir/foo/sym.test"
+
$RSYNC -iplr "$fromdir/" "$todir/" \
| tee "$outfile"
cat <<EOT >"$chkfile"
$RSYNC -iplr "$fromdir/" "$todir/" \
| tee "$outfile"
cat <<EOT >"$chkfile"
@@
-186,7
+190,7
@@
cd foo/
hf foo/config1
hf foo/config2
hf foo/extra => foo/config1
hf foo/config1
hf foo/config2
hf foo/extra => foo/config1
-
h
L foo/sym -> ../bar/baz/rsync
+
$
L foo/sym -> ../bar/baz/rsync
EOT
diff $diffopt "$chkfile" "$outfile" || test_fail "test 11 failed"
EOT
diff $diffopt "$chkfile" "$outfile" || test_fail "test 11 failed"