]>
git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests/cleandig
4 which drill
>/dev
/null
2>/dev
/null ||
(echo "missing drill tool" >&2; exit 1)
5 which unbound-host
>/dev
/null
2>/dev
/null ||
(echo "missing unbound-host tool" >&2; exit 1)
8 if [ ! -e ${testsdir}/${testname}/use.drill
]
12 $SDIG $nameserver $port "$1" $2 $3 $4 $5 $6 $7 $8 $9 | LC_ALL
=C
sort
14 $SAXFR $nameserver $port "$1" $3 $4 | LC_ALL
=C
sort
17 $NSEC3DIG $nameserver $port "$1" $2 > ${testsdir}/${testname}/nsec3dig.out
2>&1
18 if [ ! -e ${testsdir}/${testname}/skip-drill
]
20 if [ ! -s trustedkeys
]
22 drill
-a -p $port -o rd
-D "$1" $2 @
$nameserver > ${testsdir}/${testname}/drill.out
2>&1
23 echo RETVAL
: $?
>> ${testsdir}/${testname}/drill.out
25 drill
-a -p $port -o rd
-D -S -k trustedkeys
"$1" $2 @
$nameserver > ${testsdir}/${testname}/drillchase.out
2>&1
26 echo RETVAL
: $?
>> ${testsdir}/${testname}/drillchase.out
27 drill
-a -p $port -o rd
-D -k trustedkeys
"$1" $2 @
$nameserver > ${testsdir}/${testname}/drill.out
2>&1
28 echo RETVAL
: $?
>> ${testsdir}/${testname}/drill.out
31 if [ ! -e ${testsdir}/${testname}/skip-q
]
33 /usr
/lib
/go
/bin
/q
-tcp=true
-short=true
-rd=false
-check -dnssec -port=$port @
$nameserver $2 "$1" > ${testsdir}/${testname}/q.out
2>&1
34 echo RETVAL
: $?
>> ${testsdir}/${testname}/q.out
36 if [ ! -e ${testsdir}/${testname}/skip-unboundhost
]
38 unbound-host
-v -C unbound-host.conf
-t $2 "$1" > ${testsdir}/${testname}/unbound-host.out
2>&1
39 echo RETVAL
: $?
>> ${testsdir}/${testname}/unbound-host.out
41 if [ -e ${testsdir}/${testname}/use.drill
]
43 cat ${testsdir}/${testname}/drill.out |
sed 's/ ;.*//'
45 grep -iw bogus
${testsdir}/${testname}/*.out