Skip to content
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 crypto test suites #9394

Merged

Conversation

ronald-cron-arm
Copy link
Contributor

@ronald-cron-arm ronald-cron-arm commented Jul 15, 2024

Description

Repo split preparation, move crypto test suites to tf-psa-crypto.
Companion mbedtls-framework PR: Mbed-TLS/mbedtls-framework#36
Fix #9266

PR checklist

@ronald-cron-arm ronald-cron-arm added enhancement component-crypto Crypto primitives and low-level interfaces needs-ci Needs to pass CI tests priority-high High priority - will be reviewed soon labels Jul 15, 2024
@ronald-cron-arm ronald-cron-arm force-pushed the move-crypto-test-suites branch 2 times, most recently from a67a3fc to 1e41203 Compare July 16, 2024 06:28
@ronald-cron-arm ronald-cron-arm force-pushed the move-crypto-test-suites branch from 1e41203 to 20ca55d Compare July 16, 2024 12:47
@ronald-cron-arm ronald-cron-arm force-pushed the move-crypto-test-suites branch 4 times, most recently from 9f9a945 to b18a364 Compare July 18, 2024 07:59
@ronald-cron-arm ronald-cron-arm added needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review and removed needs-work needs-ci Needs to pass CI tests labels Jul 18, 2024
@minosgalanakis minosgalanakis self-requested a review July 18, 2024 14:59
@minosgalanakis minosgalanakis removed the needs-reviewer This PR needs someone to pick it up for review label Jul 18, 2024
@@ -0,0 +1,362 @@
set(libs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is duplicating {MBEDTLS-ROOT}/tests/CMakeLists.txt. It is effectively a large ammount of duplicated code. I am assuming those files are expected to diverge later on, so could we possibly source one from the other when they need to be identical?

Copy link
Contributor Author

@ronald-cron-arm ronald-cron-arm Jul 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually there will be one in mbedtls and one in TF-PSA-Crypto with quite similar content and we do not plan to share anything there. Otherwise as of this PR, the two files diverge in the two following commits. I've done it that way to highlight in the commit history that the new tf-psa-crypto/tests/CMakeLists.txt file is just a derivation of the one we have in Mbed TLS and you can see the derivation in the commit "Add tf-psa-crypto test suites build".

minosgalanakis
minosgalanakis previously approved these changes Jul 23, 2024
Copy link
Contributor

@minosgalanakis minosgalanakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@davidhorstmann-arm davidhorstmann-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Contributor

@davidhorstmann-arm davidhorstmann-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ronald-cron-arm
Copy link
Contributor Author

@davidhorstmann-arm @minosgalanakis last version: updated the framework to the merge of #38 instead of #36 and updated the PSA test wrappers.

Copy link
Contributor

@minosgalanakis minosgalanakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@davidhorstmann-arm davidhorstmann-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@davidhorstmann-arm davidhorstmann-arm added approved Design and code approved - may be waiting for CI or backports and removed needs-review Every commit must be reviewed by at least two team members, labels Jul 24, 2024
@ronald-cron-arm ronald-cron-arm added this pull request to the merge queue Jul 24, 2024
Merged via the queue into Mbed-TLS:development with commit f938f4f Jul 24, 2024
6 checks passed
perl scripts/run-test-suites.pl $(TEST_FLAGS) --skip=$(SKIP_TEST_SUITES)
cd ../tf-psa-crypto/tests && perl ../../tests/scripts/run-test-suites.pl $(TEST_FLAGS) --skip=$(SKIP_TEST_SUITES)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: the crypto tests are skipped if a TLS test fails.

Why doesn't run-test-suites.pl take care of looking for the subproject's test suites? (Like ctest does.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why doesn't run-test-suites.pl take care of looking for the subproject's test suites?

#9558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports component-crypto Crypto primitives and low-level interfaces enhancement priority-high High priority - will be reviewed soon
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Move Mbed TLS crypto test suites to tf-psa-crypto directory
5 participants