summaryrefslogtreecommitdiffstats
path: root/tests/hash:net,port.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hash:net,port.t')
-rw-r--r--tests/hash:net,port.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hash:net,port.t b/tests/hash:net,port.t
index d2d8e8a..e0f922d 100644
--- a/tests/hash:net,port.t
+++ b/tests/hash:net,port.t
@@ -46,6 +46,12 @@
0 diff -I 'Size in memory.*' .foo hash:net,port.t.list1 && rm .foo
# Flush test set
0 ipset flush test
+# Add multiple elements in one step
+0 ipset add test 1.1.1.1/24,80-84 timeout 0
+# Delete multiple elements in one step
+0 ipset del test 1.1.1.2/24,tcp:81-82
+# Check number of elements after multi-add/multi-del
+0 n=`ipset save test|wc -l` && test $n -eq 4
# Delete test set
0 ipset destroy test
# eof