mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
check for needed programs before running tests.
git-svn-id: file:///svn/unbound/trunk@13 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
e498742aea
commit
1c2cc969eb
1 changed files with 24 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue