new test for source code sanity
authorMike Frysinger <vapier@gentoo.org>
Sat, 1 Apr 2006 01:36:32 +0000 (01:36 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 1 Apr 2006 01:36:32 +0000 (01:36 -0000)
testsuite/all_sourcecode.tests [new file with mode: 0755]

diff --git a/testsuite/all_sourcecode.tests b/testsuite/all_sourcecode.tests
new file mode 100755 (executable)
index 0000000..be1d7f3
--- /dev/null
@@ -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