summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/ipt-save/dumps/policy-drop.txt
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-06-26 23:16:22 +0200
committerFlorian Westphal <fw@strlen.de>2018-06-27 23:44:04 +0200
commited9cfe1b4852647be7faa9d5262d315707a0a0c6 (patch)
tree72ae40072bf557063b68dafbc8c8f6cc888ff365 /iptables/tests/shell/testcases/ipt-save/dumps/policy-drop.txt
parent9933dc543628b1531ac30b30b9894a16c86a0b7a (diff)
tests: add initial save/restore test cases
Add script to restore ipt-save files and compare it with save output. This should be extended to cover as many rulesets as possible, so this is only a start. The test script is changed to pass XT_MULTI instead of iptables/ip6tables. This allows ip(6)tables/ebt/arp only test scripts and avoids running all scripts multiple times for ip/ip6tables. Current expected output: I: [OK] ./iptables/tests/shell/testcases/chain/0001duplicate_1 I: [OK] ./iptables/tests/shell/testcases/chain/000newchain_0 I: [OK] ./iptables/tests/shell/testcases/chain/0005rename_1 I: [OK] ./iptables/tests/shell/testcases/ipt-save/0001load-dumps_0 I: legacy results: [OK] 10 [FAILED] 0 [TOTAL] 10 I: [OK] ./iptables/tests/shell/testcases/chain/0001duplicate_1 I: [OK] ./iptables/tests/shell/testcases/chain/0004newchain_0 I: [OK] ./iptables/tests/shell/testcases/chain/0005rename_1 I: [OK] ./iptables/tests/shell/testcases/ipt-save/0001load-dumps_0 I: nft results: [OK] 10 [FAILED] 0 [TOTAL] 10 I: combined results: [OK] 20 [FAILED] 0 [TOTAL] 20 Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/tests/shell/testcases/ipt-save/dumps/policy-drop.txt')
-rw-r--r--iptables/tests/shell/testcases/ipt-save/dumps/policy-drop.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/iptables/tests/shell/testcases/ipt-save/dumps/policy-drop.txt b/iptables/tests/shell/testcases/ipt-save/dumps/policy-drop.txt
new file mode 100644
index 00000000..7522231c
--- /dev/null
+++ b/iptables/tests/shell/testcases/ipt-save/dumps/policy-drop.txt
@@ -0,0 +1,8 @@
+# Generated by xtables-save v1.6.2 on Tue Jun 26 22:28:41 2018
+*filter
+:INPUT DROP [0:0]
+:FORWARD DROP [0:0]
+:OUTPUT DROP [0:0]
+-A OUTPUT -j ACCEPT
+COMMIT
+# Completed on Tue Jun 26 22:28:41 2018