tests: boards: neorv32: add build_all test for the NEORV32
Add a dedicated "build_all" test for the NEORV32 and its peripheral drivers. These drivers depend on the NEORV32 SYSINFO (syscon) and thus cannot easily be built for non-NEORV32 board targets. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
parent
33e06e1ed1
commit
5b63242e75
@ -2760,8 +2760,11 @@ NEORV32 platform:
|
||||
- drivers/*/*neorv32*
|
||||
- dts/bindings/*/*neorv32*
|
||||
- soc/neorv32/
|
||||
- tests/boards/neorv32/
|
||||
labels:
|
||||
- "platform: NEORV32"
|
||||
tests:
|
||||
- boards.neorv32
|
||||
|
||||
OSDP:
|
||||
status: maintained
|
||||
|
||||
11
tests/boards/neorv32/build_all/CMakeLists.txt
Normal file
11
tests/boards/neorv32/build_all/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (c) 2025 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(build_all_neorv32)
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE ${app_sources})
|
||||
24
tests/boards/neorv32/build_all/app.overlay
Normal file
24
tests/boards/neorv32/build_all/app.overlay
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2025 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
ngpios = <32>;
|
||||
};
|
||||
|
||||
&trng {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
current-speed = <19200>;
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
};
|
||||
9
tests/boards/neorv32/build_all/prj.conf
Normal file
9
tests/boards/neorv32/build_all/prj.conf
Normal file
@ -0,0 +1,9 @@
|
||||
CONFIG_TEST=y
|
||||
CONFIG_TEST_USERSPACE=y
|
||||
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_ENTROPY_GENERATOR=y
|
||||
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_UART_USE_RUNTIME_CONFIGURE=y
|
||||
10
tests/boards/neorv32/build_all/src/main.c
Normal file
10
tests/boards/neorv32/build_all/src/main.c
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (c) 2025 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
11
tests/boards/neorv32/build_all/testcase.yaml
Normal file
11
tests/boards/neorv32/build_all/testcase.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
tests:
|
||||
boards.neorv32.build_all:
|
||||
build_only: true
|
||||
tags:
|
||||
- drivers
|
||||
- entropy
|
||||
- gpio
|
||||
- uart
|
||||
platform_allow: neorv32/neorv32/minimalboot
|
||||
integration_platforms:
|
||||
- neorv32/neorv32/minimalboot
|
||||
Loading…
Reference in New Issue
Block a user