From 2545416782c89dd9080e6bdd4fadc2cb0333a9d2 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 7 Nov 2023 10:30:13 +0100 Subject: tests: shell: skip comment tests if kernel lacks support Skip tests that require comment support Signed-off-by: Pablo Neira Ayuso --- tests/shell/features/comment.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/shell/features/comment.sh (limited to 'tests/shell/features/comment.sh') diff --git a/tests/shell/features/comment.sh b/tests/shell/features/comment.sh new file mode 100755 index 00000000..0ad24d04 --- /dev/null +++ b/tests/shell/features/comment.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# 002f21765320 ("netfilter: nf_tables: add userdata attributes to nft_chain") +# v5.10-rc1~107^2~60^2~5 + +EXPECTED="table ip x { + chain y { + comment \"test\" + } +}" + +$NFT -f - <<< $EXPECTED + +diff -u <($NFT list ruleset) - <<<"$EXPECTED" -- cgit v1.2.3