2006-04-01 07:06:32 +05:30
|
|
|
#!/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.
|
|
|
|
|
2006-04-02 02:08:22 +05:30
|
|
|
[ -n "$srcdir" ] || srcdir=$(pwd)
|
2006-04-01 07:06:32 +05:30
|
|
|
. 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}' \
|
2006-04-04 21:09:23 +05:30
|
|
|
$srcdir/../include/applets.h > applet.order.current 2> /dev/null
|
2006-04-01 07:06:32 +05:30
|
|
|
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
|