tests: secure_storage: psa: its: add a test for the ZMS ITS store module

Add a test scenario for the ITS store module implementation that uses
ZMS for storage.
Reorganize the others at the same time.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
This commit is contained in:
Tomi Fontanilles 2024-11-12 13:29:01 +02:00 committed by Fabio Baltieri
parent 0ea6f352e7
commit 7ace449109
7 changed files with 37 additions and 26 deletions

View file

@ -1,2 +0,0 @@
# Limit the space available for the maximum entry test to not take too long.
CONFIG_SETTINGS_NVS_SECTOR_COUNT=2

View file

@ -0,0 +1,7 @@
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS=y
# 256 - flags (1) - CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD (28)
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=227
# Limit the space available for the maximum entry test to not take too long with NVS.
CONFIG_SETTINGS_NVS_SECTOR_COUNT=2

View file

@ -1,5 +1,4 @@
CONFIG_SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION_CUSTOM=y CONFIG_SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION_CUSTOM=y
CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD=0 CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD=0
# SETTINGS_MAX_VAL_LEN (256) - flags (1) CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=500
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=255

View file

@ -5,5 +5,4 @@ CONFIG_TIMER_RANDOM_GENERATOR=y
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=2048 CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=2048
CONFIG_MBEDTLS_PSA_CRYPTO_C=y CONFIG_MBEDTLS_PSA_CRYPTO_C=y
# SETTINGS_MAX_VAL_LEN (256) - flags (1) - CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD (28) CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=300
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=227

View file

@ -1,42 +1,45 @@
common: common:
integration_platforms: integration_platforms:
- native_sim - native_sim
- nrf54l15dk/nrf54l15/cpuapp
platform_exclude: platform_exclude:
- qemu_cortex_m0 # settings subsystem initialization fails - qemu_cortex_m0 # settings subsystem initialization fails
timeout: 600 timeout: 600
tags: tags:
- psa.secure_storage - psa.secure_storage
tests: tests:
secure_storage.psa.its.secure_storage: secure_storage.psa.its.secure_storage.zms:
filter: CONFIG_SECURE_STORAGE and not CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE # DT-based filtering is not possible for this test scenario.
# Platforms with a storage_partition must be manually added here.
platform_allow: native_sim mps2/an385 qemu_x86/atom qemu_x86_64/atom
nrf54l15dk/nrf54l15/cpuapp nrf5340dk/nrf5340/cpuapp nrf52840dk/nrf52840
nrf9151dk/nrf9151 nrf9160dk/nrf9160 nrf9161dk/nrf9161
extra_args:
- EXTRA_DTC_OVERLAY_FILE=zms.overlay
- EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-transform_default.conf
- CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS=y
secure_storage.psa.its.secure_storage.settings.nvs:
filter: CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS
extra_args: "EXTRA_CONF_FILE=\ extra_args: "EXTRA_CONF_FILE=\
overlay-secure_storage.conf;overlay-default_transform.conf;overlay-default_store.conf" overlay-secure_storage.conf;overlay-transform_default.conf;overlay-store_settings.conf"
integration_platforms:
- native_sim
- nrf54l15dk/nrf54l15/cpuapp
secure_storage.psa.its.secure_storage.custom.transform: secure_storage.psa.its.secure_storage.custom.transform:
filter: CONFIG_SECURE_STORAGE and not CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE filter: CONFIG_SECURE_STORAGE and not CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE
extra_args: "EXTRA_CONF_FILE=\ extra_args: EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-transform_custom.conf
overlay-secure_storage.conf;overlay-custom_transform.conf;overlay-default_store.conf"
integration_platforms:
- native_sim
- nrf54l15dk/nrf54l15/cpuapp
secure_storage.psa.its.secure_storage.custom.store: secure_storage.psa.its.secure_storage.custom.store:
filter: CONFIG_SECURE_STORAGE filter: CONFIG_SECURE_STORAGE
extra_args: "EXTRA_CONF_FILE=\ extra_args: "EXTRA_CONF_FILE=\
overlay-secure_storage.conf;overlay-default_transform.conf;overlay-custom_store.conf" overlay-secure_storage.conf;overlay-transform_default.conf;overlay-store_custom.conf"
integration_platforms:
- native_sim
- nrf54l15dk/nrf54l15/cpuapp
secure_storage.psa.its.secure_storage.custom.both: secure_storage.psa.its.secure_storage.custom.both:
filter: CONFIG_SECURE_STORAGE filter: CONFIG_SECURE_STORAGE
extra_args: "EXTRA_CONF_FILE=\ extra_args: "EXTRA_CONF_FILE=\
overlay-secure_storage.conf;overlay-custom_transform.conf;overlay-custom_store.conf" overlay-secure_storage.conf;overlay-transform_custom.conf;overlay-store_custom.conf"
integration_platforms:
- native_sim
- nrf54l15dk/nrf54l15/cpuapp
secure_storage.psa.its.tfm: secure_storage.psa.its.tfm:
filter: CONFIG_BUILD_WITH_TFM filter: CONFIG_BUILD_WITH_TFM
extra_args: EXTRA_CONF_FILE=overlay-tfm.conf
integration_platforms: integration_platforms:
- nrf9151dk/nrf9151/ns - nrf9151dk/nrf9151/ns
extra_args: EXTRA_CONF_FILE=overlay-tfm.conf

View file

@ -0,0 +1,5 @@
/ {
chosen {
secure_storage_its_partition = &storage_partition;
};
};