From 411ddf7a41049496eab4139a6fc9fc916268860c Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Thu, 5 Oct 2017 13:36:46 +0530 Subject: tests: shell: Add tests for chain rename. This patch adds test cases for renaming chain with existing and non existing chains. Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/chains/0013rename_0 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tests/shell/testcases/chains/0013rename_0 (limited to 'tests/shell/testcases/chains/0013rename_0') diff --git a/tests/shell/testcases/chains/0013rename_0 b/tests/shell/testcases/chains/0013rename_0 new file mode 100755 index 00000000..b9fe11ad --- /dev/null +++ b/tests/shell/testcases/chains/0013rename_0 @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +$NFT add table t +$NFT add chain t c1 +# kernel should not return EEXIST +$NFT rename chain t c1 c2 -- cgit v1.2.3