diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-02-26 21:48:18 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-16 08:07:58 -0600 |
commit | 395041b2fd2f1cb2c84127acb18d87c27c29448c (patch) | |
tree | 93e1c35b964d198a60ab31ec41bec1c5743c1a7f /test/Kconfig | |
parent | 20fd256deb055479c9c0c9f0b1a9f9098c96f310 (diff) | |
download | u-boot-395041b2fd2f1cb2c84127acb18d87c27c29448c.zip u-boot-395041b2fd2f1cb2c84127acb18d87c27c29448c.tar.gz u-boot-395041b2fd2f1cb2c84127acb18d87c27c29448c.tar.bz2 |
test: log functions with CONFIG_LOG=n
If CONFIG_LOG=n, we still expect output for log_err(), log_warning(),
log_notice(), log_info() and in case of DEBUG=1 also for log_debug().
Provide unit tests verifying this.
The tests depend on:
CONFIG_CONSOLE_RECORD=y
CONFIG_LOG=n
CONFIG_UT_LOG=y
It may be necessary to increase the value of CONFIG_SYS_MALLOC_F_LEN to
accommodate CONFIG_CONSOLE_RECORD=y.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/Kconfig')
-rw-r--r-- | test/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Kconfig b/test/Kconfig index 0157e0b..28704a2 100644 --- a/test/Kconfig +++ b/test/Kconfig @@ -40,6 +40,15 @@ config UT_LIB_RSA endif +config UT_LOG + bool "Unit tests for logging functions" + depends on UNIT_TEST + default y + help + Enables the 'ut log' command which tests logging functions like + log_err(). + See also CONFIG_LOG_TEST which provides the 'log test' command. + config UT_TIME bool "Unit tests for time functions" depends on UNIT_TEST |