From b766c394569cce356fceb63d83da79581c0997b9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 Sep 2005 11:10:37 +0000 Subject: 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... --- testsuite/testing.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite/testing.sh') 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() if [ $? -ne 0 ] then FAILCOUNT=$[$FAILCOUNT+1] - echo FAIL:"$1" + echo "FAIL: $1" if [ $verbose ] then diff -u expected actual fi else - echo PASS:"$1" + echo "PASS: $1" fi rm -f input expected actual -- cgit v1.2.3