-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move test helpers from Mbed TLS #65
Conversation
04800b8
to
52aecf8
Compare
Signed-off-by: Manuel Pégourié-Gonnard <mpg@elzevir.fr>
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The merge-base changed after approval.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
Move all-core and all-helpers to the framework
Move everything in tests/src and tests/include except for TLS-only things, the alt-dummy headers and the generated PSA test wrappers. Signed-off-by: David Horstmann <david.horstmann@arm.com>
…mann-arm/add-some-test-helpers
This has now moved to the framework. Signed-off-by: David Horstmann <david.horstmann@arm.com>
Previously this was not included when in 3.6 and PSA_CRYPTO_CLIENT was defined. Signed-off-by: David Horstmann <david.horstmann@arm.com>
c70752c
to
a2b59be
Compare
Signed-off-by: David Horstmann <david.horstmann@arm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me on code inspection, but the CI isn't happy.
I'll note that some of the files moved were not identical between 3.6 and development, and when that's the case the version that landed here is the version from development. The differences are:
- In
tests/include/test/psa_crypto_helpers.h
a guard wasMBEDTLS_PSA_CRYPTO_C
in 3.6 andMBEDTLS_PSA_CRYPTO_CLIENT
in development (and now framework) - I think keepingCLIENT
for both is OK. - In
tests/src/helpers.c
development (and new framework) had a declaration formbedtls_test_hook_error_add
which 3.6 doesn't. In 3.6 this declaration lives inscripts/data_files/error.fmt
. In development it was recently moved by Split error.h and move back error.c to mbedtls mbedtls#9693. I expect the 3.6 PR will resolve that (perhaps by backporting the relevant parts from Split error.h and move back error.c to mbedtls mbedtls#9693).
Signed-off-by: David Horstmann <david.horstmann@arm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
CI is green on #9756 and #9766 so I'm removing "needs-ci". |
I hope to remove |
We haven't moved anything from the 3.6 branch into the framework, we've just removed a definition from 3.6. It currently exists in 4.x and will be moved to the framework here (removing it should be easy enough). |
Companion PR to Mbed-TLS/mbedtls#9756. Move test helpers to the framework from Mbed TLS.