tests.sh revision c3c6770e537ea916265c78d0294ad108233e17c1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#!/bin/sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Copyright (C) 2000 Internet Software Consortium.
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Permission to use, copy, modify, and distribute this software for any
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# purpose with or without fee is hereby granted, provided that the above
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# copyright notice and this permission notice appear in all copies.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# SOFTWARE.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# $Id: tests.sh,v 1.1 2000/07/06 00:54:02 mws Exp $
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Perform tests
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntSYSTEMTESTTOP=..
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt. $SYSTEMTESTTOP/conf.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntstatus=0
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntgrep ";" dig.out.ns1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @10.53.0.1 axfr -p 5300 > dig.out.ns2 || status=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntgrep ";" dig.out.ns2
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$PERL ../digcomp.pl knowngood.ns1.before dig.out.ns1 || status=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$PERL ../digcomp.pl knowngood.ns1.before dig.out.ns2 || status=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$NSUPDATE < update.scp
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntsleep 15
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntgrep ";" dig.out.ns1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @10.53.0.1 axfr -p 5300 > dig.out.ns2 || status=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntgrep ";" dig.out.ns2
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$PERL ../digcomp.pl knowngood.ns1.after dig.out.ns1 || status=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt$PERL ../digcomp.pl knowngood.ns1.after dig.out.ns2 || status=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntecho "I: exit status: $status"
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntexit $status
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt