summaryrefslogtreecommitdiffstats
path: root/tests/iphash.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iphash.t')
-rw-r--r--tests/iphash.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/iphash.t b/tests/iphash.t
index c912ad7..96ae49b 100644
--- a/tests/iphash.t
+++ b/tests/iphash.t
@@ -44,6 +44,14 @@
0 ipset -F test
# IP: Delete test set
0 ipset -X test
+# IP: Restore, which requires multiple messages
+0 ipset restore < iphash.t.large
+# IP: Save the restored set
+0 ipset save test | sort > .foo.1
+# IP: Compare save and restore
+0 (sort iphash.t.large > .foo.2) && (cmp .foo.1 .foo.2) && rm .foo.*
+# IP: Delete test set
+0 ipset x test
# Network: Create a set
0 ipset -N test iphash --hashsize 128 --netmask 24
# Network: Add zero valued element