Skip to content

Commit

Permalink
tests: secure_storage: speed up `psa.its.secure_storage.custom.transf…
Browse files Browse the repository at this point in the history
…orm`

It would time out when run on-device due to the NVS setting backend being
incredibly slow once enough entries exist.

Also, rename the tests which use different store implementations to make
that explicit.

Fixes #83210.

Signed-off-by: Tomi Fontanilles <[email protected]>
  • Loading branch information
tomi-font authored and kartben committed Jan 7, 2025
1 parent a101a4c commit 561ee12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/subsys/secure_storage/psa/its/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ common:
tags:
- psa.secure_storage
tests:
secure_storage.psa.its.secure_storage.zms:
secure_storage.psa.its.secure_storage.store.zms:
filter: CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS
# DT-based filtering is not possible for this test scenario.
# Platforms with a storage_partition must be manually added here.
platform_allow:
Expand All @@ -25,16 +26,16 @@ tests:
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:
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_settings.conf"
overlay-secure_storage.conf;overlay-transform_default.conf;overlay-store_default.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
extra_args: "EXTRA_CONF_FILE=\
overlay-secure_storage.conf;overlay-transform_custom.conf;overlay-store_default.conf"

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

0 comments on commit 561ee12

Please sign in to comment.