diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-10-29 22:24:18 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-10-29 22:24:18 +0200 |
commit | f484d856492fb66a6b658f4b753a64d7c151b5fd (patch) | |
tree | eac1a3c38907949e899ef2dd2a40bf2c0d20f6d9 /tests/iphash.t | |
parent | 0eb4188f9ccf186f1a01800fbc3c54724a6c0a2a (diff) |
Test to list large hash sets added.
Diffstat (limited to 'tests/iphash.t')
-rw-r--r-- | tests/iphash.t | 8 |
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 |