Skip to content

Commit f86c321

Browse files
committed
[nrf fromlist] secure_storage: improve tests' compatibility in TF-M-enabled scenarios
Explicitly set the TF-M profile to not rely on the build system defaults which might differ. Signed-off-by: Tomi Fontanilles <[email protected]> (cherry picked from commit 6e055a26c347ceba5804ef7f22aa490305d8b217) Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 97afba9 commit f86c321

File tree

7 files changed

+15
-3
lines changed

7 files changed

+15
-3
lines changed

samples/psa/its/overlay-tfm.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y

samples/psa/its/sample.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ common:
1313
tests:
1414
sample.psa.its.tfm:
1515
filter: CONFIG_BUILD_WITH_TFM
16+
extra_args: EXTRA_CONF_FILE=overlay-tfm.conf
1617
tags:
1718
- trusted-firmware-m
1819
sample.psa.its.secure_storage.entropy_driver:
@@ -25,7 +26,7 @@ tests:
2526
sample.psa.its.secure_storage.entropy_not_secure:
2627
filter: CONFIG_SECURE_STORAGE and not CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE
2728
and not CONFIG_ENTROPY_HAS_DRIVER
28-
extra_args: EXTRA_CONF_FILE="overlay-secure_storage.conf;overlay-entropy_not_secure.conf"
29+
extra_args: EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-entropy_not_secure.conf
2930
tags:
3031
- random
3132
- settings
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y

samples/psa/persistent_key/sample.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ common:
1313
tests:
1414
sample.psa.persistent_key.tfm:
1515
filter: CONFIG_BUILD_WITH_TFM
16+
extra_args: EXTRA_CONF_FILE=overlay-tfm.conf
1617
tags:
1718
- trusted-firmware-m
1819
sample.psa.persistent_key.secure_storage.entropy_driver:
@@ -25,7 +26,7 @@ tests:
2526
sample.psa.persistent_key.secure_storage.entropy_not_secure:
2627
filter: CONFIG_SECURE_STORAGE and not CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE
2728
and not CONFIG_ENTROPY_HAS_DRIVER
28-
extra_args: EXTRA_CONF_FILE="overlay-secure_storage.conf;overlay-entropy_not_secure.conf"
29+
extra_args: EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-entropy_not_secure.conf
2930
tags:
3031
- random
3132
- settings
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y

tests/subsys/secure_storage/psa/crypto/testcase.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tests:
99
- native_sim
1010
- nrf54l15dk/nrf54l15/cpuapp
1111
secure_storage.psa.crypto.tfm:
12-
filter: CONFIG_BUILD_WITH_TFM and not CONFIG_TFM_PROFILE_TYPE_SMALL
12+
filter: CONFIG_BUILD_WITH_TFM
13+
extra_args: EXTRA_CONF_FILE=overlay-tfm.conf
1314
integration_platforms:
1415
- nrf9151dk/nrf9151/ns
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
2+
13
CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y
24
CONFIG_TFM_ITS_MAX_ASSET_SIZE=256

0 commit comments

Comments
 (0)