0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2000, 2001, 2004, 2007, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater# $Id: tests.sh,v 1.25 2007/06/19 23:47:07 tbox Exp $
02bc88821c5c853027b20199d178b321093ad2ceMichael Sawyer# Perform tests
1e8c2e72e7d0f48ac37b9b15712e638631b3b619Brian Wellington echo "I:Changing test zone..."
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecicki if [ ! "$CYGWIN" ]; then
6c3bd0545ac22ab1b41c9820183aca662afe07b9Brian Wellington echo "I:Took too long to load zones"
02bc88821c5c853027b20199d178b321093ad2ceMichael Sawyer count=`cat ns2/zone*.bk | grep xyzzy | wc -l`
9e411a82b2c5ff3b9b36f1f44ea35a70ab7a6760Andreas Gustafsson echo "I:Have $count zones up in $seconds seconds"
813d6c9781d1fb48bb5c1d6d3415e65f7be5eeb0Andreas Gustafsson$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
722cac3cdcc5385ab64fa2d6c7f48ce3b9a68331Andreas Gustafsson zone000099.example. @10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
813d6c9781d1fb48bb5c1d6d3415e65f7be5eeb0Andreas Gustafsson$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
722cac3cdcc5385ab64fa2d6c7f48ce3b9a68331Andreas Gustafsson zone000099.example. @10.53.0.2 axfr -p 5300 > dig.out.ns2 || status=1
722cac3cdcc5385ab64fa2d6c7f48ce3b9a68331Andreas Gustafsson$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
813d6c9781d1fb48bb5c1d6d3415e65f7be5eeb0Andreas Gustafsson$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
722cac3cdcc5385ab64fa2d6c7f48ce3b9a68331Andreas Gustafsson a.changing. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
813d6c9781d1fb48bb5c1d6d3415e65f7be5eeb0Andreas Gustafsson$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
722cac3cdcc5385ab64fa2d6c7f48ce3b9a68331Andreas Gustafsson a.changing. @10.53.0.2 a -p 5300 > dig.out.ns2 || status=1
722cac3cdcc5385ab64fa2d6c7f48ce3b9a68331Andreas Gustafsson$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
1e8c2e72e7d0f48ac37b9b15712e638631b3b619Brian Wellingtonecho "I:exit status: $status"