From: Michael Sawyer Date: Tue, 25 Jul 2000 00:44:18 +0000 (+0000) Subject: Test that the jnl file is properly recovered after a hard kill of the server X-Git-Tag: v9.2.0a1^10~41 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=dc9c461b27df798ba7c3d9ba1446840c5f85553b;p=thirdparty%2Fbind9.git Test that the jnl file is properly recovered after a hard kill of the server --- diff --git a/bin/tests/system/nsupdate/tests.sh b/bin/tests/system/nsupdate/tests.sh index 7523bd60d4b..2ebbd357c82 100644 --- a/bin/tests/system/nsupdate/tests.sh +++ b/bin/tests/system/nsupdate/tests.sh @@ -15,7 +15,7 @@ # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS # SOFTWARE. -# $Id: tests.sh,v 1.6 2000/07/24 23:54:57 mws Exp $ +# $Id: tests.sh,v 1.7 2000/07/25 00:44:18 mws Exp $ # # Perform tests @@ -75,5 +75,20 @@ $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\ echo "I:comparing zones" $PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1 +echo "I:SIGKILL and restart server ns1" +cd ns1 +kill -SIGKILL `cat named.pid` +rm named.pid +sleep 2 +$NAMED -c named.conf -d 99 -g >> named.run 2>&1 & +cd .. + +echo "I:fetching ns1 after hard restart" +$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\ + @10.53.0.1 axfr -p 5300 > dig.out.ns1.after || status=1 + +echo "I:comparing zones" +$PERL ../digcomp.pl dig.out.ns1 dig.out.ns1.after || status=1 + echo "I:exit status: $status" exit $status