diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-22 23:38:57 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-22 23:38:57 +0000 |
commit | 473b7460029579e91e753d0ffcfcc3db0051f3d2 (patch) | |
tree | ddaf2cf03a0f6a636ba9371e8d4a26762964810e | |
parent | 3467ce22a3b011afc2c80a4a8d27d4991cba9b21 (diff) | |
download | busybox-w32-473b7460029579e91e753d0ffcfcc3db0051f3d2.tar.gz busybox-w32-473b7460029579e91e753d0ffcfcc3db0051f3d2.tar.bz2 busybox-w32-473b7460029579e91e753d0ffcfcc3db0051f3d2.zip |
test to make sure applets are in alphabetical order
git-svn-id: svn://busybox.net/trunk/busybox@14218 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rwxr-xr-x | testsuite/busybox.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/busybox.tests b/testsuite/busybox.tests index b69272593..f31f38f06 100755 --- a/testsuite/busybox.tests +++ b/testsuite/busybox.tests | |||
@@ -45,4 +45,16 @@ testing "busybox as unknown name" "2>&1" "unknown: applet not found\n" "" "" | |||
45 | 45 | ||
46 | rm -f busybox-suffix unknown | 46 | rm -f busybox-suffix unknown |
47 | 47 | ||
48 | |||
49 | # verify the applet order is correct in applets.h | ||
50 | # otherwise applets wont be called properly | ||
51 | sed -n \ | ||
52 | -e '/^\tAPPLET/{s:.*(::;s:,.*::;s:"::g;p}' \ | ||
53 | ../include/applets.h > applet.order.current | ||
54 | LC_ALL=C sort applet.order.current > applet.order.correct | ||
55 | diff -u applet.order.current applet.order.correct | ||
56 | FAILCOUNT=$[$FAILCOUNT+$?] | ||
57 | rm -f applet.order.current applet.order.correct | ||
58 | |||
59 | |||
48 | exit $FAILCOUNT | 60 | exit $FAILCOUNT |