Skip to content

Commit

Permalink
tests: secure_storage: add dependencies
Browse files Browse the repository at this point in the history
Now that `SECURE_STORAGE` does not `select` dependencies, they need to
be enabled explicitly by the tests.

Signed-off-by: Jordan Yates <[email protected]>
  • Loading branch information
JordanYates committed Feb 25, 2025
1 parent 04aefb4 commit 967818f
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 3 deletions.
6 changes: 6 additions & 0 deletions samples/psa/its/overlay-secure_storage.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ CONFIG_MBEDTLS_PSA_CRYPTO_C=y
CONFIG_MAIN_STACK_SIZE=3072

CONFIG_SECURE_STORAGE=y
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_NVS=y
CONFIG_NVS=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
6 changes: 6 additions & 0 deletions samples/psa/persistent_key/overlay-secure_storage.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ CONFIG_MBEDTLS_PSA_CRYPTO_C=y
CONFIG_MAIN_STACK_SIZE=3072

CONFIG_SECURE_STORAGE=y
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_NVS=y
CONFIG_NVS=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ CONFIG_MBEDTLS_PSA_CRYPTO_C=y
CONFIG_SECURE_STORAGE=y
# For testing isolation between the different callers of the ITS.
CONFIG_SECURE_STORAGE_PS_IMPLEMENTATION_ITS=y
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_NVS=y
CONFIG_NVS=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_NVS=y
CONFIG_NVS=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y

# 256 - flags (1) - CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD (28)
CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE=227
Expand Down
3 changes: 3 additions & 0 deletions tests/subsys/secure_storage/psa/its/overlay-store_zms.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS=y
CONFIG_ZMS=y
CONFIG_FLASH=y
6 changes: 3 additions & 3 deletions tests/subsys/secure_storage/psa/its/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ tests:
- nrf9161dk/nrf9161
extra_args:
- EXTRA_DTC_OVERLAY_FILE=zms.overlay
- EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-transform_default.conf
- EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-store_zms.conf;overlay-transform_default.conf

secure_storage.psa.its.secure_storage.store.settings:
filter: CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS
extra_args: "EXTRA_CONF_FILE=\
overlay-secure_storage.conf;overlay-transform_default.conf;overlay-store_default.conf"
overlay-secure_storage.conf;overlay-transform_default.conf;overlay-store_settings.conf"

secure_storage.psa.its.secure_storage.custom.transform:
filter: CONFIG_SECURE_STORAGE and not CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE
extra_args: "EXTRA_CONF_FILE=\
overlay-secure_storage.conf;overlay-transform_custom.conf;overlay-store_default.conf"
overlay-secure_storage.conf;overlay-transform_custom.conf;overlay-store_settings.conf"

secure_storage.psa.its.secure_storage.custom.store:
filter: CONFIG_SECURE_STORAGE
Expand Down

0 comments on commit 967818f

Please sign in to comment.