From 34ce4e4a7bb61dbf8ce7b3d018a36ab08fb6faf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Eckl?= Date: Fri, 24 Aug 2018 17:47:15 +0200 Subject: test: shell: Test cases for standard chain prios MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Máté Eckl Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/chains/0025prio_arp_1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/shell/testcases/chains/0025prio_arp_1 (limited to 'tests/shell/testcases/chains/0025prio_arp_1') diff --git a/tests/shell/testcases/chains/0025prio_arp_1 b/tests/shell/testcases/chains/0025prio_arp_1 new file mode 100755 index 00000000..8c671d55 --- /dev/null +++ b/tests/shell/testcases/chains/0025prio_arp_1 @@ -0,0 +1,17 @@ +#!/bin/bash + +family=arp + for hook in input output + do + for prioname in raw mangle dstnat security srcnat + do + $NFT add table $family x + $NFT add chain $family x y "{ type filter hook $hook priority $prioname; }" &> /dev/null + if (($? == 0)) + then + echo "E: $prioname should not be a valid priority name for arp family chains." >&2 + exit 0 + fi + done + done +exit 1 -- cgit v1.2.3