-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suit: Split fetch tests into app and SDFW
Add tests that verify fetching into MEM component from both Application and SDFW contexts. Add smoke tests for IPUCs as MEM driver as well as cache backend. Ref: NCSDK-30809 Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
- Loading branch information
Showing
12 changed files
with
952 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/subsys/suit/fetch/boards/nrf54h20dk_nrf54h20_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Copyright (c) 2025 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_NULL_POINTER_EXCEPTION_DETECTION_NONE=y | ||
CONFIG_SERIAL=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
|
||
#Logging and printk is using standard UART. | ||
CONFIG_LOG_MODE_DEFERRED=y | ||
CONFIG_LOG_BACKEND_UART=y | ||
CONFIG_LOG_PRINTK=y | ||
CONFIG_LOG_BUFFER_SIZE=8192 |
38 changes: 38 additions & 0 deletions
38
tests/subsys/suit/fetch/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/* Split DFU partition into a smaller one and DFU caches. */ | ||
/delete-node/ &dfu_partition; | ||
|
||
&mram1x { | ||
erase-block-size = < 0x10 >; | ||
/* Hardcoded inside the soc_flash_nrf_mram.c (MRAM_WORD_SIZE) */ | ||
write-block-size = < 0x10 >; | ||
|
||
cpuapp_rw_partitions: cpuapp-rw-partitions { | ||
compatible = "nordic,owned-partitions", "fixed-partitions"; | ||
status = "okay"; | ||
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RW>; | ||
#address-cells = < 0x1 >; | ||
#size-cells = < 0x1 >; | ||
|
||
dfu_partition: partition@19d000 { | ||
reg = < 0x19d000 DT_SIZE_K(1) >; | ||
}; | ||
|
||
dfu_cache_partition_1: partition@19d400 { | ||
reg = <0x19d400 DT_SIZE_K(1)>; | ||
}; | ||
|
||
dfu_cache_partition_3: partition@19d800 { | ||
reg = <0x19d800 DT_SIZE_K(1)>; | ||
}; | ||
|
||
__mpc_override_align: partition@19dc00 { | ||
reg = <0x19dc00 DT_SIZE_K(1)>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
#ifndef MOCK_SUIT_IPUC_H__ | ||
#define MOCK_SUIT_IPUC_H__ | ||
|
||
#include <suit_ipuc.h> | ||
#include <zephyr/fff.h> | ||
|
||
DEFINE_FFF_GLOBALS; | ||
|
||
FAKE_VALUE_FUNC(int, suit_ipuc_get_count, size_t *); | ||
FAKE_VALUE_FUNC(int, suit_ipuc_get_info, size_t, struct zcbor_string *, suit_manifest_role_t *); | ||
FAKE_VALUE_FUNC(int, suit_ipuc_write_setup, struct zcbor_string *, struct zcbor_string *, | ||
struct zcbor_string *); | ||
FAKE_VALUE_FUNC(int, suit_ipuc_write, struct zcbor_string *, size_t, uintptr_t, size_t, bool); | ||
|
||
static inline void mock_suit_ipuc_reset(void) | ||
{ | ||
RESET_FAKE(suit_ipuc_get_count); | ||
RESET_FAKE(suit_ipuc_get_info); | ||
RESET_FAKE(suit_ipuc_write_setup); | ||
RESET_FAKE(suit_ipuc_write); | ||
} | ||
|
||
#endif /* MOCK_SUIT_IPUC_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.