Skip to content

Commit fe9893e

Browse files
torsteingrindvikMaureenHelm
authored andcommitted
samples: tfm: Enumerate more test variants
Some TFM samples run different test suites/cases based on which configurations are set. Enumerate more of these. For samples/tfm_integration/tfm_psa_test, add the following new build configurations: * Add CONFIG_TFM_PSA_TEST_STORAGE * Add CONFIG_TFM_PSA_TEST_CRYPTO * Add CONFIG_TMF_PSA_TEST_INITIAL_ATTESTATION For samples/tfm_integration/tfm_regression_test, add this to all build configurations: * Add CONFIG_TFM_PARTITION_PROTECTED_STORAGE * Add CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE * Add CONFIG_TFM_PARTITION_CRYPTO * Add CONFIG_TFM_PARTITION_INITIAL_ATTESTATION * Add CONFIG_TFM_PARTITION_PLATFORM * Add CONFIG_TFM_PARTITION_AUDIT_LOG And build the above for CONFIG_TFM_IPC as well. Signed-off-by: Torstein Grindvik <[email protected]>
1 parent 4fd8d47 commit fe9893e

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

samples/tfm_integration/tfm_psa_test/sample.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ sample:
1313
name: "TFM PSA Test"
1414

1515
tests:
16-
sample.tfm.psa_protected_storage_test:
16+
sample.tfm.psa_test_protected_storage:
1717
extra_args: "CONFIG_TFM_PSA_TEST_PROTECTED_STORAGE=y"
1818
timeout: 120
19-
sample.tfm.psa_internal_trusted_storage_test:
19+
sample.tfm.psa_test_internal_trusted_storage:
2020
extra_args: "CONFIG_TFM_PSA_TEST_INTERNAL_TRUSTED_STORAGE=y"
21+
sample.tfm.psa_test_storage:
22+
extra_args: "CONFIG_TFM_PSA_TEST_STORAGE=y"
23+
sample.tfm.psa_test_crypto:
24+
extra_args: "CONFIG_TFM_PSA_TEST_CRYPTO=y"
25+
sample.tfm.psa_test_initial_attestation:
26+
extra_args: "CONFIG_TFM_PSA_TEST_INITIAL_ATTESTATION=y"

samples/tfm_integration/tfm_regression_test/prj.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ CONFIG_BUILD_WITH_TFM=y
88
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
99
CONFIG_TFM_REGRESSION_S=y
1010
CONFIG_TFM_REGRESSION_NS=y
11+
12+
# Regression tests are included if a related secure partition is enabled.
13+
CONFIG_TFM_PARTITION_PROTECTED_STORAGE=y
14+
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
15+
CONFIG_TFM_PARTITION_CRYPTO=y
16+
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=y
17+
CONFIG_TFM_PARTITION_PLATFORM=y
18+
CONFIG_TFM_PARTITION_AUDIT_LOG=y

samples/tfm_integration/tfm_regression_test/sample.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ sample:
1414
name: "TFM Regression Test"
1515

1616
tests:
17-
sample.tfm.tfm_regression:
18-
extra_args: ""
17+
sample.tfm.regression:
18+
timeout: 200
19+
20+
sample.tfm.regression_ipc:
21+
extra_args: CONFIG_TFM_IPC=y
1922
timeout: 200

0 commit comments

Comments
 (0)