summaryrefslogtreecommitdiffstats
path: root/tests/hash:net,port,net.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hash:net,port,net.t')
-rw-r--r--tests/hash:net,port,net.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/hash:net,port,net.t b/tests/hash:net,port,net.t
index 0e92f5b..2c9516b 100644
--- a/tests/hash:net,port,net.t
+++ b/tests/hash:net,port,net.t
@@ -27,9 +27,9 @@
# Try to add value after second random value
0 ipset add test 2.1.0.1,128,10.0.0.0/17
# List set
-0 ipset list test | grep -v Revision: | sed 's/timeout ./timeout x/' > .foo0 && ./sort.sh .foo0
+0 ipset list test > .foo0 && ./sort.sh .foo0
# Check listing
-0 diff -u -I 'Size in memory.*' .foo hash:net,port,net.t.list0
+0 ./diff.sh .foo hash:net,port,net.t.list0
# Sleep 5s so that elements can time out
0 sleep 5
# List set
@@ -52,6 +52,12 @@
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 6
+# Flush set
+0 ipset flush test
+# Add 0/0 networks
+0 ipset add test 0.0.0.0/0,tcp:1-2,192.168.230.128/25
+# Check that correct number of elements are added
+0 n=`ipset list test|grep '^0'|wc -l` && test $n -eq 2
# Destroy set
0 ipset -X test
# Create test set with timeout support