]> granicus.if.org Git - pdns/commitdiff
make sure cleandig digs whitespace in names
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 29 Apr 2013 09:29:58 +0000 (11:29 +0200)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 29 Apr 2013 09:29:58 +0000 (11:29 +0200)
regression-tests/cleandig

index 9d0bd09d7868b5e0307033c6483fb581bb6c0104..68bc42721505cdc7014a8dd9e34c6dc643e56429 100755 (executable)
@@ -1,21 +1,21 @@
 #!/bin/sh
 if [ ! -e ${testsdir}/${testname}/use.drill ]
 then
-../pdns/sdig $nameserver $port $1 $2 $3 | LC_ALL=C sort
+../pdns/sdig $nameserver $port "$1" $2 $3 | LC_ALL=C sort
 fi
-../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 
+../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
+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 [ ! -e ${testsdir}/${testname}/skip-q ]
 then
-       /usr/lib/go/bin/q -tcp=true -short=true -rd=false -check -dnssec -port=$port @$nameserver $2 $1 > ${testsdir}/${testname}/q.out 2>&1
+       /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
 fi
 if [ ! -e ${testsdir}/${testname}/skip-unboundhost ]
 then
-       unbound-host -v -C unbound-host.conf -t $2 $1 > ${testsdir}/${testname}/unbound-host.out 2>&1
+       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 [ -e ${testsdir}/${testname}/use.drill ]