diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-12-22 10:46:26 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-12-22 10:46:26 +0100 |
commit | 3ac783ff62b91880d4f7edd6bda650169e70cb4f (patch) | |
tree | dec3d144d421218318f70ea9e27113cb9da34969 /tests/hash:net6,port.t | |
parent | d794a110478866311416bf73e2a5239253aead40 (diff) |
Test cases for IPv6 restore and more complex restore sessions added.
Diffstat (limited to 'tests/hash:net6,port.t')
-rw-r--r-- | tests/hash:net6,port.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hash:net6,port.t b/tests/hash:net6,port.t index 9cce42f..12a37cb 100644 --- a/tests/hash:net6,port.t +++ b/tests/hash:net6,port.t @@ -36,6 +36,8 @@ 0 ipset add test 3:0:0::1,tcp:8 # List set 0 ipset list test | sed 's/timeout ./timeout x/' > .foo0 && ./sort.sh .foo0 +# Save set +0 ipset save test > hash:net6,port.t.restore # Check listing 0 diff -I 'Size in memory.*' .foo hash:net6,port.t.list0 && rm .foo # Sleep 5s so that element can time out @@ -44,6 +46,14 @@ 0 ipset -L test 2>/dev/null > .foo0 && ./sort.sh .foo0 # IP: Check listing 0 diff -I 'Size in memory.*' .foo hash:net6,port.t.list1 && rm .foo +# Destroy set +0 ipset x test +# Restore set +0 ipset restore < hash:net6,port.t.restore && rm hash:net6,port.t.restore +# List set +0 ipset list test | sed 's/timeout ./timeout x/' > .foo0 && ./sort.sh .foo0 +# Check listing +0 diff -I 'Size in memory.*' .foo hash:net6,port.t.list0 && rm .foo # Flush test set 0 ipset flush test # Add multiple elements in one step |