diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-16 02:49:40 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-16 02:49:40 +0100 |
commit | e208279722a7dc874b02e7ebf456667f26d6c8e2 (patch) | |
tree | 83202f26c33304dc7b4f1fa777b7af140d566754 | |
parent | 1e9bc2603dc6c9dc282058056e1c28bd817da488 (diff) | |
download | busybox-w32-e208279722a7dc874b02e7ebf456667f26d6c8e2.tar.gz busybox-w32-e208279722a7dc874b02e7ebf456667f26d6c8e2.tar.bz2 busybox-w32-e208279722a7dc874b02e7ebf456667f26d6c8e2.zip |
fix testing of busybox "applet" itself
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | testsuite/busybox.tests | 8 | ||||
-rwxr-xr-x | testsuite/runtest | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/testsuite/busybox.tests b/testsuite/busybox.tests index 7c44b1ed6..6eeb3251d 100755 --- a/testsuite/busybox.tests +++ b/testsuite/busybox.tests | |||
@@ -6,12 +6,12 @@ | |||
6 | 6 | ||
7 | . ./testing.sh | 7 | . ./testing.sh |
8 | 8 | ||
9 | HELPDUMP=`busybox` | 9 | HELPDUMP=`true | busybox 2>&1 | cat` |
10 | 10 | ||
11 | # We need to test under calling the binary under other names. | 11 | # We need to test under calling the binary under other names. |
12 | 12 | ||
13 | 13 | ||
14 | testing "busybox --help busybox" "busybox --help busybox" "$HELPDUMP\n\n" "" "" | 14 | testing "busybox --help busybox" "true | busybox --help busybox 2>&1 | cat" "$HELPDUMP\n\n" "" "" |
15 | 15 | ||
16 | ln -s `which busybox` busybox-suffix | 16 | ln -s `which busybox` busybox-suffix |
17 | for i in busybox ./busybox-suffix | 17 | for i in busybox ./busybox-suffix |
@@ -28,8 +28,8 @@ do | |||
28 | 28 | ||
29 | optional CAT | 29 | optional CAT |
30 | testing "" "$i cat" "moo" "" "moo" | 30 | testing "" "$i cat" "moo" "" "moo" |
31 | testing "$i --help cat" "$i --help cat 2>&1 | grep prints" \ | 31 | testing "$i --help cat" "$i --help cat 2>&1 | grep print" \ |
32 | "Concatenates FILE(s) and prints them to stdout.\n" "" "" | 32 | "Concatenate FILEs and print them to stdout\n" "" "" |
33 | optional "" | 33 | optional "" |
34 | 34 | ||
35 | testing "$i --help unknown" "$i --help unknown 2>&1" \ | 35 | testing "$i --help unknown" "$i --help unknown 2>&1" \ |
diff --git a/testsuite/runtest b/testsuite/runtest index 3ff4b96da..10563d7b2 100755 --- a/testsuite/runtest +++ b/testsuite/runtest | |||
@@ -92,6 +92,7 @@ if [ x"$1" = x"-v" ]; then | |||
92 | fi | 92 | fi |
93 | 93 | ||
94 | implemented=$( | 94 | implemented=$( |
95 | printf "busybox " # always implemented | ||
95 | "$bindir/busybox" 2>&1 | | 96 | "$bindir/busybox" 2>&1 | |
96 | while read line; do | 97 | while read line; do |
97 | if [ x"$line" = x"Currently defined functions:" ]; then | 98 | if [ x"$line" = x"Currently defined functions:" ]; then |