From d95c2f1eb788c4ccb1ce6f4add61943dbb334f07 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 11 Sep 2012 17:34:37 +0200 Subject: 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. --- tests/bitmap:ip.t | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/bitmap:ip.t') 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 -- cgit v1.2.3