]> granicus.if.org Git - pdns/commitdiff
disable dnssec-only tools during non-dnssec tests
authorKees Monshouwer <mind04@monshouwer.org>
Sat, 16 Nov 2013 21:35:06 +0000 (22:35 +0100)
committermind04 <mind04@monshouwer.org>
Sat, 16 Nov 2013 21:38:23 +0000 (22:38 +0100)
regression-tests/00dnssec-grabkeys/command
regression-tests/cleandig

index 3dba73aa48f98581853413c0ff42bab7c71e345d..40808b5e9ddaa2651ca68857113e52e7faf5dbbb 100755 (executable)
@@ -1,17 +1,17 @@
-#!/bin/bash -e
-set pipefail
+#!/bin/bash
 rm -f trustedkeys
 rm -f unbound-host.conf
+
 for zone in $(grep zone named.conf  | cut -f2 -d\")
 do
-    if [ "${zone: 0:16}" != "secure-delegated" ]
-    then
-       drill -p $port -o rd -D dnskey $zone @$nameserver | grep -v '^;' | grep -v AwEAAarTiHhPgvD28WCN8UBXcEcf8f >> trustedkeys
-    fi
-       echo "stub-zone:" >> unbound-host.conf
-       echo "  name: $zone" >> unbound-host.conf
-       echo "  stub-addr: $nameserver@$port" >> unbound-host.conf
-       echo "" >> unbound-host.conf
+       if [ "${zone: 0:16}" != "secure-delegated" ]
+       then
+               drill -p $port -o rd -D dnskey $zone @$nameserver | grep DNSKEY | grep -v '^;' | grep -v AwEAAarTiHhPgvD28WCN8UBXcEcf8f >> trustedkeys
+       fi
+       echo "stub-zone:" >> unbound-host.conf
+       echo "  name: $zone" >> unbound-host.conf
+       echo "  stub-addr: $nameserver@$port" >> unbound-host.conf
+       echo "" >> unbound-host.conf
 done
 
 echo "server:" >> unbound-host.conf
index d2fa971137cb588bad1663cc5e9db72010f4cd33..3fbc87f690d48f5c341f2ab8598bebf097948b64 100755 (executable)
@@ -3,13 +3,19 @@ if [ ! -e ${testsdir}/${testname}/use.drill ]
 then
        ../pdns/sdig $nameserver $port "$1" $2 $3 $4 $5 | LC_ALL=C sort
 fi
+../pdns/nsec3dig $nameserver $port "$1" $2 > ${testsdir}/${testname}/nsec3dig.out 2>&1
 if [ ! -e ${testsdir}/${testname}/skip-drill ]
 then
-       ../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
+       if [ ! -s trustedkeys ]
+       then
+               drill -a -p $port -o rd -D "$1" $2 @$nameserver > ${testsdir}/${testname}/drill.out 2>&1
+               echo RETVAL: $? >> ${testsdir}/${testname}/drill.out
+       else
+               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
+       fi
 fi
 if [ ! -e ${testsdir}/${testname}/skip-q ]
 then