From: Wouter Wijngaards Date: Thu, 4 Jan 2007 13:36:11 +0000 (+0000) Subject: Nicer code that checks correctly for needed programs.. X-Git-Tag: release-0.0~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1134565dec01ee3954b9d0ccf4af1529860cd422;p=thirdparty%2Funbound.git Nicer code that checks correctly for needed programs.. git-svn-id: file:///svn/unbound/trunk@14 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/do-tests.sh b/testcode/do-tests.sh index 83bf40080..b1fcd040d 100755 --- a/testcode/do-tests.sh +++ b/testcode/do-tests.sh @@ -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