diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-22 23:38:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-22 23:38:57 +0000 |
commit | 23ca7253becac95df6580e1ead1356dbe9bb212f (patch) | |
tree | ddaf2cf03a0f6a636ba9371e8d4a26762964810e | |
parent | 73b4710974cce4a5ae775fb18c22eacf028f5725 (diff) | |
download | busybox-w32-23ca7253becac95df6580e1ead1356dbe9bb212f.tar.gz busybox-w32-23ca7253becac95df6580e1ead1356dbe9bb212f.tar.bz2 busybox-w32-23ca7253becac95df6580e1ead1356dbe9bb212f.zip |
test to make sure applets are in alphabetical order
-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 |