aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-03-26 00:54:56 -0500
committerRob Landley <rob@landley.net>2008-03-26 00:54:56 -0500
commit50c8c023358645195585f1503bfb97e2fb92c940 (patch)
tree8ba8b81f17438a05a7dbd2022c6c2c90909a7f82 /scripts
parent5ba6663ad463973a39fd65397f9ebda52657eb7c (diff)
downloadtoybox-50c8c023358645195585f1503bfb97e2fb92c940.tar.gz
Another cp -r fix, another test case...
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test/cp.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/test/cp.test b/scripts/test/cp.test
index fcbab0e5..cd920de9 100755
--- a/scripts/test/cp.test
+++ b/scripts/test/cp.test
@@ -78,10 +78,12 @@ touch one/{six,seven,eight}
testing "cp -r /abspath dest" \
"cp -r \"$(readlink -f one)\" dir && diff -r one dir && echo yes" \
"yes\n" "" ""
+testing "cp -r dir again" "cp -r one/. dir && diff -r one dir && echo yes" \
+ "yes\n" "" ""
mkdir dir2
testing "cp -r dir1/* dir2" \
"cp -r one/* dir2 && diff -r one dir2 && echo yes" "yes\n" "" ""
-rm -rf one dir2
+rm -rf one dir dir2
# cp -r ../source destdir
# cp -r one/two/three missing