projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73b4710
)
test to make sure applets are in alphabetical order
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 22 Feb 2006 23:38:57 +0000
(23:38 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Wed, 22 Feb 2006 23:38:57 +0000
(23:38 -0000)
testsuite/busybox.tests
patch
|
blob
|
history
diff --git
a/testsuite/busybox.tests
b/testsuite/busybox.tests
index b69272593a66bc610ae5efaff3ec5f100420b524..f31f38f06824683f254c62035bceaf1a9af075d6 100755
(executable)
--- 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