From a4dab4ecde114e0b3a6537a5cc7accd60dd25f17 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 9 May 2018 16:03:43 +0200 Subject: tests/shell: Extend rule_management/0001addposition_0 Combine it with 0002insertposition_0 due to the many similarities, extend it to test 'handle' and 'index' parameters as well and rename the testcase accordingly. Also add a new 0002addinsertlocation_1 which tests that wrong argument to all of the location parameters fails. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/rule_management/0001addposition_0 | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100755 tests/shell/testcases/rule_management/0001addposition_0 (limited to 'tests/shell/testcases/rule_management/0001addposition_0') diff --git a/tests/shell/testcases/rule_management/0001addposition_0 b/tests/shell/testcases/rule_management/0001addposition_0 deleted file mode 100755 index ee90d923..00000000 --- a/tests/shell/testcases/rule_management/0001addposition_0 +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# tests for Netfilter bug #965 and the related fix -# (regarding rule management with a given position/handle spec) - -set -e -$NFT add table t -$NFT add chain t c -$NFT add rule t c accept # should have handle 2 -$NFT add rule t c accept # should have handle 3 -$NFT add rule t c position 2 drop -- cgit v1.2.3