diff options
Diffstat (limited to 'testsuite/busybox.tests')
-rwxr-xr-x | testsuite/busybox.tests | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/testsuite/busybox.tests b/testsuite/busybox.tests index 7595d061f..b69272593 100755 --- a/testsuite/busybox.tests +++ b/testsuite/busybox.tests | |||
@@ -7,15 +7,9 @@ | |||
7 | if [ ${#COMMAND} -eq 0 ]; then COMMAND=busybox; fi | 7 | if [ ${#COMMAND} -eq 0 ]; then COMMAND=busybox; fi |
8 | . testing.sh | 8 | . testing.sh |
9 | 9 | ||
10 | # Depends on nothing | ||
11 | _BB_CONFIG_DEP="" | ||
12 | |||
13 | # We'll assume "cat" is built in, because we need some other command to test. | ||
14 | |||
15 | HELPDUMP=`$COMMAND` | 10 | HELPDUMP=`$COMMAND` |
16 | 11 | ||
17 | # The gratuitous "\n"s are due to a shell idiosyncrasy: environment variables | 12 | # We need to test under calling the binary under other names. |
18 | # seem to strip trailing whitespace, which makes cmp and diff unhappy. | ||
19 | 13 | ||
20 | ln -s `which "$COMMAND"` busybox-suffix | 14 | ln -s `which "$COMMAND"` busybox-suffix |
21 | ln -s `which "$COMMAND"` unknown | 15 | ln -s `which "$COMMAND"` unknown |
@@ -29,15 +23,16 @@ do | |||
29 | 23 | ||
30 | testing "$i" "" "$HELPDUMP\n\n" "" "" | 24 | testing "$i" "" "$HELPDUMP\n\n" "" "" |
31 | 25 | ||
32 | testing "$i cat" "cat" "moo" "" "moo" | ||
33 | |||
34 | testing "$i unknown" "unknown 2>&1" \ | 26 | testing "$i unknown" "unknown 2>&1" \ |
35 | "unknown: applet not found\n" "" "" | 27 | "unknown: applet not found\n" "" "" |
36 | 28 | ||
37 | testing "$i --help" "--help 2>&1" "$HELPDUMP\n\n" "" "" | 29 | testing "$i --help" "--help 2>&1" "$HELPDUMP\n\n" "" "" |
38 | 30 | ||
31 | optional CAT | ||
32 | testing "$i cat" "cat" "moo" "" "moo" | ||
39 | testing "$i --help cat" "--help cat 2>&1 | grep prints" \ | 33 | testing "$i --help cat" "--help cat 2>&1 | grep prints" \ |
40 | "Concatenates FILE(s) and prints them to stdout.\n" "" "" | 34 | "Concatenates FILE(s) and prints them to stdout.\n" "" "" |
35 | optional "" | ||
41 | 36 | ||
42 | testing "$i --help unknown" "--help unknown 2>&1" \ | 37 | testing "$i --help unknown" "--help unknown 2>&1" \ |
43 | "unknown: applet not found\n" "" "" | 38 | "unknown: applet not found\n" "" "" |