summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/ipt-save/0006iptables-xml_0
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-10-18 01:30:22 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-24 16:20:51 +0200
commitf8ec1b7a296e6f461278937213a1477e4d29b1f3 (patch)
tree61d99b698634ad9b3b79b66400fbf85178e5e6b4 /iptables/tests/shell/testcases/ipt-save/0006iptables-xml_0
parentffb339224f71871d015e4b57ea8dbaf9fd4f8aad (diff)
iptables-xml: Use add_param_to_argv()
Extend the shared argv parser by storing whether a given argument was quoted or not, then use it in iptables-xml. One remaining extra bit is extraction of chain name in -A commands, do that afterwards in a loop. Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/tests/shell/testcases/ipt-save/0006iptables-xml_0')
-rwxr-xr-xiptables/tests/shell/testcases/ipt-save/0006iptables-xml_013
1 files changed, 13 insertions, 0 deletions
diff --git a/iptables/tests/shell/testcases/ipt-save/0006iptables-xml_0 b/iptables/tests/shell/testcases/ipt-save/0006iptables-xml_0
new file mode 100755
index 00000000..50c0cae8
--- /dev/null
+++ b/iptables/tests/shell/testcases/ipt-save/0006iptables-xml_0
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+case "$(basename $XT_MULTI)" in
+ xtables-legacy-multi)
+ ;;
+ *)
+ echo "skip $XT_MULTI"
+ exit 0
+ ;;
+esac
+
+dump=$(dirname $0)/dumps/fedora27-iptables
+diff -u -Z <(cat ${dump}.xml) <($XT_MULTI iptables-xml <$dump)