work around NetBSD /bin/sh bug, with the side effect of making the

test script shorter
This commit is contained in:
Andreas Gustafsson 2000-07-05 19:42:34 +00:00
parent 24139527f3
commit aade2614cb

View file

@ -15,7 +15,7 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
# $Id: tests.sh,v 1.16 2000/07/05 18:49:05 bwelling Exp $
# $Id: tests.sh,v 1.17 2000/07/05 19:42:34 gson Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@ -28,35 +28,28 @@ sleep 5
status=0;
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example. \
@10.53.0.2 axfr -p 5300 > dig.out.ns2
status=`expr $status + $?`
@10.53.0.2 axfr -p 5300 > dig.out.ns2 || status=1
grep ";" dig.out.ns2
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example. \
@10.53.0.3 axfr -p 5300 > dig.out.ns3
status=`expr $status + $?`
@10.53.0.3 axfr -p 5300 > dig.out.ns3 || status=1
grep ";" dig.out.ns3
$PERL ../digcomp.pl knowngood.dig.out dig.out.ns2
status=`expr $status + $?`
$PERL ../digcomp.pl knowngood.dig.out dig.out.ns2 || status=1
$PERL ../digcomp.pl knowngood.dig.out dig.out.ns3
status=`expr $status + $?`
$PERL ../digcomp.pl knowngood.dig.out dig.out.ns3 || status=1
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
tsigzone. @10.53.0.2 axfr -y tsigzone.:1234abcd8765 -p 5300 \
> dig.out.ns2
status=`expr $status + $?`
> dig.out.ns2 || status=1
grep ";" dig.out.ns2
../../../dig/dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
tsigzone. @10.53.0.3 axfr -y tsigzone.:1234abcd8765 -p 5300 \
> dig.out.ns3
status=`expr $status + $?`
> dig.out.ns3 || status=1
grep ";" dig.out.ns3
$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3
status=`expr $status + $?`
$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
echo "I: exit status: $status"
exit $status