From: Arthur Gautier Date: Fri, 5 May 2017 19:25:06 +0000 (+0000) Subject: tests: Ensure all required tools are available X-Git-Tag: rec-4.1.0-alpha1~127^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5309%2Fhead;p=thirdparty%2Fpdns.git tests: Ensure all required tools are available If one of those tools misses, the test will silently PASS. We should ensure it is present Signed-off-by: Arthur Gautier --- diff --git a/regression-tests/cleandig b/regression-tests/cleandig index d0b3832292..4f34dfbf3a 100755 --- a/regression-tests/cleandig +++ b/regression-tests/cleandig @@ -1,4 +1,10 @@ #!/bin/sh + +set -e +which drill >/dev/null 2>/dev/null || (echo "missing drill tool" >&2; exit 1) +which unbound-host >/dev/null 2>/dev/null || (echo "missing unbound-host tool" >&2; exit 1) +set +e + if [ ! -e ${testsdir}/${testname}/use.drill ] then if [ "$2" != "AXFR" ]