aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cp
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-30 23:11:20 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-30 23:11:20 +0000
commit6fd181afd97102bb355120d6a384a9fd5de932c8 (patch)
treee258582c0f14f06750e480e2c244260e79860fd0 /testsuite/cp
parent99f25757d3ddfdbe764f04ee037b19b748b7caec (diff)
downloadbusybox-w32-6fd181afd97102bb355120d6a384a9fd5de932c8.tar.gz
busybox-w32-6fd181afd97102bb355120d6a384a9fd5de932c8.tar.bz2
busybox-w32-6fd181afd97102bb355120d6a384a9fd5de932c8.zip
Merge test suite.
git-svn-id: svn://busybox.net/trunk/busybox@3603 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 @@
1touch foo
2busybox cp foo bar
3cmp 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 @@
1dd if=/dev/zero of=foo seek=10k count=1 2>/dev/null
2busybox cp foo bar
3cmp 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 @@
1echo I WANT > foo
2busybox cp foo bar
3cmp 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 @@
1touch foo
2ln -s foo bar
3busybox cp bar baz
4test -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 @@
1touch foo
2ln -s foo bar
3busybox cp -d bar baz
4test -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 @@
1touch foo
2busybox cp foo bar
3test -f foo