From 561ee1259759c7701fff852198263e9bd0a890bf Mon Sep 17 00:00:00 2001 From: Tomi Fontanilles Date: Mon, 30 Dec 2024 16:02:52 +0200 Subject: [PATCH] tests: secure_storage: speed up `psa.its.secure_storage.custom.transform` 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 https://github.com/zephyrproject-rtos/zephyr/issues/83210. Signed-off-by: Tomi Fontanilles --- ...store_settings.conf => overlay-store_default.conf} | 0 tests/subsys/secure_storage/psa/its/testcase.yaml | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) rename tests/subsys/secure_storage/psa/its/{overlay-store_settings.conf => overlay-store_default.conf} (100%) diff --git a/tests/subsys/secure_storage/psa/its/overlay-store_settings.conf b/tests/subsys/secure_storage/psa/its/overlay-store_default.conf similarity index 100% rename from tests/subsys/secure_storage/psa/its/overlay-store_settings.conf rename to tests/subsys/secure_storage/psa/its/overlay-store_default.conf diff --git a/tests/subsys/secure_storage/psa/its/testcase.yaml b/tests/subsys/secure_storage/psa/its/testcase.yaml index 0bda458a138c..bf72516e4b24 100644 --- a/tests/subsys/secure_storage/psa/its/testcase.yaml +++ b/tests/subsys/secure_storage/psa/its/testcase.yaml @@ -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: @@ -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