From bd2dc3e730669cc813cedfd0876f22f5083cae9a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 17 Sep 2019 18:28:18 +0200 Subject: tests: shell: Add ipt-restore/0007-flush-noflush_0 Simple test to make sure iptables-restore does not touch tables it is not supposed to. Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso --- .../testcases/ipt-restore/0007-flush-noflush_0 | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 iptables/tests/shell/testcases/ipt-restore/0007-flush-noflush_0 (limited to 'iptables/tests/shell/testcases/ipt-restore') diff --git a/iptables/tests/shell/testcases/ipt-restore/0007-flush-noflush_0 b/iptables/tests/shell/testcases/ipt-restore/0007-flush-noflush_0 new file mode 100755 index 00000000..029db223 --- /dev/null +++ b/iptables/tests/shell/testcases/ipt-restore/0007-flush-noflush_0 @@ -0,0 +1,42 @@ +#!/bin/bash + +# Make sure iptables-restore without --noflush does not flush tables other than +# those contained in the dump it's reading from + +set -e + +$XT_MULTI iptables-restore <