-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Switch from test-ref-configs.pl to separate components #9565
Switch from test-ref-configs.pl to separate components #9565
Conversation
Signed-off-by: Gilles Peskine <[email protected]>
This also suffices for compat.sh. Include the sample programs in this build. They aren't tested by ssl-opt.sh yet, but they soon will be. Signed-off-by: Gilles Peskine <[email protected]>
This also suffices for compat.sh. Include the sample programs in this build. They aren't tested by ssl-opt.sh yet, but they soon will be. Signed-off-by: Gilles Peskine <[email protected]>
Signed-off-by: Gilles Peskine <[email protected]>
Signed-off-by: Gilles Peskine <[email protected]>
Signed-off-by: Gilles Peskine <[email protected]>
Signed-off-by: Gilles Peskine <[email protected]>
Signed-off-by: Gilles Peskine <[email protected]>
Rename the existing component_test_tfm_config which tests a modified version of config-tfm.h for the sake of driver-vs-reference comparison. Signed-off-by: Gilles Peskine <[email protected]>
Signed-off-by: Gilles Peskine <[email protected]>
12d3469
to
2e449f0
Compare
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!
Changing to priority-high after a discussion with Ronald because this is convenient for the repository split: it's one less script to adapt. |
Remove the components migrated from test-ref-configs.pl that use legacy crypto (no enabling of MBEDTLS_USE_PSA_CRYPTO). In the 4.0 preparation branch, we are no longer interested in such configurations. Signed-off-by: Gilles Peskine <[email protected]>
In the components migrated from test-ref-configs.pl, we don't need to activate PSA: it's always on. Also, since there is no "_legacy" component to contrast with, drop "_psa" from the component names. Signed-off-by: Gilles Peskine <[email protected]>
In the initial version of this pull request (up to "Remove test-ref-configs.pl, which no longer does anything"), I had made the new components replicate exactly what the Perl script was doing (except for component names). But the script was in fact causing us to do useless work: we were running both legacy and PSA variants of the configurations, but the "legacy" variant actually has |
set(programs_target "${MBEDTLS_TARGET_PREFIX}programs") | ||
add_custom_target(${programs_target}) | ||
|
||
set(ssl_opt_target "${MBEDTLS_TARGET_PREFIX}ssl-opt") |
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.
ssl-opt
should also generate tls13-compat.sh
which is added by #9563. This can only be done once both parts of the code are in — reminder to make a follow-up PR.
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!
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
26650f5
test-ref-configs.pl
doesn't do much. It just has a list of things to build and test. It's poor at reporting: if there's any failure, it just stops. This pull requests moves all the testing of reference configurations to separate components inall.sh
.Also,
test-ref-configs.pl
was doing the testing twice: once the configuration as given and once with PSA enabled, but in thedevelopment
branch the configurations all have PSA enabled already. Remove this duplication.This is an alternative to #9564, which improves
test-ref-configs.pl
. Differences:ssl-opt.sh
andcompat.sh
.PR checklist