summaryrefslogtreecommitdiffstats
path: root/tests/hash:net.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hash:net.t')
-rw-r--r--tests/hash:net.t14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/hash:net.t b/tests/hash:net.t
index 9947bf6..8ccc3f2 100644
--- a/tests/hash:net.t
+++ b/tests/hash:net.t
@@ -38,12 +38,22 @@
0 diff -u -I 'Size in memory.*' .foo hash:net.t.list0
# Sleep 5s so that element can time out
0 sleep 5
-# IP: List set
+# List set
0 ipset -L test 2>/dev/null > .foo0 && ./sort.sh .foo0
-# IP: Check listing
+# Check listing
0 diff -u -I 'Size in memory.*' .foo hash:net.t.list1
# Flush test set
0 ipset flush test
# Delete test set
0 ipset destroy test
+# Create test set
+0 ipset new test hash:net
+# Add networks in range notation
+0 ipset add test 10.2.0.0-10.2.1.12
+# List set
+0 ipset -L test 2>/dev/null > .foo0 && ./sort.sh .foo0
+# Check listing
+0 diff -u -I 'Size in memory.*' .foo hash:net.t.list2
+# Delete test set
+0 ipset destroy test
# eof