test: log functions with CONFIG_LOG=n
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 26 Feb 2020 20:48:18 +0000 (21:48 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Apr 2020 14:07:58 +0000 (08:07 -0600)
commit395041b2fd2f1cb2c84127acb18d87c27c29448c
tree93e1c35b964d198a60ab31ec41bec1c5743c1a7f
parent20fd256deb055479c9c0c9f0b1a9f9098c96f310
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>
MAINTAINERS
include/test/log.h [new file with mode: 0644]
include/test/suites.h
test/Kconfig
test/Makefile
test/cmd_ut.c
test/log/Makefile
test/log/nolog_test.c [new file with mode: 0644]
test/log/test-main.c [new file with mode: 0644]