From d1aa01483b5cac8c70c9385033e60efd7a744e1f Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 22 Sep 2022 19:04:32 +0200 Subject: 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 --- .../testcases/nft-only/0010-native-delinearize_0 | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 iptables/tests/shell/testcases/nft-only/0010-native-delinearize_0 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 - <