]>
Commit | Line | Data |
---|---|---|
d4886eb4 | 1 | #!/bin/sh |
7b8f4fc1 | 2 | if [ ! -e ${testsdir}/${testname}/use.drill ] |
b5baefaf | 3 | then |
df82962d KM |
4 | if [ "$2" != "AXFR" ] |
5 | then | |
a3dc491e | 6 | $SDIG $nameserver $port "$1" $2 $3 $4 $5 $6 $7 $8 $9 | LC_ALL=C sort |
df82962d | 7 | else |
d9c6538e | 8 | $SAXFR $nameserver $port "$1" $3 $4 | LC_ALL=C sort |
df82962d | 9 | fi |
e564ae3f | 10 | fi |
d9c6538e | 11 | $NSEC3DIG $nameserver $port "$1" $2 > ${testsdir}/${testname}/nsec3dig.out 2>&1 |
e564ae3f KM |
12 | if [ ! -e ${testsdir}/${testname}/skip-drill ] |
13 | then | |
12ccb5fd KM |
14 | if [ ! -s trustedkeys ] |
15 | then | |
16 | drill -a -p $port -o rd -D "$1" $2 @$nameserver > ${testsdir}/${testname}/drill.out 2>&1 | |
17 | echo RETVAL: $? >> ${testsdir}/${testname}/drill.out | |
18 | else | |
19 | drill -a -p $port -o rd -D -S -k trustedkeys "$1" $2 @$nameserver > ${testsdir}/${testname}/drillchase.out 2>&1 | |
20 | echo RETVAL: $? >> ${testsdir}/${testname}/drillchase.out | |
21 | drill -a -p $port -o rd -D -k trustedkeys "$1" $2 @$nameserver > ${testsdir}/${testname}/drill.out 2>&1 | |
22 | echo RETVAL: $? >> ${testsdir}/${testname}/drill.out | |
23 | fi | |
b5baefaf | 24 | fi |
4a9b70ec PD |
25 | if [ ! -e ${testsdir}/${testname}/skip-q ] |
26 | then | |
51332c0e | 27 | /usr/lib/go/bin/q -tcp=true -short=true -rd=false -check -dnssec -port=$port @$nameserver $2 "$1" > ${testsdir}/${testname}/q.out 2>&1 |
4a9b70ec PD |
28 | echo RETVAL: $? >> ${testsdir}/${testname}/q.out |
29 | fi | |
eb73d9ad | 30 | if [ ! -e ${testsdir}/${testname}/skip-unboundhost ] |
b9147125 | 31 | then |
51332c0e | 32 | unbound-host -v -C unbound-host.conf -t $2 "$1" > ${testsdir}/${testname}/unbound-host.out 2>&1 |
eb73d9ad | 33 | echo RETVAL: $? >> ${testsdir}/${testname}/unbound-host.out |
4f357152 | 34 | fi |
7b8f4fc1 | 35 | if [ -e ${testsdir}/${testname}/use.drill ] |
b5baefaf | 36 | then |
388cdf7a | 37 | cat ${testsdir}/${testname}/drill.out | sed 's/ ;.*//' |
b5baefaf | 38 | fi |
e1867286 | 39 | grep -iw bogus ${testsdir}/${testname}/*.out |