test to make sure applets are in alphabetical order

This commit is contained in:
Mike Frysinger 2006-02-22 23:38:57 +00:00
parent 73b4710974
commit 23ca7253be

View File

@ -45,4 +45,16 @@ testing "busybox as unknown name" "2>&1" "unknown: applet not found\n" "" ""
rm -f busybox-suffix unknown 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 exit $FAILCOUNT