blob: 75a01e6d74b7fb27414b698aebf0f042524b19e0 [file] [log] [blame]
Mike Frysingerb0c54452006-04-01 01:36:32 +00001#!/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 Frysinger819b56b2006-04-01 20:38:22 +00007[ -n "$srcdir" ] || srcdir=$(pwd)
Mike Frysingerb0c54452006-04-01 01:36:32 +00008. testing.sh
9
10# verify the applet order is correct in applets.h, otherwise
11# applets won't be called properly.
12sed -n -e '/^USE_[A-Z]*(APPLET(/{s:.*(::;s:,.*::;s:"::g;p}' \
Rob Landley3b84dfc2006-04-04 15:39:23 +000013 $srcdir/../include/applets.h > applet.order.current 2> /dev/null
Mike Frysingerb0c54452006-04-01 01:36:32 +000014LC_ALL=C sort applet.order.current > applet.order.correct
15testing "Applet order" "diff -u applet.order.current applet.order.correct" "" "" ""
16rm -f applet.order.current applet.order.correct
17
18exit $FAILCOUNT