From: Phil Sutter Date: Wed, 9 Oct 2024 17:08:44 +0000 (+0200) Subject: tests: shell: Test some commands involving rule numbers X-Git-Tag: v1.8.11~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d455bd1a869cd7cfd2b4930409f0232ea73444d7;p=thirdparty%2Fiptables.git tests: shell: Test some commands involving rule numbers Skip on ip6tables and arptables as they share the relevant code with iptables. Signed-off-by: Phil Sutter --- diff --git a/iptables/tests/shell/testcases/ebtables/0011-rulenum_0 b/iptables/tests/shell/testcases/ebtables/0011-rulenum_0 new file mode 100755 index 00000000..51302f34 --- /dev/null +++ b/iptables/tests/shell/testcases/ebtables/0011-rulenum_0 @@ -0,0 +1,104 @@ +#!/bin/bash -x + +case "$XT_MULTI" in +*xtables-nft-multi) + ;; +*) + echo "skip $XT_MULTI" + exit 0 + ;; +esac + +set -e + +load_ruleset() { + $XT_MULTI ebtables-restore <