Commit dc9c461b authored by Michael Sawyer's avatar Michael Sawyer
Browse files

Test that the jnl file is properly recovered after a hard kill of the server

parent 56f8b1c4
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment