1common:
2  platform_type:
3    - qemu
4    - native
5  tags:
6    - log_api
7    - logging
8  platform_key:
9    - arch
10    - simulation
11  integration_platforms:
12    - native_sim
13  min_ram: 32
14tests:
15  logging.deferred.api.overflow_rt_filter:
16    extra_configs:
17      - CONFIG_LOG_MODE_DEFERRED=y
18      - CONFIG_LOG_MODE_OVERFLOW=y
19      - CONFIG_LOG_RUNTIME_FILTERING=y
20
21  logging.deferred.api.overflow:
22    extra_configs:
23      - CONFIG_LOG_MODE_DEFERRED=y
24      - CONFIG_LOG_MODE_OVERFLOW=y
25
26  logging.deferred.api.no_overflow:
27    extra_configs:
28      - CONFIG_LOG_MODE_DEFERRED=y
29      - CONFIG_LOG_MODE_OVERFLOW=n
30
31  logging.deferred.api.static_filter:
32    extra_configs:
33      - CONFIG_LOG_MODE_DEFERRED=y
34      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
35
36  logging.deferred.api.printk:
37    extra_configs:
38      - CONFIG_LOG_MODE_DEFERRED=y
39      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
40      - CONFIG_LOG_PRINTK=y
41      # When LOG_PRINTK is enabled, thread must process otherwise test output would be lost.
42      - CONFIG_LOG_PROCESS_THREAD=y
43
44  logging.deferred.api.func_prefix:
45    extra_configs:
46      - CONFIG_LOG_MODE_DEFERRED=y
47      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
48      - CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
49
50  logging.deferred.api.64b_timestamp:
51    extra_configs:
52      - CONFIG_LOG_MODE_DEFERRED=y
53      - CONFIG_LOG_TIMESTAMP_64BIT=y
54
55  logging.deferred.api.override_level:
56    # Testing on selected platforms as it enables all logs in the application
57    # and it cannot be handled on many platforms.
58    platform_allow:
59      - qemu_cortex_m3
60      - qemu_cortex_a9
61      - native_posix
62      - native_sim
63    extra_configs:
64      - CONFIG_LOG_MODE_DEFERRED=y
65      - CONFIG_LOG_OVERRIDE_LEVEL=4
66
67  logging.immediate.api:
68    extra_configs:
69      - CONFIG_LOG_MODE_IMMEDIATE=y
70
71  logging.immediate.api.printk:
72    extra_configs:
73      - CONFIG_LOG_MODE_IMMEDIATE=y
74      - CONFIG_LOG_PRINTK=y
75
76  logging.immediate.api.rt_filter:
77    extra_configs:
78      - CONFIG_LOG_MODE_IMMEDIATE=y
79      - CONFIG_LOG_RUNTIME_FILTERING=y
80
81  logging.immediate.api.static_filter:
82    extra_configs:
83      - CONFIG_LOG_MODE_IMMEDIATE=y
84      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
85
86  logging.immediate.api.64b_timestamp:
87    extra_configs:
88      - CONFIG_LOG_MODE_IMMEDIATE=y
89      - CONFIG_LOG_TIMESTAMP_64BIT=y
90
91  logging.frontend.dbg:
92    extra_configs:
93      - CONFIG_LOG_FRONTEND=y
94      - CONFIG_LOG_MODE_DEFERRED=y
95      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
96
97  logging.frontend.dbg.rt_filtering:
98    extra_configs:
99      - CONFIG_LOG_FRONTEND=y
100      - CONFIG_LOG_MODE_DEFERRED=y
101      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
102      - CONFIG_LOG_RUNTIME_FILTERING=y
103
104  logging.frontend:
105    extra_configs:
106      - CONFIG_LOG_FRONTEND=y
107      - CONFIG_LOG_MODE_DEFERRED=y
108
109  logging.frontend.rt_filtering:
110    extra_configs:
111      - CONFIG_LOG_FRONTEND=y
112      - CONFIG_LOG_MODE_DEFERRED=y
113      - CONFIG_LOG_RUNTIME_FILTERING=y
114
115  logging.frontend.immediate:
116    extra_configs:
117      - CONFIG_LOG_FRONTEND=y
118      - CONFIG_LOG_MODE_IMMEDIATE=y
119
120  logging.frontend.immediate_override_level:
121    # Testing on selected platforms as it enables all logs in the application
122    # and it cannot be handled on many platforms.
123    platform_allow:
124      - qemu_cortex_m3
125      - qemu_cortex_a9
126      - native_posix
127      - native_sim
128    extra_configs:
129      - CONFIG_LOG_FRONTEND=y
130      - CONFIG_LOG_MODE_IMMEDIATE=y
131      - CONFIG_LOG_OVERRIDE_LEVEL=4
132
133  logging.deferred.api.override_level_rt_filtering:
134    # Testing on selected platforms as it enables all logs in the application
135    # and it cannot be handled on many platforms.
136    platform_allow:
137      - qemu_cortex_m3
138      - qemu_cortex_a9
139      - native_posix
140      - native_sim
141    extra_configs:
142      - CONFIG_LOG_MODE_DEFERRED=y
143      - CONFIG_LOG_RUNTIME_FILTERING=y
144      - CONFIG_LOG_OVERRIDE_LEVEL=4
145
146  logging.frontend.only:
147    extra_configs:
148      - CONFIG_LOG_FRONTEND=y
149      - CONFIG_LOG_FRONTEND_ONLY=y
150
151  logging.frontend.only.rt_filtering:
152    extra_configs:
153      - CONFIG_LOG_FRONTEND=y
154      - CONFIG_LOG_FRONTEND_ONLY=y
155      - CONFIG_LOG_RUNTIME_FILTERING=y
156
157  logging.frontend.no_backends:
158    extra_configs:
159      - CONFIG_LOG_FRONTEND=y
160      - CONFIG_LOG_FRONTEND_ONLY=y
161      - CONFIG_LOG_BACKEND_UART=n
162      - CONFIG_LOG_BACKEND_RTT=n
163      - CONFIG_LOG_BACKEND_NATIVE_POSIX=n
164      - CONFIG_LOG_BACKEND_XTENSA_SIM=n
165    extra_args: EXTRA_CPPFLAGS=-DNO_BACKENDS=1
166
167  logging.deferred.api.overflow_rt_filter_cpp:
168    extra_configs:
169      - CONFIG_LOG_MODE_DEFERRED=y
170      - CONFIG_LOG_MODE_OVERFLOW=y
171      - CONFIG_LOG_RUNTIME_FILTERING=y
172      - CONFIG_CPP=y
173
174  logging.deferred.api.overflow_cpp:
175    extra_configs:
176      - CONFIG_LOG_MODE_DEFERRED=y
177      - CONFIG_LOG_MODE_OVERFLOW=y
178      - CONFIG_CPP=y
179
180  logging.deferred.api.no_overflowcpp:
181    extra_configs:
182      - CONFIG_LOG_MODE_DEFERRED=y
183      - CONFIG_LOG_MODE_OVERFLOW=n
184      - CONFIG_CPP=y
185
186  logging.deferred.api.static_filter_cpp:
187    extra_configs:
188      - CONFIG_LOG_MODE_DEFERRED=y
189      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
190      - CONFIG_CPP=y
191
192  logging.deferred.api.printk_cpp:
193    extra_configs:
194      - CONFIG_LOG_MODE_DEFERRED=y
195      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
196      - CONFIG_LOG_PRINTK=y
197      # When LOG_PRINTK is enabled, thread must process otherwise test output would be lost.
198      - CONFIG_LOG_PROCESS_THREAD=y
199      - CONFIG_CPP=y
200
201  logging.deferred.api.func_prefix_cpp:
202    extra_configs:
203      - CONFIG_LOG_MODE_DEFERRED=y
204      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
205      - CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
206      - CONFIG_CPP=y
207
208  logging.deferred.api.64b_timestamp_cpp:
209    extra_configs:
210      - CONFIG_LOG_MODE_DEFERRED=y
211      - CONFIG_LOG_TIMESTAMP_64BIT=y
212      - CONFIG_CPP=y
213
214  logging.immediate.api.cpp:
215    extra_configs:
216      - CONFIG_LOG_MODE_IMMEDIATE=y
217      - CONFIG_CPP=y
218
219  logging.immediate.api.printk_cpp:
220    extra_configs:
221      - CONFIG_LOG_MODE_IMMEDIATE=y
222      - CONFIG_LOG_PRINTK=y
223      - CONFIG_CPP=y
224
225  logging.immediate.api.rt_filter_cpp:
226    extra_configs:
227      - CONFIG_LOG_MODE_IMMEDIATE=y
228      - CONFIG_LOG_RUNTIME_FILTERING=y
229      - CONFIG_CPP=y
230
231  logging.immediate.api.static_filter_cpp:
232    extra_configs:
233      - CONFIG_LOG_MODE_IMMEDIATE=y
234      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
235      - CONFIG_CPP=y
236
237  logging.immediate.api.64b_timestamp_cpp:
238    extra_configs:
239      - CONFIG_LOG_MODE_IMMEDIATE=y
240      - CONFIG_LOG_TIMESTAMP_64BIT=y
241      - CONFIG_CPP=y
242
243  logging.frontend.dbg_cpp:
244    extra_configs:
245      - CONFIG_LOG_FRONTEND=y
246      - CONFIG_LOG_MODE_DEFERRED=y
247      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
248      - CONFIG_CPP=y
249
250  logging.frontend.cpp:
251    extra_configs:
252      - CONFIG_LOG_FRONTEND=y
253      - CONFIG_LOG_MODE_DEFERRED=y
254      - CONFIG_CPP=y
255
256  logging.frontend.immediate_cpp:
257    extra_configs:
258      - CONFIG_LOG_FRONTEND=y
259      - CONFIG_LOG_MODE_IMMEDIATE=y
260      - CONFIG_CPP=y
261
262  logging.frontend.only_cpp:
263    extra_configs:
264      - CONFIG_LOG_FRONTEND=y
265      - CONFIG_LOG_FRONTEND_ONLY=y
266      - CONFIG_CPP=y
267
268  logging.frontend.only_cpp.rt_filtering:
269    extra_configs:
270      - CONFIG_LOG_FRONTEND=y
271      - CONFIG_LOG_FRONTEND_ONLY=y
272      - CONFIG_CPP=y
273      - CONFIG_LOG_RUNTIME_FILTERING=y
274
275  logging.frontend.no_backends_cpp:
276    extra_configs:
277      - CONFIG_LOG_FRONTEND=y
278      - CONFIG_LOG_FRONTEND_ONLY=y
279      - CONFIG_LOG_BACKEND_UART=n
280      - CONFIG_LOG_BACKEND_RTT=n
281      - CONFIG_LOG_BACKEND_NATIVE_POSIX=n
282      - CONFIG_LOG_BACKEND_XTENSA_SIM=n
283      - CONFIG_CPP=y
284    extra_args: EXTRA_CPPFLAGS=-DNO_BACKENDS=1
285
286  logging.deferred.api.overflow_rt_filter.tagged_args:
287    toolchain_exclude: xcc
288    extra_configs:
289      - CONFIG_LOG_MODE_DEFERRED=y
290      - CONFIG_LOG_MODE_OVERFLOW=y
291      - CONFIG_LOG_RUNTIME_FILTERING=y
292      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
293
294  logging.deferred.api.overflow.tagged_args:
295    toolchain_exclude: xcc
296    extra_configs:
297      - CONFIG_LOG_MODE_DEFERRED=y
298      - CONFIG_LOG_MODE_OVERFLOW=y
299      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
300
301  logging.deferred.api.no_overflowtagged_args:
302    toolchain_exclude: xcc
303    extra_configs:
304      - CONFIG_LOG_MODE_DEFERRED=y
305      - CONFIG_LOG_MODE_OVERFLOW=n
306      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
307
308  logging.deferred.api.static_filter.tagged_args:
309    toolchain_exclude: xcc
310    extra_configs:
311      - CONFIG_LOG_MODE_DEFERRED=y
312      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
313      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
314
315  logging.deferred.api.printk.tagged_args:
316    toolchain_exclude: xcc
317    extra_configs:
318      - CONFIG_LOG_MODE_DEFERRED=y
319      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
320      - CONFIG_LOG_PRINTK=y
321      # When LOG_PRINTK is enabled, thread must process otherwise test output would be lost.
322      - CONFIG_LOG_PROCESS_THREAD=y
323      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
324
325  logging.deferred.api.func_prefix.tagged_args:
326    toolchain_exclude: xcc
327    extra_configs:
328      - CONFIG_LOG_MODE_DEFERRED=y
329      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
330      - CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
331      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
332
333  logging.deferred.api.64b_timestamp.tagged_args:
334    toolchain_exclude: xcc
335    extra_configs:
336      - CONFIG_LOG_MODE_DEFERRED=y
337      - CONFIG_LOG_TIMESTAMP_64BIT=y
338      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
339
340  logging.deferred.api.override_level.tagged_args:
341    # Testing on selected platforms as it enables all logs in the application
342    # and it cannot be handled on many platforms.
343    platform_allow:
344      - qemu_cortex_m3
345      - qemu_cortex_a9
346      - native_posix
347      - native_sim
348    toolchain_exclude: xcc
349    extra_configs:
350      - CONFIG_LOG_MODE_DEFERRED=y
351      - CONFIG_LOG_OVERRIDE_LEVEL=4
352      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
353
354  logging.deferred.api.override_level_rt_filtering.tagged_args:
355    # Testing on selected platforms as it enables all logs in the application
356    # and it cannot be handled on many platforms.
357    platform_allow:
358      - qemu_cortex_m3
359      - qemu_cortex_a9
360      - native_posix
361      - native_sim
362    toolchain_exclude: xcc
363    extra_configs:
364      - CONFIG_LOG_MODE_DEFERRED=y
365      - CONFIG_LOG_RUNTIME_FILTERING=y
366      - CONFIG_LOG_OVERRIDE_LEVEL=4
367      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
368
369  logging.immediate.api.tagged_args:
370    toolchain_exclude: xcc
371    extra_configs:
372      - CONFIG_LOG_MODE_IMMEDIATE=y
373      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
374
375  logging.immediate.api.printk.tagged_args:
376    toolchain_exclude: xcc
377    extra_configs:
378      - CONFIG_LOG_MODE_IMMEDIATE=y
379      - CONFIG_LOG_PRINTK=y
380      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
381
382  logging.immediate.api.rt_filter.tagged_args:
383    toolchain_exclude: xcc
384    extra_configs:
385      - CONFIG_LOG_MODE_IMMEDIATE=y
386      - CONFIG_LOG_RUNTIME_FILTERING=y
387      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
388
389  logging.immediate.api.static_filter.tagged_args:
390    toolchain_exclude: xcc
391    extra_configs:
392      - CONFIG_LOG_MODE_IMMEDIATE=y
393      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
394      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
395
396  logging.immediate.api.64b_timestamp.tagged_args:
397    toolchain_exclude: xcc
398    extra_configs:
399      - CONFIG_LOG_MODE_IMMEDIATE=y
400      - CONFIG_LOG_TIMESTAMP_64BIT=y
401      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
402
403  logging.deferred.api.overflow_rt_filter_cpp.tagged_args:
404    toolchain_exclude: xcc
405    extra_configs:
406      - CONFIG_LOG_MODE_DEFERRED=y
407      - CONFIG_LOG_MODE_OVERFLOW=y
408      - CONFIG_LOG_RUNTIME_FILTERING=y
409      - CONFIG_CPP=y
410      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
411
412  logging.deferred.api.overflow_cpp.tagged_args:
413    toolchain_exclude: xcc
414    extra_configs:
415      - CONFIG_LOG_MODE_DEFERRED=y
416      - CONFIG_LOG_MODE_OVERFLOW=y
417      - CONFIG_CPP=y
418      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
419
420  logging.deferred.api.no_overflowcpp.tagged_args:
421    toolchain_exclude: xcc
422    extra_configs:
423      - CONFIG_LOG_MODE_DEFERRED=y
424      - CONFIG_LOG_MODE_OVERFLOW=n
425      - CONFIG_CPP=y
426      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
427
428  logging.deferred.api.static_filter_cpp.tagged_args:
429    toolchain_exclude: xcc
430    extra_configs:
431      - CONFIG_LOG_MODE_DEFERRED=y
432      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
433      - CONFIG_CPP=y
434      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
435
436  logging.deferred.api.printk_cpp.tagged_args:
437    toolchain_exclude: xcc
438    extra_configs:
439      - CONFIG_LOG_MODE_DEFERRED=y
440      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
441      - CONFIG_LOG_PRINTK=y
442      # When LOG_PRINTK is enabled, thread must process otherwise test output would be lost.
443      - CONFIG_LOG_PROCESS_THREAD=y
444      - CONFIG_CPP=y
445      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
446
447  logging.deferred.api.func_prefix_cpp.tagged_args:
448    toolchain_exclude: xcc
449    extra_configs:
450      - CONFIG_LOG_MODE_DEFERRED=y
451      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
452      - CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
453      - CONFIG_CPP=y
454      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
455
456  logging.deferred.api.64b_timestamp_cpp.tagged_args:
457    toolchain_exclude: xcc
458    extra_configs:
459      - CONFIG_LOG_MODE_DEFERRED=y
460      - CONFIG_LOG_TIMESTAMP_64BIT=y
461      - CONFIG_CPP=y
462      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
463
464  logging.immediate.api.cpp.tagged_args:
465    toolchain_exclude: xcc
466    extra_configs:
467      - CONFIG_LOG_MODE_IMMEDIATE=y
468      - CONFIG_CPP=y
469      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
470
471  logging.immediate.api.printk_cpp.tagged_args:
472    toolchain_exclude: xcc
473    extra_configs:
474      - CONFIG_LOG_MODE_IMMEDIATE=y
475      - CONFIG_LOG_PRINTK=y
476      - CONFIG_CPP=y
477      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
478
479  logging.immediate.api.rt_filter_cpp.tagged_args:
480    toolchain_exclude: xcc
481    extra_configs:
482      - CONFIG_LOG_MODE_IMMEDIATE=y
483      - CONFIG_LOG_RUNTIME_FILTERING=y
484      - CONFIG_CPP=y
485      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
486
487  logging.immediate.api.static_filter_cpp.tagged_args:
488    toolchain_exclude: xcc
489    extra_configs:
490      - CONFIG_LOG_MODE_IMMEDIATE=y
491      - CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
492      - CONFIG_CPP=y
493      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
494
495  logging.immediate.api.64b_timestamp_cpp.tagged_args:
496    toolchain_exclude: xcc
497    extra_configs:
498      - CONFIG_LOG_MODE_IMMEDIATE=y
499      - CONFIG_LOG_TIMESTAMP_64BIT=y
500      - CONFIG_CPP=y
501      - CONFIG_LOG_USE_TAGGED_ARGUMENTS=y
502