* [nft PATCH] tests/shell: Add back named_interval_automerging_0
@ 2018-01-20 13:21 Phil Sutter
2018-01-25 19:53 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Phil Sutter @ 2018-01-20 13:21 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: netfilter-devel
Change the test to expect no automerging since it was disabled recently.
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
tests/shell/testcases/sets/0002named_interval_automerging_0 | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100755 tests/shell/testcases/sets/0002named_interval_automerging_0
diff --git a/tests/shell/testcases/sets/0002named_interval_automerging_0 b/tests/shell/testcases/sets/0002named_interval_automerging_0
new file mode 100755
index 0000000000000..688986387d177
--- /dev/null
+++ b/tests/shell/testcases/sets/0002named_interval_automerging_0
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# This testscase checks the automerging of adjacent intervals
+
+set -e
+
+$NFT add table t
+$NFT add set t s { type ipv4_addr \; flags interval \; }
+$NFT add element t s { 192.168.0.0/24, 192.168.1.0/24 }
+$NFT list ruleset | grep "192.168.0.0/23" >/dev/null || exit 0
+echo "E: automerging of adjacent intervals happened unexpectedly." >&2
+exit 1
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [nft PATCH] tests/shell: Add back named_interval_automerging_0
2018-01-20 13:21 [nft PATCH] tests/shell: Add back named_interval_automerging_0 Phil Sutter
@ 2018-01-25 19:53 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2018-01-25 19:53 UTC (permalink / raw)
To: Phil Sutter; +Cc: netfilter-devel
On Sat, Jan 20, 2018 at 02:21:01PM +0100, Phil Sutter wrote:
> Change the test to expect no automerging since it was disabled recently.
Applied, thanks Phil.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-25 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-20 13:21 [nft PATCH] tests/shell: Add back named_interval_automerging_0 Phil Sutter
2018-01-25 19:53 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).