From: Phil Sutter Date: Tue, 17 Sep 2019 16:28:18 +0000 (+0200) Subject: tests: shell: Add ipt-restore/0007-flush-noflush_0 X-Git-Tag: v1.8.4~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd2dc3e730669cc813cedfd0876f22f5083cae9a;p=thirdparty%2Fiptables.git 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 --- 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 <