Skip to content

Commit 7ace449

Browse files
tomi-fontfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 0ea6f35 commit 7ace449

File tree

7 files changed

+37
-26
lines changed

7 files changed

+37
-26
lines changed

tests/subsys/secure_storage/psa/its/overlay-default_store.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS=y
2+
3+
# 256 - flags (1) - CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD (28)
4+
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=227
5+
6+
# Limit the space available for the maximum entry test to not take too long with NVS.
7+
CONFIG_SETTINGS_NVS_SECTOR_COUNT=2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
CONFIG_SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION_CUSTOM=y
22
CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD=0
33

4-
# SETTINGS_MAX_VAL_LEN (256) - flags (1)
5-
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=255
4+
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=500

tests/subsys/secure_storage/psa/its/overlay-default_transform.conf renamed to tests/subsys/secure_storage/psa/its/overlay-transform_default.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ CONFIG_TIMER_RANDOM_GENERATOR=y
55
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=2048
66
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
77

8-
# SETTINGS_MAX_VAL_LEN (256) - flags (1) - CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD (28)
9-
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=227
8+
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=300
Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
common:
22
integration_platforms:
33
- native_sim
4+
- nrf54l15dk/nrf54l15/cpuapp
45
platform_exclude:
56
- qemu_cortex_m0 # settings subsystem initialization fails
67
timeout: 600
78
tags:
89
- psa.secure_storage
910
tests:
10-
secure_storage.psa.its.secure_storage:
11-
filter: CONFIG_SECURE_STORAGE and not CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE
11+
secure_storage.psa.its.secure_storage.zms:
12+
# DT-based filtering is not possible for this test scenario.
13+
# Platforms with a storage_partition must be manually added here.
14+
platform_allow: native_sim mps2/an385 qemu_x86/atom qemu_x86_64/atom
15+
nrf54l15dk/nrf54l15/cpuapp nrf5340dk/nrf5340/cpuapp nrf52840dk/nrf52840
16+
nrf9151dk/nrf9151 nrf9160dk/nrf9160 nrf9161dk/nrf9161
17+
extra_args:
18+
- EXTRA_DTC_OVERLAY_FILE=zms.overlay
19+
- EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-transform_default.conf
20+
- CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS=y
21+
22+
secure_storage.psa.its.secure_storage.settings.nvs:
23+
filter: CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS
1224
extra_args: "EXTRA_CONF_FILE=\
13-
overlay-secure_storage.conf;overlay-default_transform.conf;overlay-default_store.conf"
14-
integration_platforms:
15-
- native_sim
16-
- nrf54l15dk/nrf54l15/cpuapp
25+
overlay-secure_storage.conf;overlay-transform_default.conf;overlay-store_settings.conf"
26+
1727
secure_storage.psa.its.secure_storage.custom.transform:
1828
filter: CONFIG_SECURE_STORAGE and not CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE
19-
extra_args: "EXTRA_CONF_FILE=\
20-
overlay-secure_storage.conf;overlay-custom_transform.conf;overlay-default_store.conf"
21-
integration_platforms:
22-
- native_sim
23-
- nrf54l15dk/nrf54l15/cpuapp
29+
extra_args: EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-transform_custom.conf
30+
2431
secure_storage.psa.its.secure_storage.custom.store:
2532
filter: CONFIG_SECURE_STORAGE
2633
extra_args: "EXTRA_CONF_FILE=\
27-
overlay-secure_storage.conf;overlay-default_transform.conf;overlay-custom_store.conf"
28-
integration_platforms:
29-
- native_sim
30-
- nrf54l15dk/nrf54l15/cpuapp
34+
overlay-secure_storage.conf;overlay-transform_default.conf;overlay-store_custom.conf"
35+
3136
secure_storage.psa.its.secure_storage.custom.both:
3237
filter: CONFIG_SECURE_STORAGE
3338
extra_args: "EXTRA_CONF_FILE=\
34-
overlay-secure_storage.conf;overlay-custom_transform.conf;overlay-custom_store.conf"
35-
integration_platforms:
36-
- native_sim
37-
- nrf54l15dk/nrf54l15/cpuapp
39+
overlay-secure_storage.conf;overlay-transform_custom.conf;overlay-store_custom.conf"
40+
3841
secure_storage.psa.its.tfm:
3942
filter: CONFIG_BUILD_WITH_TFM
40-
extra_args: EXTRA_CONF_FILE=overlay-tfm.conf
4143
integration_platforms:
4244
- nrf9151dk/nrf9151/ns
45+
extra_args: EXTRA_CONF_FILE=overlay-tfm.conf
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/ {
2+
chosen {
3+
secure_storage_its_partition = &storage_partition;
4+
};
5+
};

0 commit comments

Comments
 (0)