aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-22 23:38:57 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-22 23:38:57 +0000
commit23ca7253becac95df6580e1ead1356dbe9bb212f (patch)
treeddaf2cf03a0f6a636ba9371e8d4a26762964810e
parent73b4710974cce4a5ae775fb18c22eacf028f5725 (diff)
downloadbusybox-w32-23ca7253becac95df6580e1ead1356dbe9bb212f.tar.gz
busybox-w32-23ca7253becac95df6580e1ead1356dbe9bb212f.tar.bz2
busybox-w32-23ca7253becac95df6580e1ead1356dbe9bb212f.zip
test to make sure applets are in alphabetical order
-rwxr-xr-xtestsuite/busybox.tests12
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
46rm -f busybox-suffix unknown 46rm -f busybox-suffix unknown
47 47
48
49# verify the applet order is correct in applets.h
50# otherwise applets wont be called properly
51sed -n \
52 -e '/^\tAPPLET/{s:.*(::;s:,.*::;s:"::g;p}' \
53 ../include/applets.h > applet.order.current
54LC_ALL=C sort applet.order.current > applet.order.correct
55diff -u applet.order.current applet.order.correct
56FAILCOUNT=$[$FAILCOUNT+$?]
57rm -f applet.order.current applet.order.correct
58
59
48exit $FAILCOUNT 60exit $FAILCOUNT