tests.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder# Copyright (C) 2000, 2001, 2004, 2007, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
2725abe920f91de62ae5c0b7230c1627cccf5fabChristian Maeder# This Source Code Form is subject to the terms of the Mozilla Public
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu# License, v. 2.0. If a copy of the MPL was not distributed with this
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder# file, You can obtain one at http://mozilla.org/MPL/2.0/.
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder# $Id: tests.sh,v 1.25 2007/06/19 23:47:07 tbox Exp $
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder# Perform tests
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder echo "I:Changing test zone..."
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder echo "I:Took too long to load zones"
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder count=`cat ns2/zone*.bk | grep xyzzy | wc -l`
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder echo "I:Have $count zones up in $seconds seconds"
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder zone000099.example. @10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder zone000099.example. @10.53.0.2 axfr -p 5300 > dig.out.ns2 || status=1
a461314c811f4187dff85c8be079a41b2f13f176Christian Maeder$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
be43c3fa0292555bd126784ae27ff5c1d23438cbChristian Maeder$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder a.changing. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
7f7460e7095628f3437b116ee78d3043d11f8febChristian Maeder a.changing. @10.53.0.2 a -p 5300 > dig.out.ns2 || status=1
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
9d6562465b41f17c7967d4e5678f34811d958cb2Christian Maederecho "I:exit status: $status"