aboutsummaryrefslogtreecommitdiff
path: root/testsuite/busybox.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/busybox.tests')
-rwxr-xr-xtestsuite/busybox.tests16
1 files changed, 6 insertions, 10 deletions
diff --git a/testsuite/busybox.tests b/testsuite/busybox.tests
index 545cad5c0..beb17440c 100755
--- a/testsuite/busybox.tests
+++ b/testsuite/busybox.tests
@@ -5,6 +5,7 @@
5# Licensed under GPLv2, see file LICENSE in this source tree. 5# Licensed under GPLv2, see file LICENSE in this source tree.
6 6
7. ./testing.sh 7. ./testing.sh
8test -f "$bindir/.config" && . "$bindir/.config"
8 9
9ln -s `which busybox` unknown 10ln -s `which busybox` unknown
10 11
@@ -18,29 +19,24 @@ test x"$CONFIG_BUSYBOX" = x"y" \
18 19
19HELPDUMP=`true | busybox 2>&1 | cat` 20HELPDUMP=`true | busybox 2>&1 | cat`
20 21
21# We need to test under calling the binary under other names.
22
23optional FEATURE_VERBOSE_USAGE 22optional FEATURE_VERBOSE_USAGE
24testing "busybox --help busybox" "true | busybox --help busybox 2>&1 | cat" "$HELPDUMP\n\n" "" "" 23testing "busybox --help busybox" "true | busybox --help busybox 2>&1 | cat" "$HELPDUMP\n" "" ""
25SKIP= 24SKIP=
26 25
27ln -s `which busybox` busybox-suffix 26ln -s `which busybox` busybox-suffix
28for i in busybox ./busybox-suffix 27for i in busybox ./busybox-suffix
29do 28do
30 # The gratuitous "\n"s are due to a shell idiosyncrasy: 29 testing "$i" "$i 2>&1 | cat" "$HELPDUMP\n" "" ""
31 # environment variables seem to strip trailing whitespace.
32
33 testing "" "$i" "$HELPDUMP\n\n" "" ""
34 30
35 testing "$i unknown" "$i unknown 2>&1" \ 31 testing "$i unknown" "$i unknown 2>&1" \
36 "unknown: applet not found\n" "" "" 32 "unknown: applet not found\n" "" ""
37 33
38 testing "$i --help" "$i --help 2>&1" "$HELPDUMP\n\n" "" "" 34 testing "$i --help" "$i --help 2>&1" "$HELPDUMP\n" "" ""
39 35
40 optional FEATURE_VERBOSE_USAGE CAT 36 optional FEATURE_VERBOSE_USAGE CAT
41 testing "" "$i cat" "moo" "" "moo" 37 testing "" "$i cat" "moo" "" "moo"
42 testing "$i --help cat" "$i --help cat 2>&1 | grep print" \ 38 testing "$i --help cat" "$i --help cat 2>&1 | grep Print" \
43 "Concatenate FILEs and print them to stdout\n" "" "" 39 "Print FILEs to stdout\n" "" ""
44 SKIP= 40 SKIP=
45 41
46 testing "$i --help unknown" "$i --help unknown 2>&1" \ 42 testing "$i --help unknown" "$i --help unknown 2>&1" \