]> granicus.if.org Git - ipset/commitdiff
hash:* tests may seem to fail due to the too wide grep pattern, fix them
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 30 May 2011 15:29:58 +0000 (17:29 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 30 May 2011 15:29:58 +0000 (17:29 +0200)
tests/hash:ip,port,ip.t
tests/hash:ip,port,net.t
tests/hash:ip,port.t
tests/hash:ip.t
tests/hash:net,port.t

index 5b79ab830491b6ec48d3fa638079b120bd913806..01132e8361ee2e165993b0ab3ee8fb8f99b32411 100644 (file)
@@ -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
index c13ccc43a058a32a389895c42cbd40f9c12fd7c4..26645ef7037690e9e655d9e08e41ca46facff665 100644 (file)
@@ -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
index 639bfe6adae7479651d18855d1cf6a4a57fdf451..c2bc0ccc9a45f1a78a9b7408a3ac981a40fcd9f8 100644 (file)
@@ -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
index 10a180933fd2fd2a53291b690c3517a2cb51512d..8ae584fca11d6183e4a16d92f8803dd6752fcc85 100644 (file)
@@ -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
index 519292c7ebb59e54b3ddb1cb1460daaaa0dce69f..b7bc8a3442bcf3cc86c3c875a92e00737983edb4 100644 (file)
@@ -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