unbound/testcode/do-tests.sh
Wouter Wijngaards 1134565dec Nicer code that checks correctly for needed programs..
git-svn-id: file:///svn/unbound/trunk@14 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-04 13:36:11 +00:00

26 lines
448 B
Bash
Executable File

#!/usr/bin/env bash
NEED_SPLINT='00-lint.tpkg'
NEED_DOXYGEN='01-doc.tpkg'
cd testdata;
for test in `ls *.tpkg`; do
SKIP=0
if echo $NEED_SPLINT | grep $test >/dev/null; then
if test ! -x "`which splint`"; then
SKIP=1;
fi
fi
if echo $NEED_DOXYGEN | grep $test >/dev/null; then
if test ! -x "`which doxygen`"; then
SKIP=1;
fi
fi
if test $SKIP -eq 0; then
echo $test
tpkg -a ../.. exe $test
else
echo "skip $test"
fi
done