]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: skip ipsec tests if kernel does not support it
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 12 Jun 2024 22:42:41 +0000 (00:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 13 Jun 2024 00:26:49 +0000 (02:26 +0200)
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/features/ipsec.nft [new file with mode: 0644]
tests/shell/testcases/maps/typeof_maps_0

diff --git a/tests/shell/features/ipsec.nft b/tests/shell/features/ipsec.nft
new file mode 100644 (file)
index 0000000..e725227
--- /dev/null
@@ -0,0 +1,7 @@
+# 6c47260250fc ("netfilter: nf_tables: add xfrm expression")
+# v4.20-rc1~14^2~125^2~25
+table ip x {
+       chain y {
+               ipsec in reqid 23
+       }
+}
index 98517fd52506e9c712c8cfea23d021f37b21fcec..764206d26dc16bb7674dae6791214490dd8a9795 100755 (executable)
@@ -4,6 +4,8 @@
 # without typeof, this is 'type string' and 'type integer',
 # but neither could be used because it lacks size information.
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_ipsec)
+
 set -e
 
 die() {