Skip to content

Commit 3ecf5db

Browse files
jaz1-nordicPerMac
authored andcommitted
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 <[email protected]>
1 parent 05a1ca7 commit 3ecf5db

File tree

8 files changed

+45
-0
lines changed

8 files changed

+45
-0
lines changed

.github/test-spec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@
640640
- "tests/drivers/audio/**/*"
641641
- "tests/drivers/spi/**/*"
642642
- "tests/zephyr/drivers/i2c/**/*"
643+
- "tests/zephyr/drivers/flash/**/*"
643644
- "tests/drivers/uart/**/*"
644645
- "tests/zephyr/drivers/uart/**/*"
645646

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@
919919
/tests/tfm/ @nrfconnect/ncs-aegir @stephen-nordic @magnev
920920
/tests/unity/ @nordic-krch
921921
/tests/subsys/zigbee/ @nrfconnect/ncs-zigbee
922+
/tests/zephyr/drivers/flash/common/ @nrfconnect/ncs-low-level-test @nrfconnect/ncs-ll-ursus
922923
/tests/zephyr/drivers/i2c/i2c_bme688/ @nrfconnect/ncs-low-level-test
923924
/tests/zephyr/drivers/i2c/i2c_target_api/ @nrfconnect/ncs-low-level-test
924925
/tests/zephyr/drivers/spi/ @nrfconnect/ncs-low-level-test

scripts/ci/tags.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,7 @@ ci_tests_drivers_sdp:
13121312
- nrf/snippets/sdp/
13131313
- nrf/tests/drivers/gpio/egpio_basic_api/
13141314
- nrf/tests/drivers/sdp_asm/
1315+
- nrf/tests/zephyr/drivers/flash/
13151316
- zephyr/drivers/mbox/
13161317
- zephyr/subsys/ipc/ipc_service/
13171318
- nrf/samples/zephyr/basic/blinky/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
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})
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2024, Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
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"
Lines changed: 6 additions & 0 deletions
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
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SB_CONFIG_VPR_LAUNCHER=n
2+
SB_CONFIG_PARTITION_MANAGER=n
3+
SB_CONFIG_SDP=y
4+
SB_CONFIG_SDP_MSPI=y
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
common:
2+
tags:
3+
- drivers
4+
- flash
5+
tests:
6+
nrf.extended.drivers.flash.common.sdp:
7+
platform_allow:
8+
- nrf54l15dk/nrf54l15/cpuapp
9+
integration_platforms:
10+
- nrf54l15dk/nrf54l15/cpuapp

0 commit comments

Comments
 (0)