tests.sh revision bf8267aa453e5d2a735ed732a043b77a0b355b20
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# Copyright (C) 2000, 2001 Internet Software Consortium.
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# Permission to use, copy, modify, and/or distribute this software for any
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# purpose with or without fee is hereby granted, provided that the above
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# copyright notice and this permission notice appear in all copies.
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# PERFORMANCE OF THIS SOFTWARE.
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# $Id: tests.sh,v 1.7 2007/06/19 23:47:04 tbox Exp $
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$PERL ../digcomp.pl dig.out.ns2 dig.out.ns4 || status=1
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk$PERL ../digcomp.pl dig.out.ns2 dig.out.ns4 || status=1
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenkecho "I:exit status: $status"
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenkif [ $? != 0 ]; then
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk echo "I:ns3 died before a SIGTERM was sent"
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk echo "I:ns3 didn't die when sent a SIGTERM"
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk if [ $? != 0 ]; then
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk echo "I:ns3 died before a SIGKILL was sent"
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk(cd ns3 ; $NAMED -c named.conf -d 99 -g >> named.run 2>&1 & )
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenkif [ $? != 0 ]; then
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk echo "I:ns2 died before a SIGTERM was sent"
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk echo "I:ns2 didn't die when sent a SIGTERM"
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk if [ $? != 0 ]; then
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk echo "I:ns2 died before a SIGKILL was sent"
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster(cd ns2 ; $NAMED -c named.conf -d 99 -g >> named.run 2>&1 & )
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
6e153e9671eb382c49354ab856404a71477cce58jeff.schenkecho "I:exit status: $status"