tests.sh revision 15a44745412679c30a6d022733925af70a38b715
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews#!/bin/sh
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews#
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# Copyright (C) 2000 Internet Software Consortium.
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews#
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#
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
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# $Id: tests.sh,v 1.8 2000/07/27 09:40:44 tale Exp $
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark AndrewsSYSTEMTESTTOP=..
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews. $SYSTEMTESTTOP/conf.sh
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews#
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# Perform tests
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews#
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrewsstatus=0
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrewsecho "I:trying an axfr that should be denied (NOTAUTH)"
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews$DIG +tcp data.child.example. @10.53.0.3 axfr -p 5300 > dig.out.ns3 || status=1
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrewsgrep "; Transfer failed." dig.out.ns3 > /dev/null || status=1
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrewsecho "I:look for stub zone data without recursion (should not be found)"
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews$DIG +tcp +norec data.child.example. @10.53.0.3 txt -p 5300 > dig.out.ns3 \
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews || status=1
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews$PERL ../digcomp.pl knowngood.dig.out.norec dig.out.ns3 || status=1
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrewsecho "I:look for stub zone data with recursion (should be found)"
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews$DIG +tcp data.child.example. @10.53.0.3 txt -p 5300 > dig.out.ns3 || status=1
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews$PERL ../digcomp.pl knowngood.dig.out.rec dig.out.ns3 || status=1
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrewsecho "I:exit status: $status"
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrewsexit $status
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews