diff options
author | Mike Frysinger | 2006-02-22 23:38:57 +0000 |
---|---|---|
committer | Mike Frysinger | 2006-02-22 23:38:57 +0000 |
commit | 23ca7253becac95df6580e1ead1356dbe9bb212f (patch) | |
tree | ddaf2cf03a0f6a636ba9371e8d4a26762964810e | |
parent | 73b4710974cce4a5ae775fb18c22eacf028f5725 (diff) | |
download | busybox-23ca7253becac95df6580e1ead1356dbe9bb212f.zip busybox-23ca7253becac95df6580e1ead1356dbe9bb212f.tar.gz |
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 b692725..f31f38f 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" "" "" rm -f busybox-suffix unknown + +# verify the applet order is correct in applets.h +# otherwise applets wont be called properly +sed -n \ + -e '/^\tAPPLET/{s:.*(::;s:,.*::;s:"::g;p}' \ + ../include/applets.h > applet.order.current +LC_ALL=C sort applet.order.current > applet.order.correct +diff -u applet.order.current applet.order.correct +FAILCOUNT=$[$FAILCOUNT+$?] +rm -f applet.order.current applet.order.correct + + exit $FAILCOUNT |