From 9478de25bb86e8942e35cf50462cf108154958e9 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 26 Jan 2016 00:27:44 +1100 Subject: [PATCH] 4301. [bug] dnssec-settime -p [DP]sync was not working. [RT #41534] --- bin/tests/system/autosign/clean.sh | 1 + bin/tests/system/autosign/tests.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/bin/tests/system/autosign/clean.sh b/bin/tests/system/autosign/clean.sh index 5db47cae26..07e558dfb1 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 286c09f8fa..33b000538f 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