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:
@@ -45,7 +45,7 @@ grep "10.0.0.1" dig.out.ns2.test$n > /dev/null || ret=1
|
||||
$DIG $DIGOPTS a.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
|
||||
grep "10.0.0.1" dig.out.ns3.test$n > /dev/null || ret=1
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
|
||||
digcomp dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
|
||||
|
||||
[ $ret = 0 ] || echo_i "failed"
|
||||
status=`expr $ret + $status`
|
||||
@@ -105,7 +105,7 @@ grep "10.0.0.2" dig.out.ns2.test$n > /dev/null || ret=1
|
||||
$DIG $DIGOPTS a.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
|
||||
grep "10.0.0.2" dig.out.ns3.test$n > /dev/null || ret=1
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
|
||||
digcomp dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
|
||||
|
||||
[ $ret = 0 ] || echo_i "failed"
|
||||
status=`expr $ret + $status`
|
||||
@@ -151,7 +151,7 @@ grep "10.0.0.4" dig.out.ns2.test$n > /dev/null || ret=1
|
||||
$DIG $DIGOPTS a.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
|
||||
grep "10.0.0.4" dig.out.ns3.test$n > /dev/null || ret=1
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
|
||||
digcomp dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
|
||||
|
||||
[ $ret = 0 ] || echo_i "failed"
|
||||
status=`expr $ret + $status`
|
||||
|
||||
Reference in New Issue
Block a user