summaryrefslogtreecommitdiff
path: root/tests/diff.sh
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/diff.sh
parentde340a7f1a9cf21931d94ea8814545c4b2d172b0 (diff)
downloadipset-00e8bd9bb72eb1357aab486e314b83f93dad0d2c.tar.gz
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/diff.sh')
-rwxr-xr-xtests/diff.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/diff.sh b/tests/diff.sh
new file mode 100755
index 0000000..a364a28
--- /dev/null
+++ b/tests/diff.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+diff -u -I 'Revision: .*' -I 'Size in memory.*' \
+ <(sed -e 's/timeout [0-9]*/timeout x/' -e 's/initval 0x[0-9a-fA-F]\{8\}/initval 0x00000000/' $1) \
+ <(sed -e 's/timeout [0-9]*/timeout x/' -e 's/initval 0x[0-9a-fA-F]\{8\}/initval 0x00000000/' $2)
+
+