]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use extended regular expression as HPUX doesn't like grep -w '\(TXT\|ANY\)'
authorMark Andrews <marka@isc.org>
Mon, 17 Jun 2013 02:59:50 +0000 (12:59 +1000)
committerMark Andrews <marka@isc.org>
Mon, 17 Jun 2013 02:59:50 +0000 (12:59 +1000)
bin/tests/system/cacheclean/tests.sh

index 37d1e056f85910da38d631f3f42b22cad1f5acc0..712d2b22acf2dd94ff1665b096391dd812fbe247 100644 (file)
@@ -94,7 +94,7 @@ echo "I:reset and check that records are correctly cached initially"
 ret=0
 load_cache
 dump_cache
-nrecords=`grep flushtest.example ns2/named_dump.db | grep -v '^;' | grep -w '\(TXT\|ANY\)'|  wc -l`
+nrecords=`grep flushtest.example ns2/named_dump.db | grep -v '^;' | grep -Ew '(TXT|ANY)'|  wc -l`
 [ $nrecords -eq 17 ] || { ret=1; echo "I: found $nrecords records expected 17"; }
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
@@ -180,7 +180,7 @@ status=`expr $status + $ret`
 echo "I:check the number of cached records remaining"
 ret=0
 dump_cache
-nrecords=`grep flushtest.example ns2/named_dump.db | grep -v '^;' | grep -w '\(TXT\|ANY\)' |  wc -l`
+nrecords=`grep flushtest.example ns2/named_dump.db | grep -v '^;' | grep -Ew '(TXT|ANY)' |  wc -l`
 [ $nrecords -eq 17 ] || { ret=1; echo "I: found $nrecords records expected 17"; }
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`