removed some unnecessary greps
This commit is contained in:
22
bin/tests/system/xfer/tests.sh
Normal file → Executable file
22
bin/tests/system/xfer/tests.sh
Normal file → Executable file
@@ -19,7 +19,7 @@ n=`expr $n + 1`
|
||||
echo_i "testing basic zone transfer functionality"
|
||||
$DIG $DIGOPTS example. \
|
||||
@10.53.0.2 axfr > dig.out.ns2 || status=1
|
||||
grep "^;" dig.out.ns2
|
||||
grep "^;" dig.out.ns2 | cat_i
|
||||
|
||||
#
|
||||
# Spin to allow the zone to tranfer.
|
||||
@@ -35,7 +35,7 @@ $DIG $DIGOPTS example. \
|
||||
sleep 5
|
||||
done
|
||||
if test $tmp -eq 1 ; then status=1; fi
|
||||
grep "^;" dig.out.ns3
|
||||
grep "^;" dig.out.ns3 | cat_i
|
||||
|
||||
$PERL ../digcomp.pl dig1.good dig.out.ns2 || status=1
|
||||
|
||||
@@ -44,7 +44,7 @@ $PERL ../digcomp.pl dig1.good dig.out.ns3 || status=1
|
||||
n=`expr $n + 1`
|
||||
echo_i "testing TSIG signed zone transfers"
|
||||
$DIG $DIGOPTS tsigzone. @10.53.0.2 axfr -y tsigzone.:1234abcd8765 > dig.out.ns2 || status=1
|
||||
grep "^;" dig.out.ns2
|
||||
grep "^;" dig.out.ns2 | cat_i
|
||||
|
||||
#
|
||||
# Spin to allow the zone to tranfer.
|
||||
@@ -59,7 +59,7 @@ tmp=0
|
||||
sleep 5
|
||||
done
|
||||
if test $tmp -eq 1 ; then status=1; fi
|
||||
grep "^;" dig.out.ns3
|
||||
grep "^;" dig.out.ns3 | cat_i
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
|
||||
|
||||
@@ -125,7 +125,7 @@ done
|
||||
|
||||
$DIG $DIGOPTS example. \
|
||||
@10.53.0.3 axfr > dig.out.ns3 || tmp=1
|
||||
grep "^;" dig.out.ns3
|
||||
grep "^;" dig.out.ns3 | cat_i
|
||||
|
||||
$PERL ../digcomp.pl dig2.good dig.out.ns3 || tmp=1
|
||||
|
||||
@@ -142,11 +142,11 @@ tmp=0
|
||||
|
||||
$DIG $DIGOPTS master. \
|
||||
@10.53.0.6 axfr > dig.out.ns6 || tmp=1
|
||||
grep "^;" dig.out.ns6
|
||||
grep "^;" dig.out.ns6 | cat_i
|
||||
|
||||
$DIG $DIGOPTS master. \
|
||||
@10.53.0.3 axfr > dig.out.ns3 || tmp=1
|
||||
grep "^;" dig.out.ns3 && cat dig.out.ns3
|
||||
grep "^;" dig.out.ns3 > /dev/null && cat_i dig.out.ns3
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns6 dig.out.ns3 || tmp=1
|
||||
|
||||
@@ -163,11 +163,11 @@ tmp=0
|
||||
|
||||
$DIG $DIGOPTS slave. \
|
||||
@10.53.0.6 axfr > dig.out.ns6 || tmp=1
|
||||
grep "^;" dig.out.ns6
|
||||
grep "^;" dig.out.ns6 | cat_i
|
||||
|
||||
$DIG $DIGOPTS slave. \
|
||||
@10.53.0.1 axfr > dig.out.ns1 || tmp=1
|
||||
grep "^;" dig.out.ns1
|
||||
grep "^;" dig.out.ns1 | cat_i
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns6 dig.out.ns1 || tmp=1
|
||||
|
||||
@@ -195,11 +195,11 @@ tmp=0
|
||||
|
||||
$DIG $DIGOPTS slave. \
|
||||
@10.53.0.1 axfr > dig.out.ns1 || tmp=1
|
||||
grep "^;" dig.out.ns1
|
||||
grep "^;" dig.out.ns1 | cat_i
|
||||
|
||||
$DIG $DIGOPTS slave. \
|
||||
@10.53.0.7 axfr > dig.out.ns7 || tmp=1
|
||||
grep "^;" dig.out.ns1
|
||||
grep "^;" dig.out.ns1 | cat_i
|
||||
|
||||
$PERL ../digcomp.pl dig.out.ns7 dig.out.ns1 || tmp=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user