10 |
|
|
11 |
# We need to test under calling the binary under other names. |
# We need to test under calling the binary under other names. |
12 |
|
|
13 |
|
optional FEATURE_VERBOSE_USAGE |
14 |
testing "busybox --help busybox" "true | busybox --help busybox 2>&1 | cat" "$HELPDUMP\n\n" "" "" |
testing "busybox --help busybox" "true | busybox --help busybox 2>&1 | cat" "$HELPDUMP\n\n" "" "" |
15 |
|
SKIP= |
16 |
|
|
17 |
ln -s `which busybox` busybox-suffix |
ln -s `which busybox` busybox-suffix |
18 |
for i in busybox ./busybox-suffix |
for i in busybox ./busybox-suffix |
27 |
|
|
28 |
testing "$i --help" "$i --help 2>&1" "$HELPDUMP\n\n" "" "" |
testing "$i --help" "$i --help 2>&1" "$HELPDUMP\n\n" "" "" |
29 |
|
|
30 |
optional CAT |
optional FEATURE_VERBOSE_USAGE CAT |
31 |
testing "" "$i cat" "moo" "" "moo" |
testing "" "$i cat" "moo" "" "moo" |
32 |
testing "$i --help cat" "$i --help cat 2>&1 | grep print" \ |
testing "$i --help cat" "$i --help cat 2>&1 | grep print" \ |
33 |
"Concatenate FILEs and print them to stdout\n" "" "" |
"Concatenate FILEs and print them to stdout\n" "" "" |
34 |
optional "" |
SKIP= |
35 |
|
|
36 |
testing "$i --help unknown" "$i --help unknown 2>&1" \ |
testing "$i --help unknown" "$i --help unknown 2>&1" \ |
37 |
"unknown: applet not found\n" "" "" |
"unknown: applet not found\n" "" "" |