]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: add testcase for different defines usage
authorArturo Borrero Gonzalez <arturo@debian.org>
Mon, 28 Nov 2016 12:59:28 +0000 (13:59 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 29 Nov 2016 21:49:06 +0000 (22:49 +0100)
commitffdcd3fd52f1e87eb99061ec1316f3e8e2f8a4d2
treea94244a385315485a948a3b19294bd55c1b6f335
parenta24a07169a5304220a3fe66d273d6820706fa3ff
tests: shell: add testcase for different defines usage

This testcase add some defines in a nft -f run and then uses
them in different spots (which are not covered in previous testcases).

 * defines used to define another one
 * different datatypes (numbers, strings, bits, ranges)
 * usage in sets, maps, contatenatios
 * single rules with single statements, multiple statements
 * reuse define in same rule

Perhaps this isn't testing many different code path, but I find this
interesting to have given it will probably be one of the most common
use cases of nftables.

Signed-off-by: Arturo Borrero Gonzalez <arturo@debian.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/nft-f/0012different_defines_0 [new file with mode: 0755]