summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optimizations
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/optimizations')
-rw-r--r--tests/shell/testcases/optimizations/dumps/not_mergeable.nft7
-rwxr-xr-xtests/shell/testcases/optimizations/not_mergeable6
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/shell/testcases/optimizations/dumps/not_mergeable.nft b/tests/shell/testcases/optimizations/dumps/not_mergeable.nft
index 08b2b58f..02b89207 100644
--- a/tests/shell/testcases/optimizations/dumps/not_mergeable.nft
+++ b/tests/shell/testcases/optimizations/dumps/not_mergeable.nft
@@ -5,8 +5,15 @@ table ip x {
chain t2 {
}
+ chain t3 {
+ }
+
+ chain t4 {
+ }
+
chain y {
counter packets 0 bytes 0 jump t1
counter packets 0 bytes 0 jump t2
+ ip version vmap { 4 : jump t3, 6 : jump t4 }
}
}
diff --git a/tests/shell/testcases/optimizations/not_mergeable b/tests/shell/testcases/optimizations/not_mergeable
index 25635cdd..ddb2f0fd 100755
--- a/tests/shell/testcases/optimizations/not_mergeable
+++ b/tests/shell/testcases/optimizations/not_mergeable
@@ -7,9 +7,15 @@ RULESET="table ip x {
}
chain t2 {
}
+ chain t3 {
+ }
+ chain t4 {
+ }
chain y {
counter jump t1
counter jump t2
+ ip version 4 jump t3
+ ip version 6 jump t4
}
}"