diff --git a/tests/subsys/shell/modules/kernel_service/CMakeLists.txt b/tests/subsys/shell/modules/kernel_service/CMakeLists.txt new file mode 100644 index 000000000000000..1c86ba32f2581e1 --- /dev/null +++ b/tests/subsys/shell/modules/kernel_service/CMakeLists.txt @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: Apache-2.0 + +cmake_minimum_required(VERSION 3.20.0) +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(kernel_service) + +FILE(GLOB app_sources src/*.c) +target_sources(app PRIVATE ${app_sources}) diff --git a/tests/subsys/shell/modules/kernel_service/prj.conf b/tests/subsys/shell/modules/kernel_service/prj.conf new file mode 100644 index 000000000000000..5f9f6f985c301a4 --- /dev/null +++ b/tests/subsys/shell/modules/kernel_service/prj.conf @@ -0,0 +1,16 @@ +CONFIG_TEST=y + +CONFIG_SHELL=y + +CONFIG_REBOOT=y +CONFIG_INIT_STACKS=y +CONFIG_THREAD_MONITOR=y +CONFIG_THREAD_NAME=y +CONFIG_THREAD_STACK_INFO=y + +CONFIG_HEAP_MEM_POOL_SIZE=64 +CONFIG_SYS_HEAP_RUNTIME_STATS=y + +CONFIG_LOG=y +CONFIG_LOG_MODE_DEFERRED=y +CONFIG_LOG_RUNTIME_FILTERING=y diff --git a/tests/subsys/shell/modules/kernel_service/src/main.c b/tests/subsys/shell/modules/kernel_service/src/main.c new file mode 100644 index 000000000000000..90b910a77994011 --- /dev/null +++ b/tests/subsys/shell/modules/kernel_service/src/main.c @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2012-2014 Wind River Systems, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +int main(void) +{ + return 0; +} diff --git a/tests/subsys/shell/modules/kernel_service/testcase.yaml b/tests/subsys/shell/modules/kernel_service/testcase.yaml new file mode 100644 index 000000000000000..e78224f477d47ee --- /dev/null +++ b/tests/subsys/shell/modules/kernel_service/testcase.yaml @@ -0,0 +1,11 @@ +common: + tags: shell + build_only: true + +tests: + shell.modules.kernel_service.all: + platform_allow: + - qemu_riscv64/qemu_virt_riscv64/smp + extra_configs: + - CONFIG_SCHED_CPU_MASK=y + - CONFIG_ARCH_STACKWALK=y