Skip to content

Commit 65266bd

Browse files
committed
tests: logging: Add test for log_msg2
Added suite for log_msg2 macros. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent f381ca8 commit 65266bd

File tree

4 files changed

+669
-0
lines changed

4 files changed

+669
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.13.1)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(log_msg2)
6+
7+
FILE(GLOB app_sources src/*.c)
8+
target_sources(app PRIVATE ${app_sources})
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CONFIG_MAIN_THREAD_PRIORITY=5
2+
CONFIG_ZTEST=y
3+
CONFIG_TEST_LOGGING_DEFAULTS=n
4+
CONFIG_LOG=y
5+
CONFIG_LOG2_MODE_DEFERRED=y
6+
CONFIG_LOG_PRINTK=n
7+
CONFIG_LOG_SPEED=y
8+
CONFIG_LOG_BUFFER_SIZE=1024
9+
CONFIG_CBPRINTF_FP_SUPPORT=y
10+
CONFIG_CBPRINTF_LIBC_SUBSTS=y
11+
CONFIG_ZTEST_STACKSIZE=4096
12+
CONFIG_LOG_PROCESS_THREAD=n
13+
14+
CONFIG_MPSC_CLEAR_ALLOCATED=y

0 commit comments

Comments
 (0)