aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/cp')
-rw-r--r--testsuite/cp/cp-copies-empty-file3
-rw-r--r--testsuite/cp/cp-copies-large-file3
-rw-r--r--testsuite/cp/cp-copies-small-file3
-rw-r--r--testsuite/cp/cp-follows-links4
-rw-r--r--testsuite/cp/cp-preserves-links4
-rw-r--r--testsuite/cp/cp-preserves-source-file3
6 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/cp/cp-copies-empty-file b/testsuite/cp/cp-copies-empty-file
new file mode 100644
index 000000000..ad25aa12e
--- /dev/null
+++ b/testsuite/cp/cp-copies-empty-file
@@ -0,0 +1,3 @@
+touch foo
+busybox cp foo bar
+cmp foo bar
diff --git a/testsuite/cp/cp-copies-large-file b/testsuite/cp/cp-copies-large-file
new file mode 100644
index 000000000..c2225c6d8
--- /dev/null
+++ b/testsuite/cp/cp-copies-large-file
@@ -0,0 +1,3 @@
+dd if=/dev/zero of=foo seek=10k count=1 2>/dev/null
+busybox cp foo bar
+cmp foo bar
diff --git a/testsuite/cp/cp-copies-small-file b/testsuite/cp/cp-copies-small-file
new file mode 100644
index 000000000..d52a887c0
--- /dev/null
+++ b/testsuite/cp/cp-copies-small-file
@@ -0,0 +1,3 @@
+echo I WANT > foo
+busybox cp foo bar
+cmp foo bar
diff --git a/testsuite/cp/cp-follows-links b/testsuite/cp/cp-follows-links
new file mode 100644
index 000000000..2d9f05e9f
--- /dev/null
+++ b/testsuite/cp/cp-follows-links
@@ -0,0 +1,4 @@
+touch foo
+ln -s foo bar
+busybox cp bar baz
+test -f baz
diff --git a/testsuite/cp/cp-preserves-links b/testsuite/cp/cp-preserves-links
new file mode 100644
index 000000000..a5269e8d3
--- /dev/null
+++ b/testsuite/cp/cp-preserves-links
@@ -0,0 +1,4 @@
+touch foo
+ln -s foo bar
+busybox cp -d bar baz
+test -L baz
diff --git a/testsuite/cp/cp-preserves-source-file b/testsuite/cp/cp-preserves-source-file
new file mode 100644
index 000000000..f0f5065f4
--- /dev/null
+++ b/testsuite/cp/cp-preserves-source-file
@@ -0,0 +1,3 @@
+touch foo
+busybox cp foo bar
+test -f foo