hebasto
commented at 10:42 PM on June 26, 2024:
member
Delete CTest module.
The CTest module handles CDash integration, which we do not use. It is not required for testing functionality.
Clean up cases when to invoke enable_testing()
The enable_testing() command invocation is required for add_test() commands, which are used only for {noverify_}tests, exhaustive_tests and examples.
cmake: Delete `CTest` module
The `CTest` module handles `CDash` integration, which we do not use. It
is not required for testing functionality.
6aa576515e
real-or-random added the label assurance on Jun 27, 2024
real-or-random added the label build on Jun 27, 2024
real-or-random
commented at 9:12 AM on June 27, 2024:
contributor
The enable_testing() command invocation is required for add_test() commands, which are used only for {noverify_}tests, exhaustive_tests and examples.
I don't think it's required. It's just that add_test() has no effect without enable_testing().
enable_testing() seems cheap. Couldn't we just run it always? Or do you think this has drawbacks?
cmake: Call `enable_testing()` unconditionally
This change simplifies the code.
Also comments has been added to highlight the code structure.
7c987ec89e
hebasto force-pushed on Jun 27, 2024
hebasto
commented at 10:35 AM on June 27, 2024:
member
The enable_testing() command invocation is required for add_test() commands, which are used only for {noverify_}tests, exhaustive_tests and examples.
I don't think it's required. It's just that add_test() has no effect without enable_testing().
enable_testing() seems cheap.
I agree.
Couldn't we just run it always?
Sure. The code has been adjusted.
Or do you think this has drawbacks?
I did some research and I haven't found any drawbacks. When enable_testing() is invoked and no tests being added, the created CTestTestfile.cmake files in the binary tree are noop/empty.
I did some research and I haven't found any drawbacks. When enable_testing() is invoked and no tests being added, the created CTestTestfile.cmake files in the binary tree are noop/empty.
Verified this by creating a fresh build directory via
This is a metadata mirror of the GitHub repository
bitcoin-core/secp256k1.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:52 UTC