summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0072destroy_0
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffmancera@riseup.net>2023-05-27 18:24:24 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-06-01 21:10:30 +0200
commit19245dd1e0c8e1e007a3b98527e379337d57b49a (patch)
tree19cdb57ed0295d0a40d166642bb185831b58d315 /tests/shell/testcases/sets/0072destroy_0
parentb422b07ab2f96436001f33dfdfd937238033c799 (diff)
tests: extend tests for destroy command
Extend tests to cover destroy command for chains, flowtables, sets, maps. In addition rename a destroy command test for rules with a duplicated number. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/sets/0072destroy_0')
-rwxr-xr-xtests/shell/testcases/sets/0072destroy_08
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0072destroy_0 b/tests/shell/testcases/sets/0072destroy_0
new file mode 100755
index 00000000..c9cf9ff7
--- /dev/null
+++ b/tests/shell/testcases/sets/0072destroy_0
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+$NFT add table x
+$NFT add set x s {type ipv4_addr\; size 2\;}
+
+$NFT destroy set x s