From: Wouter Wijngaards Date: Thu, 4 Jan 2007 13:32:49 +0000 (+0000) Subject: check for needed programs before running tests. X-Git-Tag: release-0.0~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c2cc969eb3d3cdb82afed07b605a974f12ea29d;p=thirdparty%2Funbound.git check for needed programs before running tests. git-svn-id: file:///svn/unbound/trunk@13 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/do-tests.sh b/testcode/do-tests.sh index c85ba5366..83bf40080 100755 --- a/testcode/do-tests.sh +++ b/testcode/do-tests.sh @@ -1,7 +1,29 @@ #!/usr/bin/env bash +NEED_SPLINT='00-lint.tpkg' +NEED_DOXYGEN='01-doc.tpkg' + cd testdata; for test in `ls *.tpkg`; do - echo $test - tpkg -a ../.. exe $test + SKIP=0 + if echo $NEED_SPLINT | grep $test >/dev/null; then + if which splint >/dev/null 2>&1; then + : + else + SKIP=1; + fi + fi + if echo $NEED_DOXYGEN | grep $test >/dev/null; then + if which doxygen >/dev/null 2>&1; then + : + else + SKIP=1; + fi + fi + if test $SKIP -eq 0; then + echo $test + tpkg -a ../.. exe $test + else + echo "skip $test" + fi done