Skip to content

Commit 5873cad

Browse files
committed
tests: boards: nrf: Add test for MVDMA driver
Add test suite for MVDMA driver. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 0ce9050 commit 5873cad

File tree

7 files changed

+876
-0
lines changed

7 files changed

+876
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
project(nrf_mvdma_api)
7+
8+
target_sources(app PRIVATE
9+
src/main.c
10+
)

tests/boards/nrf/mvdma/Kconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config STRESS_TEST_REPS
5+
int "Number of loops in the stress test"
6+
# For the simulated devices, which are run by default in CI, we set it to less to not spend too
7+
# much CI time
8+
default 500 if SOC_SERIES_BSIM_NRFXX
9+
default 10000
10+
help
11+
For how many loops will the stress test run. The higher this number the longer the
12+
test and therefore the higher likelihood an unlikely race/event will be triggered.
13+
14+
# Include Zephyr's Kconfig
15+
source "Kconfig"

tests/boards/nrf/mvdma/README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. SPDX-License-Identifier: Apache-2.0
2+
3+
The purpose of this test is to validate custom nRF MVDMA driver.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_PM=y
2+
CONFIG_PM_S2RAM=y
3+
CONFIG_PM_S2RAM_CUSTOM_MARKING=y

tests/boards/nrf/mvdma/prj.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
CONFIG_ZTEST=y
2+
CONFIG_KERNEL_MEM_POOL=y
3+
CONFIG_HEAP_MEM_POOL_SIZE=1024
4+
5+
# Float printing
6+
CONFIG_REQUIRES_FLOAT_PRINTF=y
7+
CONFIG_TEST_EXTRA_STACK_SIZE=2048
8+
CONFIG_MRAM_LATENCY=y
9+
CONFIG_MRAM_LATENCY_AUTO_REQ=y
10+
11+
CONFIG_ASSERT=n
12+
CONFIG_SPIN_VALIDATE=n
13+
14+
CONFIG_PM=y
15+
CONFIG_PM_S2RAM=y
16+
CONFIG_POWEROFF=y

0 commit comments

Comments
 (0)