diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-04-06 11:10:30 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-04-06 11:10:30 +0000 |
commit | 17e30540dae473d4885f86e6d7f6a7862db7e14e (patch) | |
tree | 660b1fb0e4d7f99802a85cdd00166fafbf3132dc /testsuite/cp | |
parent | 29780bd0d7457c4b0bfa1cd829819adb994459b8 (diff) | |
download | busybox-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-dir | 8 | ||||
-rw-r--r-- | testsuite/cp/cp-a-preserves-links | 2 | ||||
-rw-r--r-- | testsuite/cp/cp-d-files-to-dir | 4 | ||||
-rw-r--r-- | testsuite/cp/cp-does-not-copy-unreadable-file | 2 | ||||
-rw-r--r-- | testsuite/cp/cp-preserves-links | 2 |
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 | |||
8 | test -f there/file1 | 8 | test -f there/file1 |
9 | test -f there/file2 | 9 | test -f there/file2 |
10 | test ! -s there/dir1/file3 | 10 | test ! -s there/dir1/file3 |
11 | test -l there/link1 | 11 | test -L there/link1 |
12 | test `readlink there/link1` = "file2" | 12 | test xfile2 = x`readlink there/link1` |
13 | test ! file3 -ot there/dir1/file3 | 13 | test ! dir1/file3 -ot there/dir1/file3 |
14 | test ! file3 -nt there/dir1/file3 | 14 | test ! 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 | |||
2 | ln -s foo bar | 2 | ln -s foo bar |
3 | busybox cp -a bar baz | 3 | busybox cp -a bar baz |
4 | test -L baz | 4 | test -L baz |
5 | test `readlink baz` = "foo" | 5 | test 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 | |||
7 | test -f there/file1 | 7 | test -f there/file1 |
8 | test -f there/file2 | 8 | test -f there/file2 |
9 | test ! -s there/file3 | 9 | test ! -s there/file3 |
10 | test -l there/link1 | 10 | test -L there/link1 |
11 | test `readlink there/link1` = "file2" | 11 | test 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 @@ | |||
1 | touch foo | 1 | touch foo |
2 | chmod a-r foo | 2 | chmod a-r foo |
3 | set +e | ||
3 | busybox cp foo bar | 4 | busybox cp foo bar |
5 | set -e | ||
4 | test ! -f bar | 6 | test ! -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 | |||
2 | ln -s foo bar | 2 | ln -s foo bar |
3 | busybox cp -d bar baz | 3 | busybox cp -d bar baz |
4 | test -L baz | 4 | test -L baz |
5 | test `readlink baz` = "foo" | 5 | test xfoo = x`readlink baz` |