From: Varsha Rao Date: Sun, 29 Oct 2017 20:49:31 +0000 (+0530) Subject: tests: shell: Add test case for map expression. X-Git-Tag: v0.8.1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7462ef9269ebc98dcddd6a2c2f61dbd3457a777d;p=thirdparty%2Fnftables.git tests: shell: Add test case for map expression. Add tests for different map expression. Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/testcases/maps/different_map_types_1 b/tests/shell/testcases/maps/different_map_types_1 new file mode 100755 index 000000000..b0a09d024 --- /dev/null +++ b/tests/shell/testcases/maps/different_map_types_1 @@ -0,0 +1,10 @@ +#!/bin/bash + +# must fail: expr MAP { expr : type1, expr : type2, .. } expr + +set -e + +$NFT add table ip filter +$NFT add chain ip filter output { type filter hook output priority 0 \; } +$NFT add rule ip filter output meta mark set tcp dport map { 22 : 1, 23 : 192.168.0.1 } +echo "E: Added two different types of expression to map"