From 76d672ca7c8518b92f67abb2393fbe228f2e2800 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Wed, 23 Dec 2015 14:19:22 +0100 Subject: tests/shell: add tests for handles and comments Here some tests for optional things like rule handles and comments. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/optionals/handles_0 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tests/shell/testcases/optionals/handles_0 (limited to 'tests/shell/testcases/optionals/handles_0') diff --git a/tests/shell/testcases/optionals/handles_0 b/tests/shell/testcases/optionals/handles_0 new file mode 100755 index 00000000..7c6a437c --- /dev/null +++ b/tests/shell/testcases/optionals/handles_0 @@ -0,0 +1,8 @@ +#!/bin/bash + +# handles are shown last + +$NFT add table test +$NFT add chain test test +$NFT add rule test test tcp dport 22 counter accept +$NFT list table test -a | grep 'accept # handle '[[:digit:]]$ >/dev/null -- cgit v1.2.3