2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 23:55:27 +00:00

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 # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE. # SOFTWARE.
# $Id: tests.sh,v 1.6 2000/07/07 18:25:10 bwelling Exp $ # $Id: tests.sh,v 1.7 2000/07/08 16:36:29 tale Exp $
SYSTEMTESTTOP=.. SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh . $SYSTEMTESTTOP/conf.sh
@@ -26,34 +26,36 @@ SYSTEMTESTTOP=..
status=0 status=0
$DIG +tcp +nosea +nostat +noquest +nocomm +nocmd +norec \ echo "I:1000 A records"
1000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1 $DIG +tcp +norec 1000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
#dig 1000.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.1000 #dig 1000.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.1000
$PERL ../digcomp.pl knowngood.dig.out.1000 dig.out.ns1 || status=1 $PERL ../digcomp.pl knowngood.dig.out.1000 dig.out.ns1 || status=1
$DIG +tcp +nosea +nostat +noquest +nocomm +nocmd +norec \ echo "I:2000 A records"
2000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1 $DIG +tcp +norec 2000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
#dig 2000.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.2000 #dig 2000.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.2000
$PERL ../digcomp.pl knowngood.dig.out.2000 dig.out.ns1 || status=1 $PERL ../digcomp.pl knowngood.dig.out.2000 dig.out.ns1 || status=1
$DIG +tcp +nosea +nostat +noquest +nocomm +nocmd +norec \ echo "I:3000 A records"
3000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1 $DIG +tcp +norec 3000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
#dig 3000.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.3000 #dig 3000.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.3000
$PERL ../digcomp.pl knowngood.dig.out.3000 dig.out.ns1 || status=1 $PERL ../digcomp.pl knowngood.dig.out.3000 dig.out.ns1 || status=1
$DIG +tcp +nosea +nostat +noquest +nocomm +nocmd +norec \ echo "I:4000 A records"
4000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1 $DIG +tcp +norec 4000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
#dig 4000.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.4000 #dig 4000.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.4000
$PERL ../digcomp.pl knowngood.dig.out.4000 dig.out.ns1 || status=1 $PERL ../digcomp.pl knowngood.dig.out.4000 dig.out.ns1 || status=1
$DIG +tcp +nosea +nostat +noquest +nocomm +nocmd +norec \ echo "I:exactly maximum rrset"
a-maximum-rrset.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1 $DIG +tcp +norec a-maximum-rrset.example. @10.53.0.1 a -p 5300 > dig.out.ns1 \
|| status=1
#dig a-maximum-rrset.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.a-maximum-rrset #dig a-maximum-rrset.example. @10.53.0.1 a -p 5300 > knowngood.dig.out.a-maximum-rrset
$PERL ../digcomp.pl knowngood.dig.out.a-maximum-rrset dig.out.ns1 || status=1 $PERL ../digcomp.pl knowngood.dig.out.a-maximum-rrset dig.out.ns1 || status=1
$DIG +tcp +nosea +nostat +noquest +nocmd +norec \ echo "I:exceed maxmimum rrset (5000 A records)"
5000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1 $DIG +tcp +norec 5000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
grep 'flags: qr aa tc ad;' dig.out.ns1 || status=1 # Look for truncation bit (tc).
grep 'flags: qr aa tc ad;' dig.out.ns1 > /dev/null || status=1
echo "I:exit status: $status" echo "I:exit status: $status"
exit $status exit $status

View File

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