-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add build-only test for kernel_service
Add a build-only test for `kernel_services` module that builds every file. Signed-off-by: Yong Cong Sin <[email protected]> Signed-off-by: Yong Cong Sin <[email protected]>
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.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}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright (c) 2012-2014 Wind River Systems, Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
int main(void) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |