use full dig output; let digcomp sort it all out. in particular, digcomp

really wants to get the server status.

also added "I:" info lines for each stage of the test
This commit is contained in:
David Lawrence
2000-07-08 16:36:29 +00:00
parent 2dc34dc3de
commit 45f0cd2b4b
2 changed files with 24 additions and 21 deletions

View File

@@ -15,7 +15,7 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
# $Id: tests.sh,v 1.6 2000/07/07 22:45:22 gson Exp $
# $Id: tests.sh,v 1.7 2000/07/08 16:33:52 tale Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@@ -26,16 +26,17 @@ SYSTEMTESTTOP=..
status=0
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd data.child.example. \
@10.53.0.3 axfr -p 5300 > dig.out.ns3 || status=1
echo "I:trying an axfr that should be denied (NOTAUTH)"
$DIG +tcp data.child.example. @10.53.0.3 axfr -p 5300 > dig.out.ns3 || status=1
grep "; Transfer failed." dig.out.ns3 > /dev/null || status=1
$DIG +tcp +nosea +nostat +noquest +nocomm +nocmd +norec \
data.child.example. @10.53.0.3 txt -p 5300 > dig.out.ns3 || status=1
echo "I:look for stub zone data without recursion (should not be found)"
$DIG +tcp +norec data.child.example. @10.53.0.3 txt -p 5300 > dig.out.ns3 \
|| status=1
$PERL ../digcomp.pl knowngood.dig.out.norec dig.out.ns3 || status=1
$DIG +tcp +nosea +nostat +noquest +nocomm +nocmd +rec \
data.child.example. @10.53.0.3 txt -p 5300 > dig.out.ns3 || status=1
echo "I:look for stub zone data with recursion (should be found)"
$DIG +tcp data.child.example. @10.53.0.3 txt -p 5300 > dig.out.ns3 || status=1
$PERL ../digcomp.pl knowngood.dig.out.rec dig.out.ns3 || status=1
echo "I:exit status: $status"