diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-11-07 10:30:13 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-11-11 10:05:18 +0100 |
commit | 2545416782c89dd9080e6bdd4fadc2cb0333a9d2 (patch) | |
tree | 1eec454e3158adf6c4d7185908f8fdb991b0ed70 /tests/shell/features/comment.sh | |
parent | cfd94cc1be09c8ec9e2e8017dfdcf9694af6c88d (diff) |
tests: shell: skip comment tests if kernel lacks support
Skip tests that require comment support
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/features/comment.sh')
-rwxr-xr-x | tests/shell/features/comment.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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" |