aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cp
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-04-06 11:10:30 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-04-06 11:10:30 +0000
commit17e30540dae473d4885f86e6d7f6a7862db7e14e (patch)
tree660b1fb0e4d7f99802a85cdd00166fafbf3132dc /testsuite/cp
parent29780bd0d7457c4b0bfa1cd829819adb994459b8 (diff)
downloadbusybox-w32-17e30540dae473d4885f86e6d7f6a7862db7e14e.tar.gz
busybox-w32-17e30540dae473d4885f86e6d7f6a7862db7e14e.tar.bz2
busybox-w32-17e30540dae473d4885f86e6d7f6a7862db7e14e.zip
Kill off the old 'tests' stuff. Write a ton of new tests for the
'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite 'runtest' script so it actually reports all failures and provides meaningful feedback. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8692 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'testsuite/cp')
-rw-r--r--testsuite/cp/cp-a-files-to-dir8
-rw-r--r--testsuite/cp/cp-a-preserves-links2
-rw-r--r--testsuite/cp/cp-d-files-to-dir4
-rw-r--r--testsuite/cp/cp-does-not-copy-unreadable-file2
-rw-r--r--testsuite/cp/cp-preserves-links2
5 files changed, 10 insertions, 8 deletions
diff --git a/testsuite/cp/cp-a-files-to-dir b/testsuite/cp/cp-a-files-to-dir
index 8fb3c201d..39f8f8103 100644
--- a/testsuite/cp/cp-a-files-to-dir
+++ b/testsuite/cp/cp-a-files-to-dir
@@ -8,7 +8,7 @@ busybox cp -a file1 file2 link1 dir1 there
8test -f there/file1 8test -f there/file1
9test -f there/file2 9test -f there/file2
10test ! -s there/dir1/file3 10test ! -s there/dir1/file3
11test -l there/link1 11test -L there/link1
12test `readlink there/link1` = "file2" 12test xfile2 = x`readlink there/link1`
13test ! file3 -ot there/dir1/file3 13test ! dir1/file3 -ot there/dir1/file3
14test ! file3 -nt there/dir1/file3 14test ! dir1/file3 -nt there/dir1/file3
diff --git a/testsuite/cp/cp-a-preserves-links b/testsuite/cp/cp-a-preserves-links
index aae8313c6..0c0cd9653 100644
--- a/testsuite/cp/cp-a-preserves-links
+++ b/testsuite/cp/cp-a-preserves-links
@@ -2,4 +2,4 @@ touch foo
2ln -s foo bar 2ln -s foo bar
3busybox cp -a bar baz 3busybox cp -a bar baz
4test -L baz 4test -L baz
5test `readlink baz` = "foo" 5test xfoo = x`readlink baz`
diff --git a/testsuite/cp/cp-d-files-to-dir b/testsuite/cp/cp-d-files-to-dir
index 9407ead00..9571a567e 100644
--- a/testsuite/cp/cp-d-files-to-dir
+++ b/testsuite/cp/cp-d-files-to-dir
@@ -7,5 +7,5 @@ busybox cp -d file1 file2 file3 link1 there
7test -f there/file1 7test -f there/file1
8test -f there/file2 8test -f there/file2
9test ! -s there/file3 9test ! -s there/file3
10test -l there/link1 10test -L there/link1
11test `readlink there/link1` = "file2" 11test xfile2 = x`readlink there/link1`
diff --git a/testsuite/cp/cp-does-not-copy-unreadable-file b/testsuite/cp/cp-does-not-copy-unreadable-file
index 68c576727..ce11bfab0 100644
--- a/testsuite/cp/cp-does-not-copy-unreadable-file
+++ b/testsuite/cp/cp-does-not-copy-unreadable-file
@@ -1,4 +1,6 @@
1touch foo 1touch foo
2chmod a-r foo 2chmod a-r foo
3set +e
3busybox cp foo bar 4busybox cp foo bar
5set -e
4test ! -f bar 6test ! -f bar
diff --git a/testsuite/cp/cp-preserves-links b/testsuite/cp/cp-preserves-links
index d3223b132..301dc5fd8 100644
--- a/testsuite/cp/cp-preserves-links
+++ b/testsuite/cp/cp-preserves-links
@@ -2,4 +2,4 @@ touch foo
2ln -s foo bar 2ln -s foo bar
3busybox cp -d bar baz 3busybox cp -d bar baz
4test -L baz 4test -L baz
5test `readlink baz` = "foo" 5test xfoo = x`readlink baz`