bitcoin-core / secp256k1

Optimized C library for EC operations on curve secp256k1
MIT License
2.06k stars 1k forks source link

cmake, test: Introduce `SECP256K1_TESTNAME_PREFIX` variable #1582

Open hebasto opened 1 month ago

hebasto commented 1 month ago

This change enables downstream projects, such as Bitcoin Core, to add a custom prefix to the libsecp256k1 tests, facilitating the use of ctest regex matching options.

For instance, after configuring with -DSECP256K1_TESTNAME_PREFIX="secp256k1_", a downstream project users can filter their tests like that:

ctest --tests-regex "secp256k1"

or

ctest --exclude-regex "secp256k1"
hebasto commented 1 month ago

cc @fanquake @theuni