diff options
author | Matt Kraai <kraai@debian.org> | 2002-02-19 23:43:08 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2002-02-19 23:43:08 +0000 |
commit | 6b140ea5a971153d4e34c2f42fca00400af0b5ba (patch) | |
tree | 4b9afc7b2d3149b5f38d486addb46f817aa2f062 | |
parent | 7c71822809f60845ba3cd9fa3f88251f359b42e0 (diff) | |
download | busybox-w32-6b140ea5a971153d4e34c2f42fca00400af0b5ba.tar.gz busybox-w32-6b140ea5a971153d4e34c2f42fca00400af0b5ba.tar.bz2 busybox-w32-6b140ea5a971153d4e34c2f42fca00400af0b5ba.zip |
* testsuite/README: Change "UNSUPPORTED" tag to "FEATURE".
* testsuite/runtest (run_applet_testcase): Likewise.
* testsuite/cp/cp-preserves-hard-links: Likewise.
* testsuite/grep/egrep-supports-extended-regexps: Likewise.
* testsuite/grep/grep-is-also-egrep: Likewise.
* testsuite/tar/tar-archives-multiple-files: Likewise.
* testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list:
Likewise.
* testsuite/tar/tar-handles-exclude-and-extract-lists: Likewise.
* testsuite/tar/tar-handles-nested-exclude: Likewise.
-rw-r--r-- | testsuite/README | 9 | ||||
-rw-r--r-- | testsuite/cp/cp-preserves-hard-links | 2 | ||||
-rw-r--r-- | testsuite/grep/egrep-supports-extended-regexps | 2 | ||||
-rw-r--r-- | testsuite/grep/grep-is-also-egrep | 2 | ||||
-rwxr-xr-x | testsuite/runtest | 4 | ||||
-rw-r--r-- | testsuite/tar/tar-archives-multiple-files | 2 | ||||
-rw-r--r-- | testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list | 2 | ||||
-rw-r--r-- | testsuite/tar/tar-handles-exclude-and-extract-lists | 2 | ||||
-rw-r--r-- | testsuite/tar/tar-handles-nested-exclude | 2 |
9 files changed, 14 insertions, 13 deletions
diff --git a/testsuite/README b/testsuite/README index 7ed790f7a..40439bfe8 100644 --- a/testsuite/README +++ b/testsuite/README | |||
@@ -6,10 +6,11 @@ cases for particular applets, specify them as parameters to runtest. | |||
6 | The test cases for an applet reside in the subdirectory of the applet name. The | 6 | The test cases for an applet reside in the subdirectory of the applet name. The |
7 | name of the test case should be the assertion that is tested. The test case | 7 | name of the test case should be the assertion that is tested. The test case |
8 | should be a shell fragment that returns successfully if the test case passes, | 8 | should be a shell fragment that returns successfully if the test case passes, |
9 | and unsuccessfully otherwise. If the test case is known to fail, it should be | 9 | and unsuccessfully otherwise. |
10 | marked as such by including the string "XFAIL" in a comment. If a certain | 10 | |
11 | feature must be enabled for it to pass, it should indicate that by including the | 11 | If the test case relies on a certain feature, it should include the string |
12 | string "UNSUPPORTED: " followed by the feature name in a comment. | 12 | "FEATURE: " followed by the name of the feature in a comment. If it is always |
13 | expected to fail, it should include the string "XFAIL" in a comment. | ||
13 | 14 | ||
14 | For the entire testsuite, the copyright is as follows: | 15 | For the entire testsuite, the copyright is as follows: |
15 | 16 | ||
diff --git a/testsuite/cp/cp-preserves-hard-links b/testsuite/cp/cp-preserves-hard-links index c17f42635..4de7b85db 100644 --- a/testsuite/cp/cp-preserves-hard-links +++ b/testsuite/cp/cp-preserves-hard-links | |||
@@ -1,4 +1,4 @@ | |||
1 | # UNSUPPORTED: CONFIG_FEATURE_PRESERVE_HARDLINKS | 1 | # FEATURE: CONFIG_FEATURE_PRESERVE_HARDLINKS |
2 | touch foo | 2 | touch foo |
3 | ln foo bar | 3 | ln foo bar |
4 | mkdir baz | 4 | mkdir baz |
diff --git a/testsuite/grep/egrep-supports-extended-regexps b/testsuite/grep/egrep-supports-extended-regexps index f858e8465..9953dcc66 100644 --- a/testsuite/grep/egrep-supports-extended-regexps +++ b/testsuite/grep/egrep-supports-extended-regexps | |||
@@ -1,2 +1,2 @@ | |||
1 | # UNSUPPORTED: CONFIG_FEATURE_GREP_EGREP_ALIAS | 1 | # FEATURE: CONFIG_FEATURE_GREP_EGREP_ALIAS |
2 | test x`echo foo | busybox egrep fo+` = xfoo | 2 | test x`echo foo | busybox egrep fo+` = xfoo |
diff --git a/testsuite/grep/grep-is-also-egrep b/testsuite/grep/grep-is-also-egrep index f28afda62..2e6977c28 100644 --- a/testsuite/grep/grep-is-also-egrep +++ b/testsuite/grep/grep-is-also-egrep | |||
@@ -1,2 +1,2 @@ | |||
1 | # UNSUPPORTED: CONFIG_FEATURE_GREP_EGREP_ALIAS | 1 | # FEATURE: CONFIG_FEATURE_GREP_EGREP_ALIAS |
2 | echo foo | busybox egrep foo | 2 | echo foo | busybox egrep foo |
diff --git a/testsuite/runtest b/testsuite/runtest index ba7deeb58..a4bfebd84 100755 --- a/testsuite/runtest +++ b/testsuite/runtest | |||
@@ -36,8 +36,8 @@ run_applet_testcase () | |||
36 | return 0 | 36 | return 0 |
37 | fi | 37 | fi |
38 | 38 | ||
39 | if grep -q "^# UNSUPPORTED: " $testcase; then | 39 | if grep -q "^# FEATURE: " $testcase; then |
40 | local feature=`sed -ne 's/.*UNSUPPORTED: //p' $testcase` | 40 | local feature=`sed -ne 's/^# FEATURE: //p' $testcase` |
41 | 41 | ||
42 | if grep -q "^# ${feature} is not set$" ../.config; then | 42 | if grep -q "^# ${feature} is not set$" ../.config; then |
43 | show_result UNTESTED $testname | 43 | show_result UNTESTED $testname |
diff --git a/testsuite/tar/tar-archives-multiple-files b/testsuite/tar/tar-archives-multiple-files index 72d4ca811..245d9e989 100644 --- a/testsuite/tar/tar-archives-multiple-files +++ b/testsuite/tar/tar-archives-multiple-files | |||
@@ -1,4 +1,4 @@ | |||
1 | # UNSUPPORTED: CONFIG_FEATURE_TAR_CREATE | 1 | # FEATURE: CONFIG_FEATURE_TAR_CREATE |
2 | touch foo bar | 2 | touch foo bar |
3 | busybox tar cf foo.tar foo bar | 3 | busybox tar cf foo.tar foo bar |
4 | rm foo bar | 4 | rm foo bar |
diff --git a/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list b/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list index 4f2adab71..b76f02301 100644 --- a/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list +++ b/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list | |||
@@ -1,4 +1,4 @@ | |||
1 | # UNSUPPORTED: CONFIG_FEATURE_TAR_EXCLUDE | 1 | # FEATURE: CONFIG_FEATURE_TAR_EXCLUDE |
2 | touch foo | 2 | touch foo |
3 | tar cf foo.tar foo | 3 | tar cf foo.tar foo |
4 | echo foo >foo.exclude | 4 | echo foo >foo.exclude |
diff --git a/testsuite/tar/tar-handles-exclude-and-extract-lists b/testsuite/tar/tar-handles-exclude-and-extract-lists index addcce094..e715a4771 100644 --- a/testsuite/tar/tar-handles-exclude-and-extract-lists +++ b/testsuite/tar/tar-handles-exclude-and-extract-lists | |||
@@ -1,4 +1,4 @@ | |||
1 | # UNSUPPORTED: CONFIG_FEATURE_TAR_EXCLUDE | 1 | # FEATURE: CONFIG_FEATURE_TAR_EXCLUDE |
2 | touch foo bar baz | 2 | touch foo bar baz |
3 | tar cf foo.tar foo bar baz | 3 | tar cf foo.tar foo bar baz |
4 | echo foo >foo.exclude | 4 | echo foo >foo.exclude |
diff --git a/testsuite/tar/tar-handles-nested-exclude b/testsuite/tar/tar-handles-nested-exclude index 2bfc7dd53..ad39506c8 100644 --- a/testsuite/tar/tar-handles-nested-exclude +++ b/testsuite/tar/tar-handles-nested-exclude | |||
@@ -1,4 +1,4 @@ | |||
1 | # UNSUPPORTED: CONFIG_FEATURE_TAR_EXCLUDE | 1 | # FEATURE: CONFIG_FEATURE_TAR_EXCLUDE |
2 | mkdir foo | 2 | mkdir foo |
3 | touch foo/bar | 3 | touch foo/bar |
4 | tar cf foo.tar foo | 4 | tar cf foo.tar foo |