mirror of
https://github.com/sheumann/hush.git
synced 2025-01-13 06:30:09 +00:00
new test for source code sanity
This commit is contained in:
parent
5dd1236f49
commit
b0c5445bf5
17
testsuite/all_sourcecode.tests
Executable file
17
testsuite/all_sourcecode.tests
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/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.
|
||||||
|
|
||||||
|
. 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}' \
|
||||||
|
../include/applets.h > applet.order.current
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user