Skip to content

Commit 016b10e

Browse files
tomchydegjorva
authored andcommitted
tests: Add test cases for writing MFST_VAR
Add tests that verify if writing content into manifest variables is possible. Ref: NCSDK-30807 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 91f47da commit 016b10e

File tree

6 files changed

+360
-25
lines changed

6 files changed

+360
-25
lines changed

tests/subsys/suit/write/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ 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)
1818
zephyr_library_link_libraries(suit_memory_layout_interface)
19+
zephyr_library_link_libraries(suit_storage_interface)
20+
zephyr_library_link_libraries(suit_manifest_variables)

tests/subsys/suit/write/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/write/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/write/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/write/prj.conf

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

2121
CONFIG_SUIT_UTILS=y
2222
CONFIG_SUIT_MEMPTR_STORAGE=y
23+
CONFIG_SUIT_MANIFEST_VARIABLES=y
24+
CONFIG_SUIT_AUTHENTICATE=y
25+
CONFIG_SUIT_CRYPTO=y
26+
CONFIG_SUIT_PLAT_CHECK_COMPONENT_COMPATIBILITY=y
27+
CONFIG_SUIT_MCI=y
28+
CONFIG_SUIT_EXECUTION_MODE=y
29+
CONFIG_SUIT_STORAGE=y
2330

2431
CONFIG_ZCBOR=y
2532
CONFIG_ZCBOR_CANONICAL=y

0 commit comments

Comments
 (0)