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

Backport 2.28: CMake: generate the list of test suites automatically #5465

Conversation

gilles-peskine-arm
Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm commented Jan 25, 2022

Backport of #5463. Similar code, but without the part about generated files.

The following test suites were missing:

test_suite_cipher.aria
test_suite_psa_crypto_driver_wrappers

I tested that the code works with CMake 2.8.12.2, which is the minimum version we require. Methodology: under Ubuntu 14.04,

mkdir build-cmake
cd build-cmake
CC=c99 cmake ..
make lib tests
make test

We keep forgetting to register new test suites in tests/CMakeLists.txt. To
fix this problem once and for all, remove the need for manual registration.

The following test suites were missing:
  test_suite_cipher.aria
  test_suite_psa_crypto_driver_wrappers

Signed-off-by: Gilles Peskine <[email protected]>
@gilles-peskine-arm gilles-peskine-arm added bug enhancement component-platform Portability layer and build scripts needs-ci Needs to pass CI tests size-s Estimated task size: small (~2d) labels Jan 25, 2022
@gilles-peskine-arm gilles-peskine-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-ci Needs to pass CI tests labels Jan 26, 2022
AndrzejKurek
AndrzejKurek previously approved these changes Jan 27, 2022
@gilles-peskine-arm gilles-peskine-arm changed the title CMake: generate the list of test suites automatically Backport 2.28: CMake: generate the list of test suites automatically Feb 1, 2022
d3zd3z
d3zd3z previously approved these changes Feb 2, 2022
@mpg mpg 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, needs-reviewer This PR needs someone to pick it up for review labels Feb 3, 2022
The race condition mentioned in the previous commit
"Stop CMake out of source tests running on 16.04"
has also been observed with test_cmake_as_subdirectory on 3.1 and can
presumably happen on 2.28 as well. So skip it on Ubuntu 16.04 as well.

Signed-off-by: Gilles Peskine <[email protected]>
This is no longer useful now that components run in a subshell.

Signed-off-by: Gilles Peskine <[email protected]>
This is no longer useful now that components run in a subshell.

Signed-off-by: Gilles Peskine <[email protected]>
This is now a no-op.

Signed-off-by: Gilles Peskine <[email protected]>
@gilles-peskine-arm gilles-peskine-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 approved Design and code approved - may be waiting for CI or backports labels Feb 4, 2022
@gilles-peskine-arm gilles-peskine-arm removed the needs-reviewer This PR needs someone to pick it up for review label Feb 4, 2022
@mpg mpg 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 Feb 7, 2022
@mpg mpg merged commit 8b87608 into Mbed-TLS:mbedtls-2.28 Feb 7, 2022
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 bug component-platform Portability layer and build scripts enhancement size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants