Skip to content

Commit e551797

Browse files
committed
app: tests: Use DTS instead of PM
Unit test changes for DTS usage. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
1 parent 45b55c5 commit e551797

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

app/tests/at_commands/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ set(includes
8080
"${PROJECT_SOURCE_DIR}/../stubs"
8181
)
8282
83-
target_include_directories(app PRIVATE ${includes})
83+
target_include_directories(app BEFORE PRIVATE ${includes})
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#ifndef ZEPHYR_STORAGE_FLASH_MAP_H__
8+
#define ZEPHYR_STORAGE_FLASH_MAP_H__
9+
10+
/* Test stub: both MCUboot slots exist. */
11+
#define FIXED_PARTITION_EXISTS(label) 1
12+
13+
/* Addresses are ignored by the TFM stubs, so any value is fine. */
14+
#define PARTITION_ADDRESS(label) 0
15+
16+
#endif /* ZEPHYR_STORAGE_FLASH_MAP_H__ */

0 commit comments

Comments
 (0)