aboutsummaryrefslogtreecommitdiff
path: root/testsuite/all_sourcecode.tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-04-01 01:36:32 +0000
committerMike Frysinger <vapier@gentoo.org>2006-04-01 01:36:32 +0000
commitb0c5445bf5189c7370e33638ce1e5374f6387cf2 (patch)
tree0d08949e69b0ed2327f59971f923c352fffb9f0a /testsuite/all_sourcecode.tests
parent5dd1236f494b5ceb46c4703f80efc27193be9500 (diff)
downloadbusybox-b0c5445bf5189c7370e33638ce1e5374f6387cf2.tar.gz
new test for source code sanity
Diffstat (limited to 'testsuite/all_sourcecode.tests')
-rwxr-xr-xtestsuite/all_sourcecode.tests17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/all_sourcecode.tests b/testsuite/all_sourcecode.tests
new file mode 100755
index 000000000..be1d7f395
--- /dev/null
+++ b/testsuite/all_sourcecode.tests
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Tests for the sourcecode base itself.
+# Copyright 2006 by Mike Frysinger <vapier@gentoo.org>
+# Licensed under GPL v2, see file LICENSE for details.
+
+. testing.sh
+
+# verify the applet order is correct in applets.h, otherwise
+# applets won't be called properly.
+sed -n -e '/^USE_[A-Z]*(APPLET(/{s:.*(::;s:,.*::;s:"::g;p}' \
+ ../include/applets.h > applet.order.current
+LC_ALL=C sort applet.order.current > applet.order.correct
+testing "Applet order" "diff -u applet.order.current applet.order.correct" "" "" ""
+rm -f applet.order.current applet.order.correct
+
+exit $FAILCOUNT