summaryrefslogtreecommitdiffstats
path: root/tests/shell
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2024-06-13 00:42:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2024-06-13 02:26:49 +0200
commit58cd3ad4fdf57d4ca568649001b89375ac51dbd5 (patch)
tree02ce4cc8f37e256388f8e44ee7da35c371608b5d /tests/shell
parentc624578ee18131492e7f72b662d5faf7c042e0d8 (diff)
tests: shell: skip ipsec tests if kernel does not support it
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell')
-rw-r--r--tests/shell/features/ipsec.nft7
-rwxr-xr-xtests/shell/testcases/maps/typeof_maps_02
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/shell/features/ipsec.nft b/tests/shell/features/ipsec.nft
new file mode 100644
index 00000000..e7252271
--- /dev/null
+++ b/tests/shell/features/ipsec.nft
@@ -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
+ }
+}
diff --git a/tests/shell/testcases/maps/typeof_maps_0 b/tests/shell/testcases/maps/typeof_maps_0
index 98517fd5..764206d2 100755
--- a/tests/shell/testcases/maps/typeof_maps_0
+++ b/tests/shell/testcases/maps/typeof_maps_0
@@ -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() {