Skip to content

Commit

Permalink
tests: logging: Add test for log_msg2
Browse files Browse the repository at this point in the history
Added suite for log_msg2 macros.

Signed-off-by: Krzysztof Chruscinski <[email protected]>
  • Loading branch information
nordic-krch authored and nashif committed Apr 19, 2021
1 parent f1bb20f commit d2f6214
Show file tree
Hide file tree
Showing 4 changed files with 669 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/subsys/logging/log_msg2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(log_msg2)

FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
14 changes: 14 additions & 0 deletions tests/subsys/logging/log_msg2/prj.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CONFIG_MAIN_THREAD_PRIORITY=5
CONFIG_ZTEST=y
CONFIG_TEST_LOGGING_DEFAULTS=n
CONFIG_LOG=y
CONFIG_LOG2_MODE_DEFERRED=y
CONFIG_LOG_PRINTK=n
CONFIG_LOG_SPEED=y
CONFIG_LOG_BUFFER_SIZE=1024
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_CBPRINTF_LIBC_SUBSTS=y
CONFIG_ZTEST_STACKSIZE=4096
CONFIG_LOG_PROCESS_THREAD=n

CONFIG_MPSC_CLEAR_ALLOCATED=y
Loading

0 comments on commit d2f6214

Please sign in to comment.