]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
don't used class in grep e.g. [:space:]
authorMark Andrews <marka@isc.org>
Wed, 17 Feb 2016 02:17:40 +0000 (13:17 +1100)
committerMark Andrews <marka@isc.org>
Wed, 17 Feb 2016 02:17:40 +0000 (13:17 +1100)
bin/tests/system/digdelv/tests.sh
bin/tests/system/mkeys/tests.sh
bin/tests/system/rpzrecurse/tests.sh

index c6ff66b4b0547f154e5b94ac0ab08b8f79bc4923..4c2d8e168fdc768754ca9c4380aceb1adbae531c 100644 (file)
@@ -41,7 +41,7 @@ if [ -x ${DIG} ] ; then
   echo "I:checking dig +unknownformat works ($n)"
   ret=0
   $DIG $DIGOPTS @10.53.0.3 +unknownformat a a.example > dig.out.test$n || ret=1
-  grep "CLASS1[[:space:]][[:space:]]*TYPE1[[:space:]][[:space:]]*\\\\# 4 0A000001" < dig.out.test$n > /dev/null || ret=1
+  grep "CLASS1[        ][      ]*TYPE1[        ][      ]*\\\\# 4 0A000001" < dig.out.test$n > /dev/null || ret=1
   if [ $ret != 0 ]; then echo "I:failed"; fi 
   status=`expr $status + $ret`
 
@@ -198,7 +198,7 @@ if [ -x ${DIG} ] ; then
   
   n=`expr $n + 1`
   echo "I:checking dig @IPv6addr -4 A a.example ($n)"
-  if $TESTSOCK6 fd92:7065:b8e:ffff::2
+  if $TESTSOCK6 fd92:7065:b8e:ffff::2 2>/dev/null
   then
     ret=0
     $DIG $DIGOPTS +tcp @fd92:7065:b8e:ffff::2 -4 A a.example > dig.out.test$n 2>&1 && ret=1
@@ -211,7 +211,7 @@ if [ -x ${DIG} ] ; then
   
   n=`expr $n + 1`
   echo "I:checking dig @IPv4addr -6 +mapped A a.example ($n)"
-  if $TESTSOCK6 fd92:7065:b8e:ffff::2
+  if $TESTSOCK6 fd92:7065:b8e:ffff::2 2>/dev/null
   then
     ret=0
     ret=0
@@ -225,7 +225,7 @@ if [ -x ${DIG} ] ; then
 
   n=`expr $n + 1`
   echo "I:checking dig +tcp @IPv4addr -6 +nomapped A a.example ($n)"
-  if $TESTSOCK6 fd92:7065:b8e:ffff::2
+  if $TESTSOCK6 fd92:7065:b8e:ffff::2 2>/dev/null
   then
     ret=0
     ret=0
@@ -239,7 +239,7 @@ if [ -x ${DIG} ] ; then
   n=`expr $n + 1`
 
   echo "I:checking dig +notcp @IPv4addr -6 +nomapped A a.example ($n)"
-  if $TESTSOCK6 fd92:7065:b8e:ffff::2
+  if $TESTSOCK6 fd92:7065:b8e:ffff::2 2>/dev/null
   then
     ret=0
     ret=0
@@ -349,13 +349,13 @@ if [ -x ${DELV} ] ; then
   echo "I:checking delv +unknownformat works ($n)"
   ret=0
   $DELV $DELVOPTS @10.53.0.3 +unknownformat a a.example > delv.out.test$n || ret=1
-  grep "CLASS1[[:space:]][[:space:]]*TYPE1[[:space:]][[:space:]]*\\\\# 4 0A000001" < delv.out.test$n > /dev/null || ret=1
+  grep "CLASS1[        ][      ]*TYPE1[        ][      ]*\\\\# 4 0A000001" < delv.out.test$n > /dev/null || ret=1
   if [ $ret != 0 ]; then echo "I:failed"; fi
   status=`expr $status + $ret`
 
   n=`expr $n + 1`
   echo "I:checking delv with IPv6 on IPv4 does not work ($n)"
-  if $TESTSOCK6 fd92:7065:b8e:ffff::3
+  if $TESTSOCK6 fd92:7065:b8e:ffff::3 2>/dev/null
   then
     ret=0
     # following should fail because @IPv4 overrides earlier @IPv6 above
index f734988e4e1a4f8fd4410e2759613d5a1d792616..c66fadde30d230022a42d79a1e9ec5d543c0fd23 100644 (file)
@@ -28,8 +28,8 @@ DELVOPTS="-a ns1/trusted.conf -p 5300"
 echo "I: check for signed record ($n)"
 ret=0
 $DIG $DIGOPTS +norec example.  @10.53.0.1 TXT > dig.out.ns1.test$n || ret=1
-grep "^example\.[[:space:]]*[0-9].*[[:space:]]*IN[[:space:]]*TXT[[:space:]]*\"This is a test\.\"" dig.out.ns1.test$n > /dev/null || ret=1
-grep "^example\.[[:space:]]*[0-9].*[[:space:]]*IN[[:space:]]*RRSIG[[:space:]]*TXT[[:space:]]" dig.out.ns1.test$n > /dev/null || ret=1
+grep "^example\.[      ]*[0-9].*[      ]*IN[   ]*TXT[  ]*\"This is a test\.\"" dig.out.ns1.test$n > /dev/null || ret=1
+grep "^example\.[      ]*[0-9].*[      ]*IN[   ]*RRSIG[        ]*TXT[  ]" dig.out.ns1.test$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
index 23145f4bb8188d9aa9d4d437719e4b98ee68df18..c5bfb66b424b55419541084a401a3df2db7e312b 100644 (file)
@@ -240,7 +240,7 @@ grep "status: NOERROR" dig.out.${t} > /dev/null 2>&1 || {
     echo "I:test $t failed: query failed"
     status=1
 }
-grep "^l2.l1.l0.[[:space:]]*[0-9]*[[:space:]]*IN[[:space:]]*A[[:space:]]*10.53.0.2" dig.out.${t} > /dev/null 2>&1 || {
+grep "^l2.l1.l0.[      ]*[0-9]*[       ]*IN[   ]*A[    ]*10.53.0.2" dig.out.${t} > /dev/null 2>&1 || {
     echo "I:test $t failed: didn't get expected answer"
     status=1
 }