Skip to content

Commit

Permalink
tests: Add cases for copying MFST_VAR
Browse files Browse the repository at this point in the history
Add tests that verify if copying content between manifest variables is
possible.

Ref: NCSDK-30807

Signed-off-by: Tomasz Chyrowicz <[email protected]>
  • Loading branch information
tomchy committed Jan 7, 2025
1 parent db6924c commit a222e45
Show file tree
Hide file tree
Showing 6 changed files with 412 additions and 16 deletions.
2 changes: 2 additions & 0 deletions tests/subsys/suit/copy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ zephyr_library_link_libraries(suit)
zephyr_library_link_libraries(suit_platform_interface)
zephyr_library_link_libraries(suit_memptr_storage_interface)
zephyr_library_link_libraries(suit_sink_selector_interface)
zephyr_library_link_libraries(suit_storage_interface)
zephyr_library_link_libraries(suit_manifest_variables)
11 changes: 8 additions & 3 deletions tests/subsys/suit/copy/boards/native_sim.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
#address-cells = <1>;
#size-cells = <1>;

/* Use the last 8KB of NVM as dfu_partition. */
dfu_partition: partition@fe000 {
reg = <0xfe000 DT_SIZE_K(8)>;
/* Use 8KB of NVM as dfu_partition. */
dfu_partition: partition@f0000 {
reg = <0xf0000 DT_SIZE_K(8)>;
};

/* Use the last 48KB of NVM as suit storage. */
suit_storage: partition@f4000 {
reg = <0xf4000 DT_SIZE_K(48)>;
};
};
};
Expand Down
11 changes: 8 additions & 3 deletions tests/subsys/suit/copy/boards/native_sim_64.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
#address-cells = <1>;
#size-cells = <1>;

/* Use the last 8KB of NVM as dfu_partition. */
dfu_partition: partition@fe000 {
reg = <0xfe000 DT_SIZE_K(8)>;
/* Use 8KB of NVM as dfu_partition. */
dfu_partition: partition@f0000 {
reg = <0xf0000 DT_SIZE_K(8)>;
};

/* Use the last 48KB of NVM as suit storage. */
suit_storage: partition@f4000 {
reg = <0xf4000 DT_SIZE_K(48)>;
};
};
};
Expand Down
11 changes: 8 additions & 3 deletions tests/subsys/suit/copy/boards/nrf52840dk_nrf52840.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
#address-cells = <1>;
#size-cells = <1>;

/* Use the last 8KB of NVM as dfu_partition. */
dfu_partition: partition@fe000 {
reg = <0xfe000 DT_SIZE_K(8)>;
/* Use 8KB of NVM as dfu_partition. */
dfu_partition: partition@f0000 {
reg = <0xf0000 DT_SIZE_K(8)>;
};

/* Use the last 48KB of NVM as suit storage. */
suit_storage: partition@f4000 {
reg = <0xf4000 DT_SIZE_K(48)>;
};
};
};
7 changes: 7 additions & 0 deletions tests/subsys/suit/copy/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ CONFIG_SUIT_STREAM_SINK_MEMPTR=y

CONFIG_SUIT_UTILS=y
CONFIG_SUIT_MEMPTR_STORAGE=y
CONFIG_SUIT_MANIFEST_VARIABLES=y
CONFIG_SUIT_AUTHENTICATE=y
CONFIG_SUIT_CRYPTO=y
CONFIG_SUIT_PLAT_CHECK_COMPONENT_COMPATIBILITY=y
CONFIG_SUIT_MCI=y
CONFIG_SUIT_EXECUTION_MODE=y
CONFIG_SUIT_STORAGE=y

CONFIG_ZCBOR=y
CONFIG_ZCBOR_CANONICAL=y
Expand Down
Loading

0 comments on commit a222e45

Please sign in to comment.