summaryrefslogtreecommitdiffstats
path: root/tests/ipmap.t
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@netfilter.org>2020-09-21 20:12:23 +0200
committerJozsef Kadlecsik <kadlec@netfilter.org>2020-09-21 20:12:23 +0200
commit00e8bd9bb72eb1357aab486e314b83f93dad0d2c (patch)
tree2222d756d82d88a0872688ca61cdadd147a84ddb /tests/ipmap.t
parentde340a7f1a9cf21931d94ea8814545c4b2d172b0 (diff)
Handle all variable header parts in helper scripts instead ot test tasks
Thus the tests tasks can be simplified and all exceptions can be handled in the helper scripts. Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'tests/ipmap.t')
-rw-r--r--tests/ipmap.t20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/ipmap.t b/tests/ipmap.t
index 7ae141c..8e90dc2 100644
--- a/tests/ipmap.t
+++ b/tests/ipmap.t
@@ -49,15 +49,15 @@
# Range: Restore set
0 ipset -R < ipmap.t.restore && rm ipmap.t.restore
# Range: List set
-0 ipset -L test | grep -v Revision: > .foo
+0 ipset -L test > .foo
# Range: Check listing
-0 diff -u -I 'Size in memory.*' .foo ipmap.t.list0
+0 ./diff.sh .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 | grep -v Revision: > .foo
+0 ipset -L test > .foo
# Range: Check listing
-0 diff -u -I 'Size in memory.*' .foo ipmap.t.list1
+0 ./diff.sh .foo ipmap.t.list1
# Range: Flush test set
0 ipset -F test
# Range: Delete test set
@@ -91,9 +91,9 @@
# Network: Delete the same element
0 ipset -D test 2.0.0.128
# Network: List set
-0 ipset -L test | grep -v Revision: > .foo
+0 ipset -L test > .foo
# Network: Check listing
-0 diff -u -I 'Size in memory.*' .foo ipmap.t.list2
+0 ./diff.sh .foo ipmap.t.list2
# Network: Flush test set
0 ipset -F test
# Network: Delete test set
@@ -127,9 +127,9 @@
# Subnets: Add a subnet of subnets
0 ipset -A test 10.8.0.0/16
# Subnets: List set
-0 ipset -L test | grep -v Revision: > .foo
+0 ipset -L test > .foo
# Subnets: Check listing
-0 diff -u -I 'Size in memory.*' .foo ipmap.t.list3
+0 ./diff.sh .foo ipmap.t.list3
# Subnets: FLush test set
0 ipset -F test
# Subnets: Delete test set
@@ -153,9 +153,9 @@
# Full: Delete same element
0 ipset -D test 0.1.0.0
# Full: List set
-0 ipset -L test | grep -v Revision: > .foo
+0 ipset -L test > .foo
# Full: Check listing
-0 diff -u -I 'Size in memory.*' .foo ipmap.t.list4
+0 ./diff.sh .foo ipmap.t.list4
# Full: Delete test set
0 ipset -X test
# eof