]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Nicer code that checks correctly for needed programs..
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 4 Jan 2007 13:36:11 +0000 (13:36 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 4 Jan 2007 13:36:11 +0000 (13:36 +0000)
git-svn-id: file:///svn/unbound/trunk@14 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/do-tests.sh

index 83bf40080766625b8eda11b37bb296b8f071a6b0..b1fcd040db8632b2be8366c8c58db25c8ea5f786 100755 (executable)
@@ -7,16 +7,12 @@ cd testdata;
 for test in `ls *.tpkg`; do
        SKIP=0
        if echo $NEED_SPLINT | grep $test >/dev/null; then
-               if which splint >/dev/null 2>&1; then
-                       :
-               else
+               if test ! -x "`which splint`"; then
                        SKIP=1;
                fi
        fi
        if echo $NEED_DOXYGEN | grep $test >/dev/null; then
-               if which doxygen >/dev/null 2>&1; then
-                       :
-               else
+               if test ! -x "`which doxygen`"; then
                        SKIP=1;
                fi
        fi