From 19245dd1e0c8e1e007a3b98527e379337d57b49a Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Sat, 27 May 2023 18:24:24 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/0072destroy_0 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tests/shell/testcases/sets/0072destroy_0 (limited to 'tests/shell/testcases/sets/0072destroy_0') 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 -- cgit v1.2.3