Sweeping changes to system test suite
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//NS1
|
||||
|
||||
options {
|
||||
directory ".";
|
||||
pid-file "named.pid";
|
||||
@@ -8,5 +10,7 @@ options {
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
file "root.db";
|
||||
file "root.db.signed";
|
||||
};
|
||||
|
||||
include "trusted.conf";
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// NS2
|
||||
|
||||
options {
|
||||
pid-file "named.pid";
|
||||
listen-on { 10.53.0.2; };
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// NS3
|
||||
|
||||
options {
|
||||
pid-file "named.pid";
|
||||
listen-on { 10.53.0.3; };
|
||||
@@ -12,6 +14,7 @@ zone "." {
|
||||
|
||||
zone "example" {
|
||||
type slave;
|
||||
masters { 10.53.0.2; };
|
||||
file "example.bk";
|
||||
};
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// NS4
|
||||
|
||||
options {
|
||||
directory ".";
|
||||
pid-file "named.pid";
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
cd ns1 && sh sign.sh
|
||||
|
||||
#echo "a.bogus.example. A 10.0.0.22" >>../ns3/secure.example.db.signed
|
||||
echo "a.bogus.example. A 10.0.0.22" >>../ns3/bogus.example.db.signed
|
||||
|
||||
@@ -30,8 +30,7 @@ grep ";" dig.out.ns3
|
||||
status=`expr $status + $?`
|
||||
grep ";" dig.out.ns4
|
||||
|
||||
perl ../digcomp.pl dig.out.ns2 dig.out.ns3
|
||||
perl ../digcomp.pl dig.out.ns2 dig.out.ns4
|
||||
rm -f dig.out.*
|
||||
|
||||
# Check the example. domain
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
@@ -44,10 +43,70 @@ grep ";" dig.out.ns2
|
||||
status=`expr $status + $?`
|
||||
grep ";" dig.out.ns3
|
||||
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
perl ../digcomp.pl dig.out.ns2 dig.out.ns3
|
||||
status=`expr $status + $?`
|
||||
|
||||
rm -f dig.out.*
|
||||
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd +noauth \
|
||||
a.example. @10.53.0.2 a > dig.out.ns2
|
||||
status=`expr $status + $?`
|
||||
grep ";" dig.out.ns2
|
||||
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd +noauth \
|
||||
a.example. @10.53.0.4 a > dig.out.ns4
|
||||
status=`expr $status + $?`
|
||||
grep ";" dig.out.ns2
|
||||
|
||||
perl ../digcomp.pl dig.out.ns2 dig.out.ns4
|
||||
status=`expr $status + $?`
|
||||
|
||||
# Check the insecure.example domain
|
||||
|
||||
rm -f dig.out.*
|
||||
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
a.insecure.example. @10.53.0.3 a > dig.out.ns3
|
||||
status=`expr $status + $?`
|
||||
grep ";" dig.out.ns3
|
||||
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
a.insecure.example. @10.53.0.4 a > dig.out.ns4
|
||||
status=`expr $status + $?`
|
||||
grep ";" dig.out.ns4
|
||||
|
||||
perl ../digcomp.pl dig.out.ns2 dig.out.ns3
|
||||
perl ../digcomp.pl dig.out.ns2 dig.out.ns4
|
||||
perl ../digcomp.pl dig.out.ns3 dig.out.ns4
|
||||
status=`expr $status + $?`
|
||||
|
||||
# Check the secure.example domain
|
||||
|
||||
rm -f dig.out.*
|
||||
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
a.secure.example. @10.53.0.3 a > dig.out.ns3
|
||||
status=`expr $status + $?`
|
||||
grep ";" dig.out.ns3
|
||||
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
a.secure.example. @10.53.0.4 a > dig.out.ns4
|
||||
status=`expr $status + $?`
|
||||
grep ";" dig.out.ns4
|
||||
|
||||
perl ../digcomp.pl dig.out.ns3 dig.out.ns4
|
||||
status=`expr $status + $?`
|
||||
|
||||
# Check the bogus domain
|
||||
|
||||
rm -f dig.out.*
|
||||
|
||||
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocmd \
|
||||
a.bogus.example. @10.53.0.4 a > dig.out.ns4
|
||||
grep "SERVFAIL" dig.out.ns4 > /dev/null
|
||||
status=`expr $status + $?`
|
||||
echo "SERVFAIL is expected in the following:"
|
||||
grep ";" dig.out.ns4
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "FAILED with status $status"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user