aboutsummaryrefslogtreecommitdiff
path: root/testsuite/all_sourcecode.tests
blob: be1d7f395db74c729a58d97847d7bc47482ed8fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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