Skip to content

Commit

Permalink
Merge pull request Mbed-TLS#36 from ronald-cron-arm/move-crypto-test-…
Browse files Browse the repository at this point in the history
…suites

Adapt to the move of crypto test suites to tf-psa-crypto directory
  • Loading branch information
ronald-cron-arm authored Jul 23, 2024
2 parents e03b865 + fc46420 commit 33d7886
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/mbedtls_framework/psa_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ def read_psa_interface(self) -> macro_collector.PSAMacroEnumerator:
if os.path.isdir('tf-psa-crypto'):
header_file_names = ['tf-psa-crypto/include/psa/crypto_values.h',
'tf-psa-crypto/include/psa/crypto_extra.h']
test_suites = ['tf-psa-crypto/tests/suites/test_suite_psa_crypto_metadata.data']
else:
header_file_names = ['include/psa/crypto_values.h',
'include/psa/crypto_extra.h']
test_suites = ['tests/suites/test_suite_psa_crypto_metadata.data']

test_suites = ['tests/suites/test_suite_psa_crypto_metadata.data']
for header_file_name in header_file_names:
constructors.parse_header(header_file_name)
for test_cases in test_suites:
Expand Down
5 changes: 5 additions & 0 deletions scripts/mbedtls_framework/psa_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ def update_cache(self) -> None:

if build_tree.looks_like_tf_psa_crypto_root('.'):
includes.append('drivers/builtin/include')
# Temporary, while TF-PSA-Crypto build system in Mbed TLS still
# reference some files in Mbed TLS include directory. When it does
# not anymore, this can be removed.
if build_tree.looks_like_mbedtls_root('..'):
includes.append('../include')
values = c_build_helper.get_c_expression_values(
'unsigned long', '%lu',
expressions,
Expand Down

0 comments on commit 33d7886

Please sign in to comment.