[Framework] Move test_psa_*.py scripts to the framework #94

Closed
opened 2024-12-05 02:56:01 -06:00 by mpg · 1 comment
mpg commented 2024-12-05 02:56:01 -06:00 (Migrated from github.com)

Move tests/scripts/test_psa_compliance.py and tests/scripts/test_psa_constant_names.py to the framework - they will be used by Mbed TLS 3.6 and tf-psa-crypto.

The versions of test_psa_compliance.py in 3.6 and development are slightly different in that the version in development has been adapted to tf-psa-crypto. The version from development should work for 3.6 too as it includes checks for which repo we're in.

The versions of test_psa_constant_names.py in 3.6 and development differ in some paths. These should be reconciled, probably using is_mbedtls_3_6() from the build_tree module. (Once the script is in the framework repo, from . import build_tree should work. From the mbedtls repo, I think we want import framework_scripts_path # pylint: disable=unused-import then from mbedtls_framework import build_tree.)

Move `tests/scripts/test_psa_compliance.py` and `tests/scripts/test_psa_constant_names.py` to the framework - they will be used by Mbed TLS 3.6 and tf-psa-crypto. The versions of `test_psa_compliance.py` in 3.6 and development are slightly different in that the version in development has been adapted to tf-psa-crypto. The version from development should work for 3.6 too as it includes checks for which repo we're in. The versions of `test_psa_constant_names.py` in 3.6 and development differ in some paths. These should be reconciled, probably using `is_mbedtls_3_6()` from the `build_tree` module. (Once the script is in the framework repo, `from . import build_tree` should work. From the mbedtls repo, I think we want `import framework_scripts_path # pylint: disable=unused-import` then `from mbedtls_framework import build_tree`.)
gilles-peskine-arm commented 2025-04-11 06:26:47 -05:00 (Migrated from github.com)

Regarding test_psa_compliance.py: over time, LTS branches won't comply to the same version as the development branch. Right now PSA_ARCH_TESTS_REF is hard-coded in the framework, at some point we'll need to have it per branch.

Regarding `test_psa_compliance.py`: over time, LTS branches won't comply to the same version as the development branch. Right now `PSA_ARCH_TESTS_REF` is hard-coded in the framework, at some point [we'll need to have it per branch](https://github.com/Mbed-TLS/mbedtls-framework/issues/158).
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/mbedtls-framework#94
No description provided.