diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-01 01:36:32 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-01 01:36:32 +0000 |
commit | 6c922ce0762a1fd6cbb999ac8c22862e0e992754 (patch) | |
tree | 0d08949e69b0ed2327f59971f923c352fffb9f0a | |
parent | 9a74eaab87578e34f4c7594336c02ce5c4cc8820 (diff) | |
download | busybox-w32-6c922ce0762a1fd6cbb999ac8c22862e0e992754.tar.gz busybox-w32-6c922ce0762a1fd6cbb999ac8c22862e0e992754.tar.bz2 busybox-w32-6c922ce0762a1fd6cbb999ac8c22862e0e992754.zip |
new test for source code sanity
git-svn-id: svn://busybox.net/trunk/busybox@14720 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rwxr-xr-x | testsuite/all_sourcecode.tests | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/all_sourcecode.tests b/testsuite/all_sourcecode.tests new file mode 100755 index 000000000..be1d7f395 --- /dev/null +++ b/testsuite/all_sourcecode.tests | |||
@@ -0,0 +1,17 @@ | |||
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 | ||