diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-04-02 09:57:27 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-02 09:57:27 +0200 |
commit | 208d35d21fbae0f1c1aa3bed4ca97717565b76e2 (patch) | |
tree | a3b1c7670c3704dc20bc569457bcc5f54a3ca422 | |
parent | 37201213ca45f2163abed70a213bb24956b243a8 (diff) | |
download | busybox-w32-208d35d21fbae0f1c1aa3bed4ca97717565b76e2.tar.gz busybox-w32-208d35d21fbae0f1c1aa3bed4ca97717565b76e2.tar.bz2 busybox-w32-208d35d21fbae0f1c1aa3bed4ca97717565b76e2.zip |
testsuite fixes
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | testsuite/cp/cp-parents | 1 | ||||
-rwxr-xr-x | testsuite/mount.tests | 7 | ||||
-rwxr-xr-x | testsuite/runtest | 10 | ||||
-rwxr-xr-x | testsuite/tar.tests | 2 |
4 files changed, 16 insertions, 4 deletions
diff --git a/testsuite/cp/cp-parents b/testsuite/cp/cp-parents index a721ceaf2..e27c16285 100644 --- a/testsuite/cp/cp-parents +++ b/testsuite/cp/cp-parents | |||
@@ -1,3 +1,4 @@ | |||
1 | # FEATURE: CONFIG_FEATURE_CP_LONG_OPTIONS | ||
1 | mkdir -p foo/bar/baz | 2 | mkdir -p foo/bar/baz |
2 | touch foo/bar/baz/file | 3 | touch foo/bar/baz/file |
3 | mkdir dir | 4 | mkdir dir |
diff --git a/testsuite/mount.tests b/testsuite/mount.tests index 8bd60ea0c..043586f05 100755 --- a/testsuite/mount.tests +++ b/testsuite/mount.tests | |||
@@ -9,6 +9,13 @@ test "`id -u`" = 0 || { | |||
9 | exit 0 | 9 | exit 0 |
10 | } | 10 | } |
11 | 11 | ||
12 | optional MKFS_MINIX | ||
13 | if [ -n "$SKIP" ] | ||
14 | then | ||
15 | echo "SKIPPED: mount" | ||
16 | exit 0 | ||
17 | fi | ||
18 | |||
12 | testdir=$PWD/testdir | 19 | testdir=$PWD/testdir |
13 | 20 | ||
14 | dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || { echo "dd error"; exit 1; } | 21 | dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || { echo "dd error"; exit 1; } |
diff --git a/testsuite/runtest b/testsuite/runtest index 5ddf07d09..c300233cd 100755 --- a/testsuite/runtest +++ b/testsuite/runtest | |||
@@ -26,10 +26,12 @@ run_applet_testcase() | |||
26 | if grep "^# FEATURE: " "$testcase" >/dev/null; then | 26 | if grep "^# FEATURE: " "$testcase" >/dev/null; then |
27 | local feature=$(sed -ne 's/^# FEATURE: //p' "$testcase") | 27 | local feature=$(sed -ne 's/^# FEATURE: //p' "$testcase") |
28 | 28 | ||
29 | if grep "^# $feature is not set$" "$bindir/.config" >/dev/null; then | 29 | for f in $feature; do |
30 | echo "UNTESTED: $testname" | 30 | if grep "^# $f is not set$" "$bindir/.config" >/dev/null; then |
31 | return 0 | 31 | echo "UNTESTED: $testname" |
32 | fi | 32 | return 0 |
33 | fi | ||
34 | done | ||
33 | fi | 35 | fi |
34 | 36 | ||
35 | rm -rf ".tmpdir.$applet" | 37 | rm -rf ".tmpdir.$applet" |
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index 6c136a615..71095cb20 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
@@ -31,6 +31,7 @@ Ok | |||
31 | " \ | 31 | " \ |
32 | "" "" | 32 | "" "" |
33 | 33 | ||
34 | optional FEATURE_TAR_LONG_OPTIONS | ||
34 | testing "tar --overwrite" "\ | 35 | testing "tar --overwrite" "\ |
35 | rm -rf input_* test.tar 2>/dev/null | 36 | rm -rf input_* test.tar 2>/dev/null |
36 | ln input input_hard | 37 | ln input input_hard |
@@ -43,6 +44,7 @@ tar xf test.tar --overwrite 2>&1 && cat input | |||
43 | Ok | 44 | Ok |
44 | " \ | 45 | " \ |
45 | "Ok\n" "" | 46 | "Ok\n" "" |
47 | SKIP= | ||
46 | 48 | ||
47 | cd .. && rm -rf tempdir || exit 1 | 49 | cd .. && rm -rf tempdir || exit 1 |
48 | 50 | ||