-
Notifications
You must be signed in to change notification settings - Fork 350
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
build(CMake): support running tests with ctest #405
base: master
Are you sure you want to change the base?
Conversation
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.
Building tests should always be optional. Please add an option BUILD_TESTING
or BLAKE3_BUILD_TESTING
, conditionally call enable_testing()
, and conditionally build the test target.
I'll defer to @oconnor663 as to whether we want to integrate the test environment with CMake.
Sure thing, both suggestions done. |
ping? It would really help as at Gentoo Linux. |
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.
An option(BLAKE3_BUILD_TESTING …
would be nice to have for the GUI people. However, I'm fine with this as is. Thanks for the contribution 🙏
@oconnor663 still needs to decide, whether we want this or not.
See: BLAKE3-team/BLAKE3#405 Bug: https://bugs.gentoo.org/935370 Signed-off-by: Matoro Mahri <[email protected]>
See: BLAKE3-team/BLAKE3#405 Bug: https://bugs.gentoo.org/935370 Signed-off-by: Matoro Mahri <[email protected]>
See: BLAKE3-team/BLAKE3#405 Bug: https://bugs.gentoo.org/935370 Signed-off-by: Matoro Mahri <[email protected]>
See: BLAKE3-team/BLAKE3#405 Bug: https://bugs.gentoo.org/935370 Signed-off-by: Matoro Mahri <[email protected]>
See: BLAKE3-team/BLAKE3#405 Bug: https://bugs.gentoo.org/935370 Signed-off-by: Matoro Mahri <[email protected]> Closes: #38021 Signed-off-by: Michał Górny <[email protected]>
Adds the ability to run the test suite via
ctest
. Works with both in-source and out-of-source builds. Respects user flags, and builds SIMD into the tests corresponding to whatever was used to build the library. Does not interfere with the ability to run tests the old way.