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/ipmap.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/ipmap.t')
-rw-r--r-- | tests/ipmap.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ipmap.t b/tests/ipmap.t index a3bff10..684fb7d 100644 --- a/tests/ipmap.t +++ b/tests/ipmap.t @@ -49,13 +49,13 @@ # Range: Restore set 0 ipset -R < ipmap.t.restore && rm ipmap.t.restore # Range: List set -0 ipset -L test > .foo +0 ipset -L test | grep -v Revision: > .foo # Range: Check listing 0 diff -u -I 'Size in memory.*' .foo ipmap.t.list0 # Range: Delete a range of elements 0 ipset -! -D test 2.0.0.128-2.0.0.132 # Range: List set -0 ipset -L test > .foo +0 ipset -L test | grep -v Revision: > .foo # Range: Check listing 0 diff -u -I 'Size in memory.*' .foo ipmap.t.list1 # Range: Flush test set @@ -91,7 +91,7 @@ # Network: Delete the same element 0 ipset -D test 2.0.0.128 # Network: List set -0 ipset -L test > .foo +0 ipset -L test | grep -v Revision: > .foo # Network: Check listing 0 diff -u -I 'Size in memory.*' .foo ipmap.t.list2 # Network: Flush test set @@ -127,7 +127,7 @@ # Subnets: Add a subnet of subnets 0 ipset -A test 10.8.0.0/16 # Subnets: List set -0 ipset -L test > .foo +0 ipset -L test | grep -v Revision: > .foo # Subnets: Check listing 0 diff -u -I 'Size in memory.*' .foo ipmap.t.list3 # Subnets: FLush test set @@ -153,7 +153,7 @@ # Full: Delete same element 0 ipset -D test 0.1.0.0 # Full: List set -0 ipset -L test > .foo +0 ipset -L test | grep -v Revision: > .foo # Full: Check listing 0 diff -u -I 'Size in memory.*' .foo ipmap.t.list4 # Full: Delete test set |