Skip to content

Commit 9afab27

Browse files
tomchydegjorva
authored andcommitted
tests: Add cases for copying MFST_VAR
Add tests that verify if copying content between manifest variables is possible. Ref: NCSDK-30807 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 6be3afe commit 9afab27

File tree

6 files changed

+412
-16
lines changed

6 files changed

+412
-16
lines changed

tests/subsys/suit/copy/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ zephyr_library_link_libraries(suit)
1515
zephyr_library_link_libraries(suit_platform_interface)
1616
zephyr_library_link_libraries(suit_memptr_storage_interface)
1717
zephyr_library_link_libraries(suit_sink_selector_interface)
18+
zephyr_library_link_libraries(suit_storage_interface)
19+
zephyr_library_link_libraries(suit_manifest_variables)

tests/subsys/suit/copy/boards/native_sim.overlay

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
#address-cells = <1>;
1111
#size-cells = <1>;
1212

13-
/* Use the last 8KB of NVM as dfu_partition. */
14-
dfu_partition: partition@fe000 {
15-
reg = <0xfe000 DT_SIZE_K(8)>;
13+
/* Use 8KB of NVM as dfu_partition. */
14+
dfu_partition: partition@f0000 {
15+
reg = <0xf0000 DT_SIZE_K(8)>;
16+
};
17+
18+
/* Use the last 48KB of NVM as suit storage. */
19+
suit_storage: partition@f4000 {
20+
reg = <0xf4000 DT_SIZE_K(48)>;
1621
};
1722
};
1823
};

tests/subsys/suit/copy/boards/native_sim_64.overlay

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
#address-cells = <1>;
1111
#size-cells = <1>;
1212

13-
/* Use the last 8KB of NVM as dfu_partition. */
14-
dfu_partition: partition@fe000 {
15-
reg = <0xfe000 DT_SIZE_K(8)>;
13+
/* Use 8KB of NVM as dfu_partition. */
14+
dfu_partition: partition@f0000 {
15+
reg = <0xf0000 DT_SIZE_K(8)>;
16+
};
17+
18+
/* Use the last 48KB of NVM as suit storage. */
19+
suit_storage: partition@f4000 {
20+
reg = <0xf4000 DT_SIZE_K(48)>;
1621
};
1722
};
1823
};

tests/subsys/suit/copy/boards/nrf52840dk_nrf52840.overlay

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
#address-cells = <1>;
1111
#size-cells = <1>;
1212

13-
/* Use the last 8KB of NVM as dfu_partition. */
14-
dfu_partition: partition@fe000 {
15-
reg = <0xfe000 DT_SIZE_K(8)>;
13+
/* Use 8KB of NVM as dfu_partition. */
14+
dfu_partition: partition@f0000 {
15+
reg = <0xf0000 DT_SIZE_K(8)>;
16+
};
17+
18+
/* Use the last 48KB of NVM as suit storage. */
19+
suit_storage: partition@f4000 {
20+
reg = <0xf4000 DT_SIZE_K(48)>;
1621
};
1722
};
1823
};

tests/subsys/suit/copy/prj.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ CONFIG_SUIT_STREAM_SINK_MEMPTR=y
1919

2020
CONFIG_SUIT_UTILS=y
2121
CONFIG_SUIT_MEMPTR_STORAGE=y
22+
CONFIG_SUIT_MANIFEST_VARIABLES=y
23+
CONFIG_SUIT_AUTHENTICATE=y
24+
CONFIG_SUIT_CRYPTO=y
25+
CONFIG_SUIT_PLAT_CHECK_COMPONENT_COMPATIBILITY=y
26+
CONFIG_SUIT_MCI=y
27+
CONFIG_SUIT_EXECUTION_MODE=y
28+
CONFIG_SUIT_STORAGE=y
2229

2330
CONFIG_ZCBOR=y
2431
CONFIG_ZCBOR_CANONICAL=y

0 commit comments

Comments
 (0)