tests: shell: add typeof with concatenations
Pablo Neira Ayuso
maintainerPATCH 1/1 tests: shell: add typeof with concatenations
Add a test to cover typeof with concatenations.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- tests/shell/testcases/sets/0045typeof_sets_0 | 14 ++++++++++++++ tests/shell/testcases/sets/dumps/0045typeof_sets_0.nft | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100755 tests/shell/testcases/sets/0045typeof_sets_0 create mode 100644 tests/shell/testcases/sets/dumps/0045typeof_sets_0.nft
tests/shell/testcases/sets/0045typeof_sets_0 new file +14 -0
@@ -0,0 +1,14 @@ +#!/bin/bash + +EXPECTED="table ip foo { + set whitelist { + typeof ip saddr . ip daddr . meta mark + elements = { 192.168.10.35 . 192.168.10.11 . 0x00000010, + 192.168.10.101 . 192.168.10.12 . 0x00000020, + } + } +} +" + +set -e +$NFT -f - <<< $EXPECTED
tests/shell/testcases/sets/dumps/0045typeof_sets_0.nft new file +7 -0
@@ -0,0 +1,7 @@ +table ip foo { + set whitelist { + typeof ip saddr . ip daddr . meta mark + elements = { 192.168.10.35 . 192.168.10.11 . 0x00000010, + 192.168.10.101 . 192.168.10.12 . 0x00000020 } + } +}
Signature · 1 line
2.11.0
Florian Westphal
maintainerQuoted 9 lines · Pablo Neira Ayuso
Add a test to cover typeof with concatenations.
Signed-off-by Pablo Neira Ayuso <[email protected]>--- tests/shell/testcases/sets/0045typeof_sets_0 | 14 ++++++++++++++ tests/shell/testcases/sets/dumps/0045typeof_sets_0.nft | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100755 tests/shell/testcases/sets/0045typeof_sets_0 create mode 100644 tests/shell/testcases/sets/dumps/0045typeof_sets_0.nft
Thanks, but I already pushed a test case for this, sorry :/