From 7e47805b3898cead8418a9933d1592a884842e72 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Fri, 5 May 2017 19:25:06 +0000 Subject: [PATCH] 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 --- regression-tests/cleandig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/regression-tests/cleandig b/regression-tests/cleandig index d0b383229..4f34dfbf3 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" ] -- 2.40.0