diff options
Diffstat (limited to 'tests/iphash.t')
-rw-r--r-- | tests/iphash.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/iphash.t b/tests/iphash.t index 731457d..46ce58b 100644 --- a/tests/iphash.t +++ b/tests/iphash.t @@ -14,12 +14,16 @@ 0 ipset -T test 192.168.68.69 # IP: Test value not added to the set 1 ipset -T test 2.0.0.2 +# IP: Flush test set +0 ipset -F test # IP: Delete test set 0 ipset -X test # IP: Restore values so that rehashing is triggered 0 ipset -R < iphash.t.restore # IP: Check that all values are restored 0 (egrep -v '#|-N' iphash.t.restore | sort > .foo.1) && (ipset -S test | egrep -v '#|-N' | sort > .foo.2) && cmp .foo.1 .foo.2 && rm .foo.* +# IP: Flush test set +0 ipset -F test # IP: Delete test set 0 ipset -X test # Network: Create a set @@ -34,6 +38,8 @@ 0 ipset -T test 192.168.68.95 # Network: Test value not added to the set 1 ipset -T test 2.0.1.0 +# Network: Flush test set +0 ipset -F test # Network: Delete test set 0 ipset -X test # eof |