From 202ca992312b908e410bed9a480e715e3bca660b Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Fri, 8 Apr 2011 15:53:02 +0200 Subject: Testsuite changes: keep temporary files Keep temporary files in the tests and erase them only after successfully running the testsuite. This makes simpler to analyze failed tests. --- 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 271bf89..341ebf0 100644 --- a/tests/bitmap:ip.t +++ b/tests/bitmap:ip.t @@ -37,13 +37,13 @@ # Range: List set 0 ipset list test | sed 's/timeout ./timeout x/' > .foo # Range: Check listing -0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list4 && rm .foo +0 diff -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 # Range: Check listing -0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list0 && rm .foo +0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list0 # Range: Flush test set 0 ipset flush test # Range: Delete test set @@ -79,13 +79,13 @@ # Network: List set 0 ipset list test | sed 's/timeout ./timeout x/' > .foo # Network: Check listing -0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list5 && rm .foo +0 diff -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 # Network: Check listing -0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list1 && rm .foo +0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list1 # Network: Flush test set 0 ipset flush test # Network: Delete test set @@ -121,13 +121,13 @@ # Subnets: List set 0 ipset list test | sed 's/timeout ./timeout x/' > .foo # Subnets: Check listing -0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list6 && rm .foo +0 diff -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 # Subnets: Check listing -0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list2 && rm .foo +0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list2 # Subnets: Flush test set 0 ipset flush test # Subnets: Delete test set @@ -147,7 +147,7 @@ # Full: List set 0 ipset list test > .foo # Full: Check listing -0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list3 && rm .foo +0 diff -I 'Size in memory.*' .foo bitmap:ip.t.list3 # Full: flush set 0 ipset flush test # Full: add element with 1s timeout -- cgit v1.2.3