]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: skip nat inet if kernel does not support it
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Nov 2023 19:46:19 +0000 (20:46 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Nov 2023 09:14:10 +0000 (10:14 +0100)
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/features/inet_nat.nft [new file with mode: 0644]
tests/shell/testcases/maps/0010concat_map_0

diff --git a/tests/shell/features/inet_nat.nft b/tests/shell/features/inet_nat.nft
new file mode 100644 (file)
index 0000000..189ea1d
--- /dev/null
@@ -0,0 +1,7 @@
+# v5.2-rc1~133^2~174^2~15
+# d164385ec572 ("netfilter: nat: add inet family nat support")
+table inet x {
+        chain y {
+                type nat hook prerouting priority dstnat;
+       }
+}
index 4848d97212fd89d702ab8c158ed19d382f510be1..859bbfcf69e4a023f086e4ec337f90f4330a48f0 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_inet_nat)
+
 set -e
 
 EXPECTED="table inet x {