diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-09-11 17:34:37 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-09-11 17:34:37 +0200 |
commit | d95c2f1eb788c4ccb1ce6f4add61943dbb334f07 (patch) | |
tree | 6bc859294d1bd1c2045a80900d5dab88db0c47b0 /tests/bitmap:ip.t | |
parent | aec28884e7fdce80d8efc73276a4f5b675959701 (diff) |
The set type revision number is added to the header part of listing
Incompatibility: if your script rely on the number of lines in the header
of set listings, then the new line
Revision: number
can break your script.
Diffstat (limited to 'tests/bitmap:ip.t')
-rw-r--r-- | tests/bitmap:ip.t | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/bitmap:ip.t b/tests/bitmap:ip.t index dc914d1..4389d8f 100644 --- a/tests/bitmap:ip.t +++ b/tests/bitmap:ip.t @@ -35,13 +35,13 @@ # Range: Add a range of elements 0 ipset -A test 2.0.0.128-2.0.0.131 timeout 4 # Range: List set -0 ipset list test | sed 's/timeout ./timeout x/' > .foo +0 ipset list test | grep -v Revision: | sed 's/timeout ./timeout x/' > .foo # Range: Check listing 0 diff -u -I 'Size in memory.*' .foo bitmap:ip.t.list4 # Sleep 5s so that entries can time out 0 sleep 5s # Range: List set after timeout -0 ipset list test > .foo +0 ipset list test | grep -v Revision: > .foo # Range: Check listing 0 diff -u -I 'Size in memory.*' .foo bitmap:ip.t.list0 # Range: Flush test set @@ -77,13 +77,13 @@ # Network: Delete the same element 0 ipset -D test 2.0.0.128 # Network: List set -0 ipset list test | sed 's/timeout ./timeout x/' > .foo +0 ipset list test | grep -v Revision: | sed 's/timeout ./timeout x/' > .foo # Network: Check listing 0 diff -u -I 'Size in memory.*' .foo bitmap:ip.t.list5 # Sleep 5s so that entries can time out 0 sleep 5s # Network: List set -0 ipset list test > .foo +0 ipset list test | grep -v Revision: > .foo # Network: Check listing 0 diff -u -I 'Size in memory.*' .foo bitmap:ip.t.list1 # Network: Flush test set @@ -119,13 +119,13 @@ # Subnets: Add a subnet of subnets 0 ipset -A test 10.8.0.0/16 timeout 4 # Subnets: List set -0 ipset list test | sed 's/timeout ./timeout x/' > .foo +0 ipset list test | grep -v Revision: | sed 's/timeout ./timeout x/' > .foo # Subnets: Check listing 0 diff -u -I 'Size in memory.*' .foo bitmap:ip.t.list6 # Sleep 5s so that entries can time out 0 sleep 5s # Subnets: List set -0 ipset list test > .foo +0 ipset list test | grep -v Revision: > .foo # Subnets: Check listing 0 diff -u -I 'Size in memory.*' .foo bitmap:ip.t.list2 # Subnets: Flush test set @@ -145,7 +145,7 @@ # Full: Test element not added to the set 1 ipset test test 0.1.0.0 # Full: List set -0 ipset list test > .foo +0 ipset list test | grep -v Revision: > .foo # Full: Check listing 0 diff -u -I 'Size in memory.*' .foo bitmap:ip.t.list3 # Full: flush set |