tests.sh revision 6c6ccd6b330fa92d62136ec1062cc07a790a7165
07dcadc6e24f4572f2b7d7cae7d47d0f5256d129Andreas Gustafsson# Copyright (C) 2004, 2005, 2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence# Copyright (C) 2000, 2001 Internet Software Consortium.
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence# Permission to use, copy, modify, and/or distribute this software for any
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence# purpose with or without fee is hereby granted, provided that the above
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence# copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence# PERFORMANCE OF THIS SOFTWARE.
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater# $Id: tests.sh,v 1.37 2012/02/22 23:47:35 tbox Exp $
4cd765650776027d05fe7fca248478918e02e63bDavid LawrenceDIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd"
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrenceecho "I:testing basic zone transfer functionality"
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont @10.53.0.2 axfr -p 5300 > dig.out.ns2 || status=1
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence# Spin to allow the zone to tranfer.
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence @10.53.0.3 axfr -p 5300 > dig.out.ns3 || tmp=1
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence echo "I: plain zone re-transfer"
d70dac20d2b88e48fbf2606180d0ba6dcc4bc44fTinderbox User$PERL ../digcomp.pl dig1.good dig.out.ns2 || status=1
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence$PERL ../digcomp.pl dig1.good dig.out.ns3 || status=1
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrenceecho "I:testing TSIG signed zone transfers"
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence @10.53.0.2 axfr -y tsigzone.:1234abcd8765 -p 5300 \
status=1
status=1
status=1
status=1
status=1
status=1
echo "I:exit status: $status"
exit $status