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:
126642b
)
Test more permutations.
author
Martin Pool
<mbp@samba.org>
Fri, 5 Apr 2002 07:13:01 +0000
(07:13 +0000)
committer
Martin Pool
<mbp@samba.org>
Fri, 5 Apr 2002 07:13:01 +0000
(07:13 +0000)
testsuite/unsafe-links.test
patch
|
blob
|
blame
|
history
diff --git
a/testsuite/unsafe-links.test
b/testsuite/unsafe-links.test
index
edf4b5f
..
faaa6b2
100644
(file)
--- a/
testsuite/unsafe-links.test
+++ b/
testsuite/unsafe-links.test
@@
-14,12
+14,6
@@
test_regular() {
fi;
};
fi;
};
-test_copy() {
- test_symlink to/links/file1
- test_symlink to/links/file2
- test_regular to/links/unsafefile
-}
-
cd "$TMP"
mkdir from
cd "$TMP"
mkdir from
@@
-38,21
+32,40
@@
ln -s ../files/file1 "from/safe/links/"
ln -s ../files/file2 "from/safe/links/"
ln -s ../../unsafe/unsafefile "from/safe/links/"
ln -s ../files/file2 "from/safe/links/"
ln -s ../../unsafe/unsafefile "from/safe/links/"
-#next rsync copy correctly
set -x
set -x
-echo "rsync with relative path";
+
+echo "rsync with relative path and just -a";
+rsync -avv from/safe/ to
+test_symlink to/links/file1
+test_symlink to/links/file2
+test_symlink to/links/unsafefile
+
+echo "rsync with relative path and -a --copy-links"
+rsync -avv --copy-links from/safe/ to
+test_regular to/links/file1
+test_regular to/links/file2
+test_regular to/links/unsafefile
+
+#next rsync copy correctly
+echo "rsync with relative path and --copy-unsafe-links";
rsync -avv --copy-unsafe-links from/safe/ to
rsync -avv --copy-unsafe-links from/safe/ to
-test_copy;
+test_symlink to/links/file1
+test_symlink to/links/file2
+test_regular to/links/unsafefile
rm -rf to
rm -rf to
-#next rsync copy
unco
rectly - links are copied as files not as links
+#next rsync copy
incor
rectly - links are copied as files not as links
echo "rsync with relative2 path";
(cd from; rsync -avv --copy-unsafe-links safe/ ../to)
echo "rsync with relative2 path";
(cd from; rsync -avv --copy-unsafe-links safe/ ../to)
-test_copy;
+test_symlink to/links/file1
+test_symlink to/links/file2
+test_regular to/links/unsafefile
rm -rf to
#next rsync copy uncorectly - all links are copied
echo "rsync with absolute path";
rsync -avv --copy-unsafe-links `pwd`/from/safe/ to
rm -rf to
#next rsync copy uncorectly - all links are copied
echo "rsync with absolute path";
rsync -avv --copy-unsafe-links `pwd`/from/safe/ to
-test_copy;
+test_symlink to/links/file1
+test_symlink to/links/file2
+test_regular to/links/unsafefile