]> git.ipfire.org Git - thirdparty/pdns.git/blame - regression-tests/cleandig
make tests fail if they lack an expected_result file
[thirdparty/pdns.git] / regression-tests / cleandig
CommitLineData
d4886eb4 1#!/bin/sh
eb73d9ad 2if [ ! -f ${testsdir}/${testname}/use.drill ]
b5baefaf 3then
0fabce54 4../pdns/sdig $nameserver $port $1 $2 $3 | LC_ALL=C sort
b5baefaf 5fi
eb73d9ad
PD
6../pdns/nsec3dig $nameserver $port $1 $2 > ${testsdir}/${testname}/nsec3dig.out 2>&1
7drill -a -p $port -o rd -D -S -k trustedkeys $1 $2 @$nameserver > ${testsdir}/${testname}/drillchase.out 2>&1
8echo RETVAL: $? >> ${testsdir}/${testname}/drillchase.out
9drill -a -p $port -o rd -D -k trustedkeys $1 $2 @$nameserver > ${testsdir}/${testname}/drill.out 2>&1
10echo RETVAL: $? >> ${testsdir}/${testname}/drill.out
11/usr/lib/go/bin/q -tcp=true -short=true -rd=false -check -dnssec -port=$port @$nameserver $2 $1 > ${testsdir}/${testname}/q.out 2>&1
12echo RETVAL: $? >> ${testsdir}/${testname}/q.out
13if [ ! -e ${testsdir}/${testname}/skip-unboundhost ]
b9147125 14then
d995f007 15 unbound-host -v -C unbound-host.conf -t $2 $1 > ${testsdir}/${testname}/unbound-host.out 2>&1
eb73d9ad 16 echo RETVAL: $? >> ${testsdir}/${testname}/unbound-host.out
4f357152 17fi
eb73d9ad 18if [ -f ${testsdir}/${testname}/use.drill ]
b5baefaf 19then
eb73d9ad 20 cat ${testsdir}/${testname}/drill.out
b5baefaf 21fi
e1867286 22grep -iw bogus ${testsdir}/${testname}/*.out