Skip to content

Commit ebd1854

Browse files
committed
tests: drivers: flash: common: add SDP MSPI flash common test configuration
Add local copy of test configuration to enable SDP MSPI flash common test. Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
1 parent cb8f86c commit ebd1854

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@
831831
/tests/crypto/ @stephen-nordic @magnev
832832
/tests/drivers/audio/pdm_loopback/ @nrfconnect/ncs-low-level-test
833833
/tests/drivers/gpio/ @nrfconnect/ncs-low-level-test @nrfconnect/ncs-ll-ursus
834+
/tests/drivers/flash/common/ @nrfconnect/ncs-low-level-test @nrfconnect/ncs-ll-ursus
834835
/tests/drivers/flash/flash_ipuc/ @nrfconnect/ncs-charon
835836
/tests/drivers/flash/flash_rpc/ @nrfconnect/ncs-pluto
836837
/tests/drivers/flash_patch/ @nrfconnect/ncs-pluto
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(nrf_qspi_nor)
6+
7+
FILE(GLOB app_sources ${ZEPHYR_BASE}/tests/drivers/flash/common/src/*.c)
8+
target_sources(app PRIVATE ${app_sources})
9+
target_compile_definitions(app PUBLIC "TEST_AREA_OFFSET=0x00")

tests/drivers/flash/common/Kconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2024, Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Device/scenario dependent information that is not available in
5+
# other ways.
6+
7+
config TEST_DRIVER_FLASH_SIZE
8+
int "Size of flash device under test"
9+
default -1
10+
help
11+
Expected flash device size the test will validate against. If the flash driver does not
12+
support the get_size() API, leave this set as -1 to skip the test.
13+
14+
source "Kconfig.zephyr"

tests/drivers/flash/common/prj.conf

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CONFIG_TEST=y
2+
CONFIG_ZTEST=y
3+
CONFIG_FLASH=y
4+
CONFIG_FLASH_PAGE_LAYOUT=y
5+
CONFIG_MAIN_STACK_SIZE=2048
6+
CONFIG_ZTEST_STACK_SIZE=4096
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
common:
2+
tags:
3+
- drivers
4+
- flash
5+
tests:
6+
drivers.flash.common.sdp:
7+
platform_allow:
8+
- nrf54l15dk/nrf54l15/cpuapp
9+
integration_platforms:
10+
- nrf54l15dk/nrf54l15/cpuapp
11+
extra_args:
12+
- SB_CONFIG_VPR_LAUNCHER=n
13+
- SB_CONFIG_PARTITION_MANAGER=n
14+
- SB_CONFIG_SDP=y
15+
- SB_CONFIG_SDP_MSPI=y

0 commit comments

Comments
 (0)