be1d7f395db74c729a58d97847d7bc47482ed8fe
[oweals/busybox.git] / testsuite / all_sourcecode.tests
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
7 . testing.sh
8
9 # verify the applet order is correct in applets.h, otherwise
10 # applets won't be called properly.
11 sed -n -e '/^USE_[A-Z]*(APPLET(/{s:.*(::;s:,.*::;s:"::g;p}' \
12         ../include/applets.h > applet.order.current
13 LC_ALL=C sort applet.order.current > applet.order.correct
14 testing "Applet order" "diff -u applet.order.current applet.order.correct" "" "" ""
15 rm -f applet.order.current applet.order.correct
16
17 exit $FAILCOUNT