From: Mark Andrews Date: Mon, 25 Jan 2016 13:27:44 +0000 (+1100) Subject: 4301. [bug] dnssec-settime -p [DP]sync was not working. [RT #41534] X-Git-Tag: v9.11.0a1~173 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9478de25bb86e8942e35cf50462cf108154958e9;p=thirdparty%2Fbind9.git 4301. [bug] dnssec-settime -p [DP]sync was not working. [RT #41534] --- diff --git a/bin/tests/system/autosign/clean.sh b/bin/tests/system/autosign/clean.sh index 5db47cae265..07e558dfb1b 100644 --- a/bin/tests/system/autosign/clean.sh +++ b/bin/tests/system/autosign/clean.sh @@ -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.* diff --git a/bin/tests/system/autosign/tests.sh b/bin/tests/system/autosign/tests.sh index 286c09f8fa7..33b000538f6 100644 --- a/bin/tests/system/autosign/tests.sh +++ b/bin/tests/system/autosign/tests.sh @@ -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