This diff enables building the OpenSSL tests by default with CMake. In
order to get rid of the dependency, the SECP256K1_BUILD_OPENSSL_TESTS
variable can be set to OFF. It will also be disabled if the tests are
disabled.
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rSTAGING01f082ebb8fe: [SECP256K1] Enable the OpenSSL tests (and benchmark)
rABC01f082ebb8fe: [SECP256K1] Enable the OpenSSL tests (and benchmark)
cmake -GNinja .. -DSECP256K1_BUILD_TEST=OFF grep SECP256K1_BUILD_OPENSSL_TESTS CMakeCache.txt
Check that SECP256K1_BUILD_OPENSSL_TESTS is not defined in the cache.
cmake -GNinja .. -DSECP256K1_BUILD_OPENSSL_TESTS=OFF grep SECP256K1_BUILD_OPENSSL_TESTS CMakeCache.txt
Check that SECP256K1_BUILD_OPENSSL_TESTS is disabled in the cache.
cmake -GNinja .. grep SECP256K1_BUILD_OPENSSL_TESTS CMakeCache.txt
Check that SECP256K1_BUILD_OPENSSL_TESTS is enabled in the cache.
ninja check-secp256k1 ninja bench-secp256k1
Check in the output that the benchmark ecdsa_verify_openssl is run.
Run the Travis build (see
https://travis-ci.org/Fabcien/secp256k1/builds/657808023).
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/secp256k1/CMakeLists.txt | ||
---|---|---|
151 ↗ | (On Diff #16766) | Can you add a message when this fails to explain this is only required for testing and that people can use -DSECP256K1_BUILD_OPENSSL_TESTS=Off to disable it? The people who just want to use the lib will not want extra dependencies dumped on them. |