Skip to contentSkip to conversation

tests/shell: Add back named_interval_automerging_0

PATCH Applied Phil Sutter 2 participants 2 messages Jan 20, 2018 – Jan 25, 2018 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 tests/shell: Add back named_interval_automerging_0

Change the test to expect no automerging since it was disabled recently.

---
 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
tests/shell/testcases/sets/0002named_interval_automerging_0 new file +12 -0
new file mode 100755
index 0000000000000..688986387d177
@@ -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
Signature · 1 line
2.15.1
maintainer Applied
#1 lore raw
Quoted 1 line · Phil Sutter

Change the test to expect no automerging since it was disabled recently.

Applied, thanks Phil.