From: Phil Sutter Date: Thu, 22 Sep 2022 17:04:32 +0000 (+0200) Subject: tests: shell: Test delinearization of native nftables expressions X-Git-Tag: v1.8.9~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1aa01483b5cac8c70c9385033e60efd7a744e1f;p=thirdparty%2Fiptables.git tests: shell: Test delinearization of native nftables expressions Even if iptables-nft doesn't generate them anymore, it should continue to correctly parse them. Make sure this is tested for. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- diff --git a/iptables/tests/shell/testcases/nft-only/0010-native-delinearize_0 b/iptables/tests/shell/testcases/nft-only/0010-native-delinearize_0 new file mode 100755 index 00000000..cca36fd8 --- /dev/null +++ b/iptables/tests/shell/testcases/nft-only/0010-native-delinearize_0 @@ -0,0 +1,26 @@ +#!/bin/bash + +[[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; } +nft -v >/dev/null || exit 0 + +set -e + +nft -f - <