tests: logging: log_api: Add test for LOG_PRINTK

Added test that validates CONFIG_LOG_PRINTK option where
printk is redirected to logging.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2022-01-19 15:17:48 +01:00 committed by Carles Cufí
commit c5989c21aa
2 changed files with 43 additions and 0 deletions

View file

@ -81,6 +81,16 @@ tests:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
logging.log2_api_deferred_printk:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_DEFERRED=y
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
- CONFIG_LOG_PRINTK=y
#When LOG_PRINTK is enabled, thread must process otherwise test output would be lost.
- CONFIG_LOG_PROCESS_THREAD=y
logging.log2_api_deferred_func_prefix:
# FIXME:see #38041
platform_exclude: qemu_arc_hs6x
@ -102,6 +112,13 @@ tests:
extra_configs:
- CONFIG_LOG_MODE_IMMEDIATE=y
logging.log2_api_immediate_printk:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
extra_configs:
- CONFIG_LOG_MODE_IMMEDIATE=y
- CONFIG_LOG_PRINTK=y
logging.log2_api_immediate_rt_filter:
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x