]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4301. [bug] dnssec-settime -p [DP]sync was not working. [RT #41534]
authorMark Andrews <marka@isc.org>
Mon, 25 Jan 2016 13:27:44 +0000 (00:27 +1100)
committerMark Andrews <marka@isc.org>
Mon, 25 Jan 2016 13:27:44 +0000 (00:27 +1100)
bin/tests/system/autosign/clean.sh
bin/tests/system/autosign/tests.sh

index 5db47cae265ef27451ad9d147ffe87d4e4cf1f7f..07e558dfb1b16d103ad14e9f3171e27d2463f54f 100644 (file)
@@ -57,3 +57,4 @@ rm -f ns3/secure.optout.example.db
 rm -f ns3/ttl*.db
 rm -f nsupdate.out
 rm -f signing.out.*
+rm -f settime.out.*
index 286c09f8fa7e75f1a5f345915240017711ef1f29..33b000538f63caef3ef42d0a6a6286258180e884 100644 (file)
@@ -1198,5 +1198,23 @@ if [ "$lret" != 0 ]; then ret=$lret; fi
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
+echo "I:check that dnssec-settime -p Dsync works ($n)"
+ret=0
+$SETTIME -p Dsync `cat sync.key` > settime.out.$n|| ret=0
+grep "SYNC Delete:" settime.out.$n >/dev/null || ret=0
+n=`expr $n + 1`
+if [ "$lret" != 0 ]; then ret=$lret; fi
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
+
+echo "I:check that dnssec-settime -p Psync works ($n)"
+ret=0
+$SETTIME -p Psync `cat sync.key` > settime.out.$n|| ret=0
+grep "SYNC Publish:" settime.out.$n >/dev/null || ret=0
+n=`expr $n + 1`
+if [ "$lret" != 0 ]; then ret=$lret; fi
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
+
 echo "I:exit status: $status"
 exit $status