diff options
author | Phil Sutter <phil@nwl.cc> | 2017-07-19 15:05:29 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-19 19:24:39 +0200 |
commit | abd40b25d2ed413994e19699425964115ef49aa5 (patch) | |
tree | f0296a9f79cac884b60a1f2e6667b00386eed2b1 /tests/monitor/testcases/set-multiple.t | |
parent | 504439a02da3ca284e17b9755f3734e45a68cc44 (diff) |
tests: Add basic monitor testing framework
This implements testing of 'nft monitor' output correctness and adds a
number of testcases for named sets.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/monitor/testcases/set-multiple.t')
-rw-r--r-- | tests/monitor/testcases/set-multiple.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/monitor/testcases/set-multiple.t b/tests/monitor/testcases/set-multiple.t new file mode 100644 index 00000000..d94f941b --- /dev/null +++ b/tests/monitor/testcases/set-multiple.t @@ -0,0 +1,13 @@ +# first the setup +I add table ip t +O add table ip t +I add set ip t portrange { type inet_service; flags interval; } +O add set ip t portrange { type inet_service;flags interval } +I add set ip t portrange2 { type inet_service; flags interval; } +O add set ip t portrange2 { type inet_service;flags interval } + +# make sure concurrent adds work +I add element ip t portrange { 1024-65535 } +I add element ip t portrange2 { 10-20 } +O add element ip t portrange { 1024-65535 } +O add element ip t portrange2 { 10-20 } |