Skip to content

Commit 68ee061

Browse files
tbitcsoz-agent
andcommitted
fix(samples): merge testcase.yaml into sample.yaml for Zephyr v4 Twister
Zephyr v4.4.0 Twister requires sample.yaml to contain a 'tests' section. Having a separate testcase.yaml alongside sample.yaml causes Twister to validate sample.yaml alone (which lacks 'tests:'), resulting in ValidationError and the entire sample directory being skipped. Merged the tests: block from each testcase.yaml into the corresponding sample.yaml, and removed the now-redundant testcase.yaml files. All 17 samples updated. Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent c070f21 commit 68ee061

34 files changed

Lines changed: 119 additions & 102 deletions

File tree

samples/access_control/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ common:
88
tags: arbiter reasoning cors auth security api iot
99
harness: console
1010
platform_allow: native_sim
11+
tests:
12+
sample.arbiter.access-control:
13+
tags: arbiter sample
14+
platform_allow: native_sim
15+
harness: console
16+
build_only: true
17+

samples/access_control/testcase.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

samples/battery_policy/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ common:
55
tags: arbiter reasoning safety
66
harness: console
77
platform_allow: native_sim
8+
tests:
9+
sample.arbiter.battery-policy:
10+
tags: arbiter sample
11+
platform_allow: native_sim
12+
harness: console
13+
build_only: true
14+

samples/battery_policy/testcase.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

samples/cobot_safety/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ common:
99
tags: arbiter reasoning safety cobot robotics iso-10218
1010
harness: console
1111
platform_allow: native_sim
12+
tests:
13+
sample.arbiter.cobot-safety:
14+
tags: arbiter sample
15+
platform_allow: native_sim
16+
harness: console
17+
build_only: true
18+

samples/cobot_safety/testcase.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

samples/fault_diagnosis/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ common:
99
tags: arbiter solver diagnostics fault-tree motor-drive
1010
harness: console
1111
platform_allow: native_sim
12+
tests:
13+
sample.arbiter.fault-diagnosis:
14+
tags: arbiter sample solver
15+
platform_allow: native_sim
16+
harness: console
17+
build_only: true
18+

samples/fault_diagnosis/testcase.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

samples/firewall_policy/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ common:
99
tags: arbiter reasoning firewall security network iot
1010
harness: console
1111
platform_allow: native_sim
12+
tests:
13+
sample.arbiter.firewall-policy:
14+
tags: arbiter sample
15+
platform_allow: native_sim
16+
harness: console
17+
build_only: true
18+

samples/firewall_policy/testcase.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)