diff options
author | Rob Landley <rob@landley.net> | 2005-09-04 11:10:37 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-09-04 11:10:37 +0000 |
commit | b766c394569cce356fceb63d83da79581c0997b9 (patch) | |
tree | a1c4cd18cede88c2e18a6e22f0b59924d5838682 /testsuite/testing.sh | |
parent | 9754b91c16288fd0f4d6301fd6d01aa8b3c3b1d9 (diff) | |
download | busybox-w32-b766c394569cce356fceb63d83da79581c0997b9.tar.gz busybox-w32-b766c394569cce356fceb63d83da79581c0997b9.tar.bz2 busybox-w32-b766c394569cce356fceb63d83da79581c0997b9.zip |
General cleanup of command line parsing to allow "busybox" to work as a prefix.
(I.E. any argv[0] that starts with "busybox" winds up in busybox_main().)
Added testing/busybox.tests which tests the following permutations:
./busybox
./busybox-suffix
./busybox cat
./busybox-suffix cat
./busybox --help
./busybox-suffix --help
./busybox --help cat
./busybox-suffix --help cat
./busybox --help unknown
./busybox-suffix --help unknown
./unknown
Also repair the test suite so ./runtest calls the ".tests" scripts properly.
Note: you can now go "busybox busybox busbox ls -l" and it'll take it. The
new code is pretty generic. I can block that if anybody can come up with a
good reason to...
Diffstat (limited to 'testsuite/testing.sh')
-rwxr-xr-x | testsuite/testing.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/testing.sh b/testsuite/testing.sh index d516f722a..0925d090d 100755 --- a/testsuite/testing.sh +++ b/testsuite/testing.sh | |||
@@ -48,13 +48,13 @@ function testing() | |||
48 | if [ $? -ne 0 ] | 48 | if [ $? -ne 0 ] |
49 | then | 49 | then |
50 | FAILCOUNT=$[$FAILCOUNT+1] | 50 | FAILCOUNT=$[$FAILCOUNT+1] |
51 | echo FAIL:"$1" | 51 | echo "FAIL: $1" |
52 | if [ $verbose ] | 52 | if [ $verbose ] |
53 | then | 53 | then |
54 | diff -u expected actual | 54 | diff -u expected actual |
55 | fi | 55 | fi |
56 | else | 56 | else |
57 | echo PASS:"$1" | 57 | echo "PASS: $1" |
58 | fi | 58 | fi |
59 | rm -f input expected actual | 59 | rm -f input expected actual |
60 | 60 | ||