Mike Frysinger | b0c5445 | 2006-04-01 01:36:32 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Tests for the sourcecode base itself. |
| 4 | # Copyright 2006 by Mike Frysinger <vapier@gentoo.org> |
| 5 | # Licensed under GPL v2, see file LICENSE for details. |
| 6 | |
Mike Frysinger | 819b56b | 2006-04-01 20:38:22 +0000 | [diff] [blame] | 7 | [ -n "$srcdir" ] || srcdir=$(pwd) |
Mike Frysinger | b0c5445 | 2006-04-01 01:36:32 +0000 | [diff] [blame] | 8 | . testing.sh |
| 9 | |
| 10 | # verify the applet order is correct in applets.h, otherwise |
| 11 | # applets won't be called properly. |
| 12 | sed -n -e '/^USE_[A-Z]*(APPLET(/{s:.*(::;s:,.*::;s:"::g;p}' \ |
Rob Landley | 3b84dfc | 2006-04-04 15:39:23 +0000 | [diff] [blame] | 13 | $srcdir/../include/applets.h > applet.order.current 2> /dev/null |
Mike Frysinger | b0c5445 | 2006-04-01 01:36:32 +0000 | [diff] [blame] | 14 | LC_ALL=C sort applet.order.current > applet.order.correct |
| 15 | testing "Applet order" "diff -u applet.order.current applet.order.correct" "" "" "" |
| 16 | rm -f applet.order.current applet.order.correct |
| 17 | |
| 18 | exit $FAILCOUNT |