aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cp
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-10-30 23:11:20 +0000
committerMatt Kraai <kraai@debian.org>2001-10-30 23:11:20 +0000
commit3889078dbe09a9d85b359e9c0c0c225e0bbea343 (patch)
treee258582c0f14f06750e480e2c244260e79860fd0 /testsuite/cp
parent999623e9736d21177d1f437679b334e0347a6e0f (diff)
downloadbusybox-3889078dbe09a9d85b359e9c0c0c225e0bbea343.tar.gz
Merge test suite.
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