The BUILD_TESTS variable has a broad scope, controlling:
- Building
test_bitcoin - Building
test_bitcoin-qt - Building tests in subtrees, such as
secp256k1andunivalue - Creating CTest’s tests
However, for release builds, only the first is necessary.
To address this, this PR introduces the new BUILD_TEST_BINARY variable, which allows building only the test_bitcoin binary without enabling other tests.
As an alternative, an explicit list of build targets can be specified in the contrib/guix/libexec/build.sh.