#!/bin/sh
-if [ ! -f $testname/use.drill ]
+if [ ! -f ${testsdir}/${testname}/use.drill ]
then
../pdns/sdig $nameserver $port $1 $2 $3 | LC_ALL=C sort
fi
-../pdns/nsec3dig $nameserver $port $1 $2 > $testname/nsec3dig.out 2>&1
-drill -a -p $port -o rd -D -S -k trustedkeys $1 $2 @$nameserver > $testname/drillchase.out 2>&1
-echo RETVAL: $? >> $testname/drillchase.out
-drill -a -p $port -o rd -D -k trustedkeys $1 $2 @$nameserver > $testname/drill.out 2>&1
-echo RETVAL: $? >> $testname/drill.out
-/usr/lib/go/bin/q -tcp=true -short=true -rd=false -check -dnssec -port=$port @$nameserver $2 $1 > $testname/q.out 2>&1
-echo RETVAL: $? >> $testname/q.out
-if [ ! -e $testname/skip-unboundhost ]
+../pdns/nsec3dig $nameserver $port $1 $2 > ${testsdir}/${testname}/nsec3dig.out 2>&1
+drill -a -p $port -o rd -D -S -k trustedkeys $1 $2 @$nameserver > ${testsdir}/${testname}/drillchase.out 2>&1
+echo RETVAL: $? >> ${testsdir}/${testname}/drillchase.out
+drill -a -p $port -o rd -D -k trustedkeys $1 $2 @$nameserver > ${testsdir}/${testname}/drill.out 2>&1
+echo RETVAL: $? >> ${testsdir}/${testname}/drill.out
+/usr/lib/go/bin/q -tcp=true -short=true -rd=false -check -dnssec -port=$port @$nameserver $2 $1 > ${testsdir}/${testname}/q.out 2>&1
+echo RETVAL: $? >> ${testsdir}/${testname}/q.out
+if [ ! -e ${testsdir}/${testname}/skip-unboundhost ]
then
- unbound-host -v -C unbound-host.conf -t $2 $1 > $testname/unbound-host.out 2>&1
- echo RETVAL: $? >> $testname/unbound-host.out
+ unbound-host -v -C unbound-host.conf -t $2 $1 > ${testsdir}/${testname}/unbound-host.out 2>&1
+ echo RETVAL: $? >> ${testsdir}/${testname}/unbound-host.out
fi
-if [ -f $testname/use.drill ]
+if [ -f ${testsdir}/${testname}/use.drill ]
then
- cat $testname/drill.out
+ cat ${testsdir}/${testname}/drill.out
fi
-grep -i bogus $testname/*.out
+grep -i bogus ${testsdir}/${testname}/*.out