diff options
author | Phil Sutter <phil@nwl.cc> | 2023-07-28 13:58:46 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-07-28 14:27:35 +0200 |
commit | 3bbf5269f25d7bc8cb6ecf2c44e6358579acc459 (patch) | |
tree | 57c93f85a5d4a824f8c1498bd58ec93b25116182 /iptables/tests/shell/testcases/chain/0003rename_1 | |
parent | 687d76937be799a405e63e58861f7e4a965dfa8d (diff) |
tests: shell: Fix and extend chain rename test
The old version exited unintentionally before testing ip6tables. Replace
it by a more complete variant testing for all tools, creating and
renaming of,chains with various illegal names instead of just renaming
to a clashing name.
Fixes: ed9cfe1b48526 ("tests: add initial save/restore test cases")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/tests/shell/testcases/chain/0003rename_1')
-rwxr-xr-x | iptables/tests/shell/testcases/chain/0003rename_1 | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/iptables/tests/shell/testcases/chain/0003rename_1 b/iptables/tests/shell/testcases/chain/0003rename_1 deleted file mode 100755 index 975c8e19..00000000 --- a/iptables/tests/shell/testcases/chain/0003rename_1 +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -$XT_MULTI iptables -N c1 || exit 0 -$XT_MULTI iptables -N c2 || exit 0 -$XT_MULTI iptables -E c1 c2 || exit 1 - -$XT_MULTI ip6tables -N c1 || exit 0 -$XT_MULTI ip6tables -N c2 || exit 0 -$XT_MULTI ip6tables -E c1 c2 || exit 1 - -echo "E: Renamed with existing chain" >&2 -exit 0 |