summaryrefslogtreecommitdiff
path: root/test/log/Makefile
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-02-26 23:48:18 +0300
committerSimon Glass <sjg@chromium.org>2020-04-16 17:07:58 +0300
commit395041b2fd2f1cb2c84127acb18d87c27c29448c (patch)
tree93e1c35b964d198a60ab31ec41bec1c5743c1a7f /test/log/Makefile
parent20fd256deb055479c9c0c9f0b1a9f9098c96f310 (diff)
downloadu-boot-395041b2fd2f1cb2c84127acb18d87c27c29448c.tar.xz
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/log/Makefile')
-rw-r--r--test/log/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/log/Makefile b/test/log/Makefile
index e0d0a4745f..98178f5e2b 100644
--- a/test/log/Makefile
+++ b/test/log/Makefile
@@ -3,3 +3,13 @@
# Copyright (c) 2017 Google, Inc
obj-$(CONFIG_LOG_TEST) += log_test.o
+
+ifdef CONFIG_UT_LOG
+
+obj-y += test-main.o
+
+ifndef CONFIG_LOG
+obj-$(CONFIG_CONSOLE_RECORD) += nolog_test.o
+endif
+
+endif # CONFIG_UT_LOG