From: Fred Morcos Date: Tue, 24 Sep 2024 10:03:40 +0000 (+0200) Subject: runtests: error out when tools are not built X-Git-Tag: rec-5.2.0-alpha1~30^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fec46354337e3980c46a7cb28a59de5d0b933988;p=thirdparty%2Fpdns.git runtests: error out when tools are not built --- diff --git a/regression-tests/runtests b/regression-tests/runtests index d02ea7eb3b..fb1577dcdf 100755 --- a/regression-tests/runtests +++ b/regression-tests/runtests @@ -5,7 +5,6 @@ if [ -z "$testsdir" ]; then fi PATH=.:$PATH:/usr/sbin -MAKE=${MAKE:-make} if [ -z "$PDNS_BUILD_PATH" ]; then # PDNS_BUILD_PATH is unset or empty. Assume an autotools build. @@ -46,8 +45,9 @@ spectest=$1 [ -z $spectest ] && spectest="" for prog in $SDIG $SAXFR $NOTIFY $NSEC3DIG; do - if `echo $prog | grep -q '\.\./pdns'`; then - ${MAKE} -C ../pdns ${prog##*../pdns/} || exit + if [ ! -x "$prog" ]; then + echo "Error: cannot find $prog, please build it." + exit 1 fi done diff --git a/regression-tests/start-test-stop b/regression-tests/start-test-stop index c33eb35c60..c721f36f41 100755 --- a/regression-tests/start-test-stop +++ b/regression-tests/start-test-stop @@ -43,8 +43,6 @@ export FIX_TESTS=${FIX_TESTS:-NO} ALGORITHM=${ALGORITHM:="hmac-md5"} KEY=${KEY:="kp4/24gyYsEzbuTVJRUMoqGFmN3LYgVDzJ/3oRSP7ys="} -MAKE=${MAKE:-make} - export ALGORITHM export KEY