clean up test output
- removed a few remaing places where output wasn't being passed through echo_i or cat_i - added a "digcomp" function to conf.sh.in to send digcomp.pl output through cat_i and return the correct exit value - set SYSTESTDIR when calling echo_i from nsX directories, so that the test name will always be printed correctly - fixed a test name typo in conf.sh.in
This commit is contained in:
@@ -40,9 +40,9 @@ done
|
||||
if test $tmp -eq 1 ; then status=1; fi
|
||||
grep "^;" dig.out.ns3 | cat_i
|
||||
|
||||
{ $PERL ../digcomp.pl dig1.good dig.out.ns2 || status=1; } | cat_i
|
||||
digcomp dig1.good dig.out.ns2 || status=1
|
||||
|
||||
{ $PERL ../digcomp.pl dig1.good dig.out.ns3 || status=1; } | cat_i
|
||||
digcomp dig1.good dig.out.ns3 || status=1
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "testing TSIG signed zone transfers"
|
||||
@@ -64,7 +64,7 @@ done
|
||||
if test $tmp -eq 1 ; then status=1; fi
|
||||
grep "^;" dig.out.ns3 | cat_i
|
||||
|
||||
{ $PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1; } | cat_i
|
||||
digcomp dig.out.ns2 dig.out.ns3 || status=1
|
||||
|
||||
echo_i "reload servers for in preparation for ixfr-from-differences tests"
|
||||
|
||||
@@ -157,7 +157,7 @@ $DIG $DIGOPTS example. \
|
||||
@10.53.0.3 axfr > dig.out.ns3 || tmp=1
|
||||
grep "^;" dig.out.ns3 | cat_i
|
||||
|
||||
{ $PERL ../digcomp.pl dig2.good dig.out.ns3 || tmp=1; } | cat_i
|
||||
digcomp dig2.good dig.out.ns3 || tmp=1
|
||||
|
||||
# ns3 has a journal iff it received an IXFR.
|
||||
test -f ns3/example.bk || tmp=1
|
||||
@@ -178,7 +178,7 @@ $DIG $DIGOPTS master. \
|
||||
@10.53.0.3 axfr > dig.out.ns3 || tmp=1
|
||||
grep "^;" dig.out.ns3 > /dev/null && cat_i dig.out.ns3
|
||||
|
||||
{ $PERL ../digcomp.pl dig.out.ns6 dig.out.ns3 || tmp=1; } | cat_i
|
||||
digcomp dig.out.ns6 dig.out.ns3 || tmp=1
|
||||
|
||||
# ns3 has a journal iff it received an IXFR.
|
||||
test -f ns3/master.bk || tmp=1
|
||||
@@ -199,7 +199,7 @@ $DIG $DIGOPTS slave. \
|
||||
@10.53.0.1 axfr > dig.out.ns1 || tmp=1
|
||||
grep "^;" dig.out.ns1 | cat_i
|
||||
|
||||
{ $PERL ../digcomp.pl dig.out.ns6 dig.out.ns1 || tmp=1; } | cat_i
|
||||
digcomp dig.out.ns6 dig.out.ns1 || tmp=1
|
||||
|
||||
# ns6 has a journal iff it received an IXFR.
|
||||
test -f ns6/slave.bk || tmp=1
|
||||
@@ -231,7 +231,7 @@ $DIG $DIGOPTS slave. \
|
||||
@10.53.0.7 axfr > dig.out.ns7 || tmp=1
|
||||
grep "^;" dig.out.ns1 | cat_i
|
||||
|
||||
{ $PERL ../digcomp.pl dig.out.ns7 dig.out.ns1 || tmp=1; } | cat_i
|
||||
digcomp dig.out.ns7 dig.out.ns1 || tmp=1
|
||||
|
||||
# ns7 has a journal iff it generates an IXFR.
|
||||
test -f ns7/slave.bk || tmp=1
|
||||
@@ -434,7 +434,7 @@ $PERL $SYSTEMTESTTOP/start.pl --noclean --restart --port ${PORT} . ns3
|
||||
$DIG -p ${PORT} txt mapped @10.53.0.3 > dig.out.2.$n
|
||||
grep "status: NOERROR," dig.out.2.$n > /dev/null || tmp=1
|
||||
$DIG -p ${PORT} axfr mapped @10.53.0.3 > dig.out.3.$n
|
||||
{ $PERL ../digcomp.pl knowngood.mapped dig.out.3.$n || tmp=1; } | cat_i
|
||||
digcomp knowngood.mapped dig.out.3.$n || tmp=1
|
||||
if test $tmp != 0 ; then echo_i "failed"; fi
|
||||
status=`expr $status + $tmp`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user