aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-04-18 13:35:56 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-04-18 13:35:56 +0000
commitc6a99b993d2a97792eb122255ec84cbcae7b55e0 (patch)
tree1e4b6dd93de4a88747d0362f282ba73741ce9c1b
parent7ff33f1b42a913e4e02788dfa15f36ba853a3b51 (diff)
downloadbusybox-c6a99b993d2a97792eb122255ec84cbcae7b55e0.tar.gz
Add two fundamental tests for copying directories
-rw-r--r--testsuite/cp/cp-dir-create-dir4
-rw-r--r--testsuite/cp/cp-dir-existing-dir5
2 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/cp/cp-dir-create-dir b/testsuite/cp/cp-dir-create-dir
new file mode 100644
index 000000000..2c89af67e
--- /dev/null
+++ b/testsuite/cp/cp-dir-create-dir
@@ -0,0 +1,4 @@
+mkdir bar
+touch bar/baz
+busybox cp -R bar foo
+test -f foo/baz
diff --git a/testsuite/cp/cp-dir-existing-dir b/testsuite/cp/cp-dir-existing-dir
new file mode 100644
index 000000000..5ba3f8e33
--- /dev/null
+++ b/testsuite/cp/cp-dir-existing-dir
@@ -0,0 +1,5 @@
+mkdir bar
+touch bar/baz
+mkdir foo
+busybox cp -R bar foo
+test -f foo/bar/baz