Destroy support was added for table/flowtable/chain etc. in a single
commit, so no need to add capability tests for each destroy subtype.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Thomas Haller <thaller@redhat.com>
--- /dev/null
+# f80a612dd77c ("netfilter: nf_tables: add support to destroy operation")
+# v6.3-rc1~162^2~264^2
+destroy table t
#!/bin/sh -e
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
+
$NFT add table t
# pass for non-existent chain
#!/bin/sh -e
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
+
$NFT add table t
# pass for non-existent flowtable
#!/bin/sh -e
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
+
$NFT add table x
# pass for non-existent map
#!/bin/sh -e
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
+
$NFT add table t
$NFT add chain t c
#!/bin/sh -e
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
+
$NFT add table x
# pass for non-existent set