summaryrefslogtreecommitdiffstats
path: root/tests/hash:ip.t
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-12-16 12:19:00 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-12-16 12:19:00 +0100
commit3080a55074a595acdeb5bc85bbcd8dba9fa1bfc2 (patch)
tree43e282f382e705fafab868244710c8aca17890a8 /tests/hash:ip.t
parent61592cb11c2839a3f5bb2bc26ceb62da7165a045 (diff)
Add test to check multi-message listing and swapping.
Diffstat (limited to 'tests/hash:ip.t')
-rw-r--r--tests/hash:ip.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/hash:ip.t b/tests/hash:ip.t
index a7f56bd..6293ae5 100644
--- a/tests/hash:ip.t
+++ b/tests/hash:ip.t
@@ -42,10 +42,16 @@
0 test `ipset -S test| grep add| wc -l` -eq 0
# IP: Flush test set
0 ipset -F test
-# IP: Delete test set
-0 ipset -X test
# IP: Stress test resizing
0 ./resize.sh
+# IP: Check listing, which requires multiple messages
+0 n=`ipset -S resize-test | wc -l` && test $n -eq 8161
+# IP: Swap test and resize-test sets
+0 ipset -W test resize-test
+# IP: Check listing, which requires multiple messages
+0 n=`ipset -S test | wc -l` && test $n -eq 8161
+# IP: Destroy sets
+0 ipset -X
# Network: Create a set with timeout
0 ipset -N test iphash --hashsize 128 --netmask 24 timeout 5
# Network: Add zero valued element