Skip to content

Commit d0ff1cc

Browse files
samples: zbus: ipc_forwarder: sample.yaml test definitions
Adds sample.yaml with test definitions for the IPC forwarder sample, enabling testing using console harness with output validation. Signed-off-by: Trond F. Christiansen <[email protected]>
1 parent 26fbbc1 commit d0ff1cc

File tree

2 files changed

+129
-1
lines changed

2 files changed

+129
-1
lines changed
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
sample:
2+
name: IPC Forwarder
3+
description: Sample application demonstrating Zbus IPC forwarder functionality.
4+
tests:
5+
sample.zbus.ipc_forwarder.nrf54h20_cpuapp_cpurad:
6+
sysbuild: true
7+
platform_allow:
8+
- nrf54h20dk/nrf54h20/cpuapp
9+
extra_args:
10+
- SNIPPET=nordic-log-stm
11+
- SB_CONFIG_REMOTE_BOARD_NRF54H20_CPURAD=y
12+
timeout: 30
13+
harness: console
14+
harness_config:
15+
type: multi_line
16+
ordered: false
17+
regex:
18+
- ".* app/main: Channel request_channel is a master channel"
19+
- ".* app/main: Channel response_channel is a shadow channel"
20+
- ".* rad/main: Channel request_channel is a shadow channel"
21+
- ".* rad/main: Channel response_channel is a master channel"
22+
- ".* app/main: Published on channel request_channel. Request ID=1, Min=-1, Max=1"
23+
- ".* rad/main: Received message on channel request_channel"
24+
- ".* rad/main: Request ID: 1, Min: -1, Max: 1"
25+
- ".* rad/main: Sending response: ID=1, Value=.*"
26+
- ".* rad/main: Response published on channel response_channel"
27+
- ".* app/main: Received message on channel response_channel"
28+
- ".* app/main: Response ID: 1, Value: .*"
29+
30+
sample.zbus.ipc_forwarder.nrf54h20_cpuapp_cpuppr:
31+
sysbuild: true
32+
platform_allow:
33+
- nrf54h20dk/nrf54h20/cpuapp
34+
extra_args:
35+
- SNIPPET=nordic-log-stm
36+
- SB_CONFIG_REMOTE_BOARD_NRF54H20_CPUPPR=y
37+
timeout: 30
38+
harness: console
39+
harness_config:
40+
type: multi_line
41+
ordered: false
42+
regex:
43+
- ".* app/main: Channel request_channel is a master channel"
44+
- ".* app/main: Channel response_channel is a shadow channel"
45+
- ".* ppr/main: Channel request_channel is a shadow channel"
46+
- ".* ppr/main: Channel response_channel is a master channel"
47+
- ".* app/main: Published on channel request_channel. Request ID=1, Min=-1, Max=1"
48+
- ".* ppr/main: Received message on channel request_channel"
49+
- ".* ppr/main: Request ID: 1, Min: -1, Max: 1"
50+
- ".* ppr/main: Sending response: ID=1, Value=.*"
51+
- ".* ppr/main: Response published on channel response_channel"
52+
- ".* app/main: Received message on channel response_channel"
53+
- ".* app/main: Response ID: 1, Value: .*"
54+
55+
sample.zbus.ipc_forwarder.nrf54h20_cpuapp_cpuppr_xip:
56+
sysbuild: true
57+
platform_allow:
58+
- nrf54h20dk/nrf54h20/cpuapp
59+
extra_args:
60+
- SNIPPET=nordic-log-stm
61+
- SB_CONFIG_REMOTE_BOARD_NRF54H20_CPUPPR_XIP=y
62+
timeout: 30
63+
harness: console
64+
harness_config:
65+
type: multi_line
66+
ordered: false
67+
regex:
68+
- ".* app/main: Channel request_channel is a master channel"
69+
- ".* app/main: Channel response_channel is a shadow channel"
70+
- ".* ppr/main: Channel request_channel is a shadow channel"
71+
- ".* ppr/main: Channel response_channel is a master channel"
72+
- ".* app/main: Published on channel request_channel. Request ID=1, Min=-1, Max=1"
73+
- ".* ppr/main: Received message on channel request_channel"
74+
- ".* ppr/main: Request ID: 1, Min: -1, Max: 1"
75+
- ".* ppr/main: Sending response: ID=1, Value=.*"
76+
- ".* ppr/main: Response published on channel response_channel"
77+
- ".* app/main: Received message on channel response_channel"
78+
- ".* app/main: Response ID: 1, Value: .*"
79+
80+
sample.zbus.ipc_forwarder.nrf54h20_cpuapp_cpuflpr_xip:
81+
sysbuild: true
82+
platform_allow:
83+
- nrf54h20dk/nrf54h20/cpuapp
84+
extra_args:
85+
- SNIPPET=nordic-log-stm
86+
- SB_CONFIG_REMOTE_BOARD_NRF54H20_CPUFLPR_XIP=y
87+
timeout: 30
88+
harness: console
89+
harness_config:
90+
type: multi_line
91+
ordered: false
92+
regex:
93+
- ".* app/main: Channel request_channel is a master channel"
94+
- ".* app/main: Channel response_channel is a shadow channel"
95+
- ".* flpr/main: Channel request_channel is a shadow channel"
96+
- ".* flpr/main: Channel response_channel is a master channel"
97+
- ".* app/main: Published on channel request_channel. Request ID=1, Min=-1, Max=1"
98+
- ".* flpr/main: Received message on channel request_channel"
99+
- ".* flpr/main: Request ID: 1, Min: -1, Max: 1"
100+
- ".* flpr/main: Sending response: ID=1, Value=.*"
101+
- ".* flpr/main: Response published on channel response_channel"
102+
- ".* app/main: Received message on channel response_channel"
103+
- ".* app/main: Response ID: 1, Value: .*"
104+
105+
sample.zbus.ipc_forwarder.nrf5340_cpuapp_cpunet:
106+
sysbuild: true
107+
platform_allow:
108+
- nrf5340dk/nrf5340/cpuapp
109+
- nrf5340bsim/nrf5340/cpuapp
110+
integration_platforms:
111+
- nrf5340bsim/nrf5340/cpuapp
112+
tags: ipc
113+
timeout: 30
114+
harness: console
115+
harness_config:
116+
type: multi_line
117+
ordered: false
118+
regex:
119+
- ".* main: Channel request_channel is a master channel"
120+
- ".* main: Channel response_channel is a shadow channel"
121+
- ".* main: Published on channel request_channel. Request ID=1, Min=-1, Max=1"
122+
- ".* main: Received message on channel response_channel"
123+
- ".* main: Response ID: 1, Value: .*"

tests/subsys/zbus/multidomain/uart_backend/testcase.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
tests:
2-
message_bus.zbus.uart_backend:
2+
message_bus.zbus.multidomain.uart_backend:
3+
platform_exclude:
4+
- mps3/corstone300/fvp
5+
- mps3/corstone310/fvp
6+
- mps4/corstone315/fvp
7+
- mps4/corstone320/fvp
38
tags: zbus
49
timeout: 180
510
integration_platforms:

0 commit comments

Comments
 (0)