]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
dump unexpected update failures
authorMark Andrews <marka@isc.org>
Wed, 25 Jun 2014 06:12:25 +0000 (16:12 +1000)
committerMark Andrews <marka@isc.org>
Wed, 25 Jun 2014 06:16:52 +0000 (16:16 +1000)
bin/tests/system/tsiggss/tests.sh

index a947dc965dc7562e88ab25eb171b0a3a28dcf08b..578d17bbac43215bb7c2305d462bc6808eb4c4d6 100644 (file)
@@ -39,8 +39,9 @@ update add $host $cmd
 send
 EOF
     echo "I:testing update for $host $type $cmd"
-    $NSUPDATE -g ns1/update.txt > /dev/null 2>&1 || {
+    $NSUPDATE -g -d ns1/update.txt > nsupdate.out 2>&1 || {
        echo "I:update failed for $host $type $cmd"
+       sed "s/^/I:/" nsupdate.out
        return 1
     }
 
@@ -59,21 +60,21 @@ export KRB5CCNAME
 
 test_update testdc1.example.nil. A "86400 A 10.53.0.10" "10.53.0.10" || status=1
 test_update testdc2.example.nil. A "86400 A 10.53.0.11" "10.53.0.11" || status=1
-test_update denied.example.nil. TXT "86400 TXT helloworld" "helloworld" && status=1
+test_update denied.example.nil. TXT "86400 TXT helloworld" "helloworld" > /dev/null && status=1
 
 echo "I:testing updates as a user"
 KRB5CCNAME="FILE:"`pwd`/ns1/testdenied.ccache
 export KRB5CCNAME
 
-test_update testdenied.example.nil. A "86400 A 10.53.0.12" "10.53.0.12" && status=1
+test_update testdenied.example.nil. A "86400 A 10.53.0.12" "10.53.0.12" > /dev/null && status=1
 test_update testdenied.example.nil. TXT "86400 TXT helloworld" "helloworld" || status=1
 
 echo "I:testing external update policy"
-test_update testcname.example.nil. TXT "86400 CNAME testdenied.example.nil" "testdenied" && status=1
+test_update testcname.example.nil. TXT "86400 CNAME testdenied.example.nil" "testdenied" > /dev/null && status=1
 $PERL ./authsock.pl --type=CNAME --path=ns1/auth.sock --pidfile=authsock.pid --timeout=120 > /dev/null 2>&1 &
 sleep 1
 test_update testcname.example.nil. TXT "86400 CNAME testdenied.example.nil" "testdenied" || status=1
-test_update testcname.example.nil. TXT "86400 A 10.53.0.13" "10.53.0.13" && status=1
+test_update testcname.example.nil. TXT "86400 A 10.53.0.13" "10.53.0.13" > /dev/null && status=1
 
 echo "I:testing external policy with SIG(0) key"
 ret=0