1sample:
2  name: Message subscriber
3tests:
4  sample.zbus.msg_subscriber_dynamic:
5    harness: console
6    extra_configs:
7      - CONFIG_ZBUS_LOG_LEVEL_DBG=y
8    harness_config:
9      type: multi_line
10      ordered: false
11      regex:
12        - "^.*?I: ----> Publishing to acc_data_chan channel"
13        - "^.*?I:  AL Memory allocated \\d{1,3} bytes. Total allocated \\d{1,3} bytes$"
14        - "^.*?I:  FR Memory freed \\d{1,3} bytes. Total allocated 0 bytes$"
15        - "^.*?D:  0 -> bar_sub1"
16        - "^.*?D:  1 -> bar_msg_sub1"
17        - "^.*?D:  2 -> bar_msg_sub2"
18        - "^.*?D:  3 -> bar_msg_sub3"
19        - "^.*?D:  4 -> bar_msg_sub4"
20        - "^.*?D:  5 -> bar_msg_sub5"
21        - "^.*?D:  6 -> bar_msg_sub6"
22        - "^.*?D:  7 -> bar_msg_sub7"
23        - "^.*?D:  8 -> bar_msg_sub8"
24        - "^.*?D:  9 -> bar_msg_sub9"
25        - "^.*?D:  10 -> foo_lis"
26        - "^.*?D:  11 -> bar_msg_sub10"
27        - "^.*?D:  12 -> bar_msg_sub11"
28        - "^.*?D:  13 -> bar_msg_sub12"
29        - "^.*?D:  14 -> bar_msg_sub13"
30        - "^.*?D:  15 -> bar_msg_sub14"
31        - "^.*?D:  16 -> bar_msg_sub15"
32        - "^.*?D:  17 -> bar_msg_sub16"
33        - "^.*?D:  18 -> bar_sub2"
34        - "^.*?I: From listener foo_lis -> Acc x=1, y=10, z=100"
35        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=1, y=10, z=100"
36        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=1, y=10, z=100"
37        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=1, y=10, z=100"
38        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=1, y=10, z=100"
39        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=1, y=10, z=100"
40        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=1, y=10, z=100"
41        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=1, y=10, z=100"
42        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=1, y=10, z=100"
43        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=1, y=10, z=100"
44        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=1, y=10, z=100"
45        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=1, y=10, z=100"
46        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=1, y=10, z=100"
47        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=1, y=10, z=100"
48        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=1, y=10, z=100"
49        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=1, y=10, z=100"
50        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=1, y=10, z=100"
51        - "^.*?I: From subscriber bar_sub1 -> Acc x=1, y=10, z=100"
52        - "^.*?I: From subscriber bar_sub2 -> Acc x=1, y=10, z=100"
53        - "^.*?I: From listener foo_lis -> Acc x=2, y=20, z=200"
54        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=2, y=20, z=200"
55        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=2, y=20, z=200"
56        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=2, y=20, z=200"
57        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=2, y=20, z=200"
58        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=2, y=20, z=200"
59        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=2, y=20, z=200"
60        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=2, y=20, z=200"
61        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=2, y=20, z=200"
62        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=2, y=20, z=200"
63        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=2, y=20, z=200"
64        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=2, y=20, z=200"
65        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=2, y=20, z=200"
66        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=2, y=20, z=200"
67        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=2, y=20, z=200"
68        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=2, y=20, z=200"
69        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=2, y=20, z=200"
70        - "^.*?I: From subscriber bar_sub1 -> Acc x=2, y=20, z=200"
71        - "^.*?I: From subscriber bar_sub2 -> Acc x=2, y=20, z=200"
72        - "^.*?I: From listener foo_lis -> Acc x=3, y=30, z=300"
73        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=3, y=30, z=300"
74        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=3, y=30, z=300"
75        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=3, y=30, z=300"
76        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=3, y=30, z=300"
77        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=3, y=30, z=300"
78        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=3, y=30, z=300"
79        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=3, y=30, z=300"
80        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=3, y=30, z=300"
81        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=3, y=30, z=300"
82        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=3, y=30, z=300"
83        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=3, y=30, z=300"
84        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=3, y=30, z=300"
85        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=3, y=30, z=300"
86        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=3, y=30, z=300"
87        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=3, y=30, z=300"
88        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=3, y=30, z=300"
89        - "^.*?I: From subscriber bar_sub1 -> Acc x=3, y=30, z=300"
90        - "^.*?I: From subscriber bar_sub2 -> Acc x=3, y=30, z=300"
91    tags: zbus
92    integration_platforms:
93      - qemu_x86
94  sample.zbus.msg_subscriber_static:
95    harness: console
96    extra_configs:
97      - CONFIG_ZBUS_LOG_LEVEL_DBG=y
98      - CONFIG_ZBUS_MSG_SUBSCRIBER_BUF_ALLOC_STATIC=y
99      - CONFIG_ZBUS_MSG_SUBSCRIBER_NET_BUF_STATIC_DATA_SIZE=16
100    harness_config:
101      type: multi_line
102      ordered: false
103      regex:
104        - "^.*?I: ----> Publishing to acc_data_chan channel"
105        - "^.*?D:  0 -> bar_sub1"
106        - "^.*?D:  1 -> bar_msg_sub1"
107        - "^.*?D:  2 -> bar_msg_sub2"
108        - "^.*?D:  3 -> bar_msg_sub3"
109        - "^.*?D:  4 -> bar_msg_sub4"
110        - "^.*?D:  5 -> bar_msg_sub5"
111        - "^.*?D:  6 -> bar_msg_sub6"
112        - "^.*?D:  7 -> bar_msg_sub7"
113        - "^.*?D:  8 -> bar_msg_sub8"
114        - "^.*?D:  9 -> bar_msg_sub9"
115        - "^.*?D:  10 -> foo_lis"
116        - "^.*?D:  11 -> bar_msg_sub10"
117        - "^.*?D:  12 -> bar_msg_sub11"
118        - "^.*?D:  13 -> bar_msg_sub12"
119        - "^.*?D:  14 -> bar_msg_sub13"
120        - "^.*?D:  15 -> bar_msg_sub14"
121        - "^.*?D:  16 -> bar_msg_sub15"
122        - "^.*?D:  17 -> bar_msg_sub16"
123        - "^.*?D:  18 -> bar_sub2"
124        - "^.*?I: From listener foo_lis -> Acc x=1, y=10, z=100"
125        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=1, y=10, z=100"
126        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=1, y=10, z=100"
127        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=1, y=10, z=100"
128        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=1, y=10, z=100"
129        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=1, y=10, z=100"
130        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=1, y=10, z=100"
131        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=1, y=10, z=100"
132        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=1, y=10, z=100"
133        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=1, y=10, z=100"
134        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=1, y=10, z=100"
135        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=1, y=10, z=100"
136        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=1, y=10, z=100"
137        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=1, y=10, z=100"
138        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=1, y=10, z=100"
139        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=1, y=10, z=100"
140        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=1, y=10, z=100"
141        - "^.*?I: From subscriber bar_sub1 -> Acc x=1, y=10, z=100"
142        - "^.*?I: From subscriber bar_sub2 -> Acc x=1, y=10, z=100"
143        - "^.*?I: From listener foo_lis -> Acc x=2, y=20, z=200"
144        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=2, y=20, z=200"
145        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=2, y=20, z=200"
146        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=2, y=20, z=200"
147        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=2, y=20, z=200"
148        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=2, y=20, z=200"
149        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=2, y=20, z=200"
150        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=2, y=20, z=200"
151        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=2, y=20, z=200"
152        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=2, y=20, z=200"
153        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=2, y=20, z=200"
154        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=2, y=20, z=200"
155        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=2, y=20, z=200"
156        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=2, y=20, z=200"
157        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=2, y=20, z=200"
158        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=2, y=20, z=200"
159        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=2, y=20, z=200"
160        - "^.*?I: From subscriber bar_sub1 -> Acc x=2, y=20, z=200"
161        - "^.*?I: From subscriber bar_sub2 -> Acc x=2, y=20, z=200"
162        - "^.*?I: From listener foo_lis -> Acc x=3, y=30, z=300"
163        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=3, y=30, z=300"
164        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=3, y=30, z=300"
165        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=3, y=30, z=300"
166        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=3, y=30, z=300"
167        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=3, y=30, z=300"
168        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=3, y=30, z=300"
169        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=3, y=30, z=300"
170        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=3, y=30, z=300"
171        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=3, y=30, z=300"
172        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=3, y=30, z=300"
173        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=3, y=30, z=300"
174        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=3, y=30, z=300"
175        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=3, y=30, z=300"
176        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=3, y=30, z=300"
177        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=3, y=30, z=300"
178        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=3, y=30, z=300"
179        - "^.*?I: From subscriber bar_sub1 -> Acc x=3, y=30, z=300"
180        - "^.*?I: From subscriber bar_sub2 -> Acc x=3, y=30, z=300"
181    tags: zbus
182    integration_platforms:
183      - qemu_x86
184
185  sample.zbus.msg_subscriber_dynamic_isolated:
186    harness: console
187    extra_configs:
188      - CONFIG_ZBUS_LOG_LEVEL_DBG=y
189      - CONFIG_ZBUS_MSG_SUBSCRIBER_NET_BUF_POOL_ISOLATION=y
190    harness_config:
191      type: multi_line
192      ordered: false
193      regex:
194        - "^.*?I: ----> Publishing to acc_data_chan channel"
195        - "^.*?I:  AL Memory allocated \\d{1,3} bytes. Total allocated \\d{1,3} bytes$"
196        - "^.*?I:  FR Memory freed \\d{1,3} bytes. Total allocated 0 bytes$"
197        - "^.*?D:  0 -> bar_sub1"
198        - "^.*?D:  1 -> bar_msg_sub1"
199        - "^.*?D:  2 -> bar_msg_sub2"
200        - "^.*?D:  3 -> bar_msg_sub3"
201        - "^.*?D:  4 -> bar_msg_sub4"
202        - "^.*?D:  5 -> bar_msg_sub5"
203        - "^.*?D:  6 -> bar_msg_sub6"
204        - "^.*?D:  7 -> bar_msg_sub7"
205        - "^.*?D:  8 -> bar_msg_sub8"
206        - "^.*?D:  9 -> bar_msg_sub9"
207        - "^.*?D:  10 -> foo_lis"
208        - "^.*?D:  11 -> bar_msg_sub10"
209        - "^.*?D:  12 -> bar_msg_sub11"
210        - "^.*?D:  13 -> bar_msg_sub12"
211        - "^.*?D:  14 -> bar_msg_sub13"
212        - "^.*?D:  15 -> bar_msg_sub14"
213        - "^.*?D:  16 -> bar_msg_sub15"
214        - "^.*?D:  17 -> bar_msg_sub16"
215        - "^.*?D:  18 -> bar_sub2"
216        - "^.*?I: From listener foo_lis -> Acc x=1, y=10, z=100"
217        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=1, y=10, z=100"
218        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=1, y=10, z=100"
219        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=1, y=10, z=100"
220        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=1, y=10, z=100"
221        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=1, y=10, z=100"
222        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=1, y=10, z=100"
223        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=1, y=10, z=100"
224        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=1, y=10, z=100"
225        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=1, y=10, z=100"
226        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=1, y=10, z=100"
227        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=1, y=10, z=100"
228        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=1, y=10, z=100"
229        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=1, y=10, z=100"
230        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=1, y=10, z=100"
231        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=1, y=10, z=100"
232        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=1, y=10, z=100"
233        - "^.*?I: From subscriber bar_sub1 -> Acc x=1, y=10, z=100"
234        - "^.*?I: From subscriber bar_sub2 -> Acc x=1, y=10, z=100"
235        - "^.*?I: From listener foo_lis -> Acc x=2, y=20, z=200"
236        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=2, y=20, z=200"
237        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=2, y=20, z=200"
238        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=2, y=20, z=200"
239        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=2, y=20, z=200"
240        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=2, y=20, z=200"
241        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=2, y=20, z=200"
242        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=2, y=20, z=200"
243        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=2, y=20, z=200"
244        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=2, y=20, z=200"
245        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=2, y=20, z=200"
246        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=2, y=20, z=200"
247        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=2, y=20, z=200"
248        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=2, y=20, z=200"
249        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=2, y=20, z=200"
250        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=2, y=20, z=200"
251        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=2, y=20, z=200"
252        - "^.*?I: From subscriber bar_sub1 -> Acc x=2, y=20, z=200"
253        - "^.*?I: From subscriber bar_sub2 -> Acc x=2, y=20, z=200"
254        - "^.*?I: From listener foo_lis -> Acc x=3, y=30, z=300"
255        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=3, y=30, z=300"
256        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=3, y=30, z=300"
257        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=3, y=30, z=300"
258        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=3, y=30, z=300"
259        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=3, y=30, z=300"
260        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=3, y=30, z=300"
261        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=3, y=30, z=300"
262        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=3, y=30, z=300"
263        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=3, y=30, z=300"
264        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=3, y=30, z=300"
265        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=3, y=30, z=300"
266        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=3, y=30, z=300"
267        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=3, y=30, z=300"
268        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=3, y=30, z=300"
269        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=3, y=30, z=300"
270        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=3, y=30, z=300"
271        - "^.*?I: From subscriber bar_sub1 -> Acc x=3, y=30, z=300"
272        - "^.*?I: From subscriber bar_sub2 -> Acc x=3, y=30, z=300"
273    tags: zbus
274    integration_platforms:
275      - qemu_x86
276  sample.zbus.msg_subscriber_dynamic_isolated_too_small:
277    harness: console
278    extra_configs:
279      - CONFIG_ZBUS_LOG_LEVEL_DBG=y
280      - CONFIG_ZBUS_MSG_SUBSCRIBER_NET_BUF_POOL_ISOLATION=y
281      - CONFIG_ZBUS_MSG_SUBSCRIBER_SAMPLE_ISOLATED_BUF_POOL_SIZE=2
282    harness_config:
283      type: multi_line
284      ordered: false
285      regex:
286        - "^.*?I: ----> Publishing to acc_data_chan channel"
287        - "^.*?I:  AL Memory allocated \\d{1,3} bytes. Total allocated \\d{1,3} bytes$"
288        - "^.*?I:  FR Memory freed \\d{1,3} bytes. Total allocated 0 bytes$"
289        - "^.*?D:  0 -> bar_sub1"
290        - "^.*?D:  1 -> bar_msg_sub1"
291        - "^.*?E: could not deliver notification to observer bar_msg_sub2. Error code -12"
292    tags: zbus
293    integration_platforms:
294      - qemu_x86
295  sample.zbus.msg_subscriber_static_isolated:
296    harness: console
297    extra_configs:
298      - CONFIG_ZBUS_LOG_LEVEL_DBG=y
299      - CONFIG_ZBUS_MSG_SUBSCRIBER_BUF_ALLOC_STATIC=y
300      - CONFIG_ZBUS_MSG_SUBSCRIBER_NET_BUF_STATIC_DATA_SIZE=16
301      - CONFIG_ZBUS_MSG_SUBSCRIBER_NET_BUF_POOL_ISOLATION=y
302      - CONFIG_ZBUS_MSG_SUBSCRIBER_SAMPLE_ISOLATED_BUF_POOL_SIZE=32
303    harness_config:
304      type: multi_line
305      ordered: false
306      regex:
307        - "^.*?I: ----> Publishing to acc_data_chan channel"
308        - "^.*?D:  0 -> bar_sub1"
309        - "^.*?D:  1 -> bar_msg_sub1"
310        - "^.*?D:  2 -> bar_msg_sub2"
311        - "^.*?D:  3 -> bar_msg_sub3"
312        - "^.*?D:  4 -> bar_msg_sub4"
313        - "^.*?D:  5 -> bar_msg_sub5"
314        - "^.*?D:  6 -> bar_msg_sub6"
315        - "^.*?D:  7 -> bar_msg_sub7"
316        - "^.*?D:  8 -> bar_msg_sub8"
317        - "^.*?D:  9 -> bar_msg_sub9"
318        - "^.*?D:  10 -> foo_lis"
319        - "^.*?D:  11 -> bar_msg_sub10"
320        - "^.*?D:  12 -> bar_msg_sub11"
321        - "^.*?D:  13 -> bar_msg_sub12"
322        - "^.*?D:  14 -> bar_msg_sub13"
323        - "^.*?D:  15 -> bar_msg_sub14"
324        - "^.*?D:  16 -> bar_msg_sub15"
325        - "^.*?D:  17 -> bar_msg_sub16"
326        - "^.*?D:  18 -> bar_sub2"
327        - "^.*?I: From listener foo_lis -> Acc x=1, y=10, z=100"
328        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=1, y=10, z=100"
329        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=1, y=10, z=100"
330        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=1, y=10, z=100"
331        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=1, y=10, z=100"
332        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=1, y=10, z=100"
333        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=1, y=10, z=100"
334        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=1, y=10, z=100"
335        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=1, y=10, z=100"
336        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=1, y=10, z=100"
337        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=1, y=10, z=100"
338        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=1, y=10, z=100"
339        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=1, y=10, z=100"
340        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=1, y=10, z=100"
341        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=1, y=10, z=100"
342        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=1, y=10, z=100"
343        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=1, y=10, z=100"
344        - "^.*?I: From subscriber bar_sub1 -> Acc x=1, y=10, z=100"
345        - "^.*?I: From subscriber bar_sub2 -> Acc x=1, y=10, z=100"
346        - "^.*?I: From listener foo_lis -> Acc x=2, y=20, z=200"
347        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=2, y=20, z=200"
348        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=2, y=20, z=200"
349        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=2, y=20, z=200"
350        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=2, y=20, z=200"
351        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=2, y=20, z=200"
352        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=2, y=20, z=200"
353        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=2, y=20, z=200"
354        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=2, y=20, z=200"
355        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=2, y=20, z=200"
356        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=2, y=20, z=200"
357        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=2, y=20, z=200"
358        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=2, y=20, z=200"
359        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=2, y=20, z=200"
360        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=2, y=20, z=200"
361        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=2, y=20, z=200"
362        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=2, y=20, z=200"
363        - "^.*?I: From subscriber bar_sub1 -> Acc x=2, y=20, z=200"
364        - "^.*?I: From subscriber bar_sub2 -> Acc x=2, y=20, z=200"
365        - "^.*?I: From listener foo_lis -> Acc x=3, y=30, z=300"
366        - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=3, y=30, z=300"
367        - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=3, y=30, z=300"
368        - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=3, y=30, z=300"
369        - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=3, y=30, z=300"
370        - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=3, y=30, z=300"
371        - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=3, y=30, z=300"
372        - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=3, y=30, z=300"
373        - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=3, y=30, z=300"
374        - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=3, y=30, z=300"
375        - "^.*?I: From msg subscriber bar_msg_sub10 -> Acc x=3, y=30, z=300"
376        - "^.*?I: From msg subscriber bar_msg_sub11 -> Acc x=3, y=30, z=300"
377        - "^.*?I: From msg subscriber bar_msg_sub12 -> Acc x=3, y=30, z=300"
378        - "^.*?I: From msg subscriber bar_msg_sub13 -> Acc x=3, y=30, z=300"
379        - "^.*?I: From msg subscriber bar_msg_sub14 -> Acc x=3, y=30, z=300"
380        - "^.*?I: From msg subscriber bar_msg_sub15 -> Acc x=3, y=30, z=300"
381        - "^.*?I: From msg subscriber bar_msg_sub16 -> Acc x=3, y=30, z=300"
382        - "^.*?I: From subscriber bar_sub1 -> Acc x=3, y=30, z=300"
383        - "^.*?I: From subscriber bar_sub2 -> Acc x=3, y=30, z=300"
384    tags: zbus
385    integration_platforms:
386      - qemu_x86
387  sample.zbus.msg_subscriber_static_isolated_too_small:
388    harness: console
389    extra_configs:
390      - CONFIG_ZBUS_LOG_LEVEL_DBG=y
391      - CONFIG_ZBUS_MSG_SUBSCRIBER_BUF_ALLOC_STATIC=y
392      - CONFIG_ZBUS_MSG_SUBSCRIBER_NET_BUF_STATIC_DATA_SIZE=16
393      - CONFIG_ZBUS_MSG_SUBSCRIBER_NET_BUF_POOL_ISOLATION=y
394      - CONFIG_ZBUS_MSG_SUBSCRIBER_SAMPLE_ISOLATED_BUF_POOL_SIZE=2
395    harness_config:
396      type: multi_line
397      ordered: false
398      regex:
399        - "^.*?I: ----> Publishing to acc_data_chan channel"
400        - "^.*?D:  0 -> bar_sub1"
401        - "^.*?D:  1 -> bar_msg_sub1"
402        - "^.*?E: could not deliver notification to observer bar_msg_sub2. Error code -12"
403    tags: zbus
404    integration_platforms:
405      - qemu_x86
406