tests.sh revision 15a44745412679c30a6d022733925af70a38b715
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# Copyright (C) 2000 Internet Software Consortium.
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# Permission to use, copy, modify, and distribute this software for any
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# purpose with or without fee is hereby granted, provided that the above
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# copyright notice and this permission notice appear in all copies.
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# $Id: tests.sh,v 1.18 2000/07/27 09:41:28 tale Exp $
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# Perform tests
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews echo "I:Changing test zone..."
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews echo "I:Took too long to load zones"
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews echo "I:Have $count zones up in $seconds seconds"
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews zone000099.example. @10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews zone000099.example. @10.53.0.2 axfr -p 5300 > dig.out.ns2 || status=1
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews a.changing. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
echo "I:exit status: $status"
exit $status