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:
@@ -50,8 +50,8 @@ $DIG $DIGOPTS +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
|
||||
|
||||
ret=0
|
||||
echo_i "comparing pre-update copies to known good data"
|
||||
$PERL ../digcomp.pl knowngood.ns1.before dig.out.ns1 || ret=1
|
||||
$PERL ../digcomp.pl knowngood.ns1.before dig.out.ns2 || ret=1
|
||||
digcomp knowngood.ns1.before dig.out.ns1 || ret=1
|
||||
digcomp knowngood.ns1.before dig.out.ns2 || ret=1
|
||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||
|
||||
ret=0
|
||||
@@ -83,8 +83,8 @@ $DIG $DIGOPTS +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
|
||||
|
||||
ret=0
|
||||
echo_i "comparing post-update copies to known good data"
|
||||
$PERL ../digcomp.pl knowngood.ns1.after dig.out.ns1 || ret=1
|
||||
$PERL ../digcomp.pl knowngood.ns1.after dig.out.ns2 || ret=1
|
||||
digcomp knowngood.ns1.after dig.out.ns1 || ret=1
|
||||
digcomp knowngood.ns1.after dig.out.ns2 || ret=1
|
||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||
|
||||
ret=0
|
||||
@@ -114,7 +114,7 @@ post=`$DIG $DIGOPTS +short new.other.nil. @10.53.0.1 a` || ret=1
|
||||
|
||||
ret=0
|
||||
echo_i "comparing post-update copy to known good data"
|
||||
$PERL ../digcomp.pl knowngood.ns1.after dig.out.ns1 || ret=1
|
||||
digcomp knowngood.ns1.after dig.out.ns1 || ret=1
|
||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||
|
||||
ret=0
|
||||
@@ -308,7 +308,7 @@ $DIG $DIGOPTS +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
|
||||
|
||||
ret=0
|
||||
echo_i "comparing zones"
|
||||
$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || ret=1
|
||||
digcomp dig.out.ns1 dig.out.ns2 || ret=1
|
||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||
|
||||
echo_i "SIGKILL and restart server ns1"
|
||||
@@ -335,7 +335,7 @@ $DIG $DIGOPTS +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
|
||||
|
||||
ret=0
|
||||
echo_i "comparing zones"
|
||||
$PERL ../digcomp.pl dig.out.ns1 dig.out.ns1.after || ret=1
|
||||
digcomp dig.out.ns1 dig.out.ns1.after || ret=1
|
||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||
|
||||
echo_i "begin RT #482 regression test"
|
||||
@@ -494,7 +494,7 @@ rm -f ns1/*jnl
|
||||
$PERL $SYSTEMTESTTOP/start.pl --noclean --restart --port ${PORT} . ns1
|
||||
$DIG $DIGOPTS +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd updated4.example.nil.\
|
||||
@10.53.0.1 a > dig.out.ns1 || status=1
|
||||
$PERL ../digcomp.pl knowngood.ns1.afterstop dig.out.ns1 || ret=1
|
||||
digcomp knowngood.ns1.afterstop dig.out.ns1 || ret=1
|
||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||
|
||||
ret=0
|
||||
|
||||
Reference in New Issue
Block a user