summaryrefslogtreecommitdiffstats
path: root/tests/setlist.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/setlist.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/setlist.t')
-rw-r--r--tests/setlist.t20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/setlist.t b/tests/setlist.t
index 7d14ec8..316daf8 100644
--- a/tests/setlist.t
+++ b/tests/setlist.t
@@ -45,9 +45,9 @@
# Restore saved sets
0 ipset -R < setlist.t.r
# List set
-0 ipset -L test | grep -v Revision: > .foo
+0 ipset -L test > .foo
# Check listing
-0 diff -u -I 'Size in memory.*' .foo setlist.t.list0
+0 ./diff.sh .foo setlist.t.list0
# Flush all sets
0 ipset -F
# Delete all sets
@@ -61,9 +61,9 @@
# Add set a before b
0 ipset add test a before b
# List test set
-0 ipset list test | grep -v Revision: > .foo
+0 ipset list test > .foo
# Check listing
-0 diff -u -I 'Size in memory.*' .foo setlist.t.list1
+0 ./diff.sh .foo setlist.t.list1
# Test a set before b
0 ipset test test a before b
# Test c set after b
@@ -71,19 +71,19 @@
# Delete b set before c
0 ipset del test b before c
# List test set
-0 ipset list test | grep -v Revision: > .foo
+0 ipset list test > .foo
# Check listing
-0 diff -u -I 'Size in memory.*' .foo setlist.t.list2
+0 ./diff.sh .foo setlist.t.list2
# Delete c set after a
0 ipset del test c after a
# List test set
-0 ipset list test | grep -v Revision: > .foo
+0 ipset list test > .foo
# Check listing
-0 diff -u -I 'Size in memory.*' .foo setlist.t.list3
+0 ./diff.sh .foo setlist.t.list3
# List all sets
-0 sleep .1s; ipset list | grep -v Revision: > .foo
+0 sleep .1s; ipset list > .foo
# Check listing
-0 diff -u -I 'Size in memory.*' .foo setlist.t.list4
+0 ./diff.sh .foo setlist.t.list4
# Flush sets
0 ipset flush
# Destroy sets