From 4e21d6b5ce623f7601a872b94f3b88105356e2d3 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 30 May 2011 17:29:58 +0200 Subject: hash:* tests may seem to fail due to the too wide grep pattern, fix them --- tests/hash:ip,port,ip.t | 2 +- tests/hash:ip,port,net.t | 4 ++-- tests/hash:ip,port.t | 2 +- tests/hash:ip.t | 2 +- tests/hash:net,port.t | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/hash:ip,port,ip.t b/tests/hash:ip,port,ip.t index 5b79ab8..01132e8 100644 --- a/tests/hash:ip,port,ip.t +++ b/tests/hash:ip,port,ip.t @@ -59,7 +59,7 @@ # Add a range which forces a resizing 0 ipset add test 10.0.0.0-10.0.3.255,tcp:80-82,192.168.0.1 # Check that correct number of elements are added -0 n=`ipset list test|grep 10.0|wc -l` && test $n -eq 3072 +0 n=`ipset list test|grep '^10.0'|wc -l` && test $n -eq 3072 # Destroy set 0 ipset -X test # eof diff --git a/tests/hash:ip,port,net.t b/tests/hash:ip,port,net.t index c13ccc4..26645ef 100644 --- a/tests/hash:ip,port,net.t +++ b/tests/hash:ip,port,net.t @@ -43,7 +43,7 @@ # Add a range which forces a resizing 0 ipset add test 10.0.0.0-10.0.3.255,tcp:80-82,192.168.0.1/24 # Check that correct number of elements are added -0 n=`ipset list test|grep 10.0|wc -l` && test $n -eq 3072 +0 n=`ipset list test|grep '^10.0'|wc -l` && test $n -eq 3072 # Destroy set 0 ipset -X test # Create set to add a range and with range notation in the network @@ -51,7 +51,7 @@ # Add a range which forces a resizing 0 ipset add test 10.0.0.0-10.0.3.255,tcp:80-82,192.168.0.0-192.168.2.255 # Check that correct number of elements are added -0 n=`ipset list test|grep 10.0|wc -l` && test $n -eq 6144 +0 n=`ipset list test|grep '^10.0'|wc -l` && test $n -eq 6144 # Destroy set 0 ipset -X test # eof diff --git a/tests/hash:ip,port.t b/tests/hash:ip,port.t index 639bfe6..c2bc0cc 100644 --- a/tests/hash:ip,port.t +++ b/tests/hash:ip,port.t @@ -79,7 +79,7 @@ # Add a range which forces a resizing 0 ipset add test 10.0.0.0-10.0.3.255,tcp:80-82 # Check that correct number of elements are added -0 n=`ipset list test|grep 10.0|wc -l` && test $n -eq 3072 +0 n=`ipset list test|grep '^10.0'|wc -l` && test $n -eq 3072 # Destroy set 0 ipset -X test # eof diff --git a/tests/hash:ip.t b/tests/hash:ip.t index 10a1809..8ae584f 100644 --- a/tests/hash:ip.t +++ b/tests/hash:ip.t @@ -65,7 +65,7 @@ # IP: Add a range which forces a resizing 0 ipset add test 10.0.0.0-10.0.3.255 # IP: Check that correct number of elements are added -0 n=`ipset list test|grep 10.0|wc -l` && test $n -eq 1024 +0 n=`ipset list test|grep '^10.0'|wc -l` && test $n -eq 1024 # IP: Destroy sets 0 ipset -X # Network: Create a set with timeout diff --git a/tests/hash:net,port.t b/tests/hash:net,port.t index 519292c..b7bc8a3 100644 --- a/tests/hash:net,port.t +++ b/tests/hash:net,port.t @@ -59,7 +59,7 @@ # Add a range which forces a resizing 0 ipset add test 10.0.0.0/24,tcp:80-1105 # Check that correct number of elements are added -0 n=`ipset list test|grep 10.0|wc -l` && test $n -eq 1026 +0 n=`ipset list test|grep '^10.0'|wc -l` && test $n -eq 1026 # Destroy set 0 ipset -X test # Create set to add a range and with range notation in the network @@ -67,7 +67,7 @@ # Add a range which forces a resizing 0 ipset add test 10.0.0.0-10.0.2.255,tcp:80-1105 # Check that correct number of elements are added -0 n=`ipset list test|grep 10.0|wc -l` && test $n -eq 2052 +0 n=`ipset list test|grep '^10.0'|wc -l` && test $n -eq 2052 # Destroy set 0 ipset -X test # eof -- cgit v1.2.3