mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
cmake, test: Disable tests instead of ignoring them
This commit is contained in:
parent
274a89e052
commit
fee2ccfb67
1 changed files with 12 additions and 10 deletions
|
@ -2,14 +2,16 @@
|
|||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or https://opensource.org/license/mit/.
|
||||
|
||||
if(TARGET bitcoin-util AND TARGET bitcoin-tx AND TARGET Python3::Interpreter)
|
||||
add_test(NAME util_test_runner
|
||||
COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/test_runner.py
|
||||
)
|
||||
endif()
|
||||
set_tests_properties(util_test_runner PROPERTIES
|
||||
DISABLED $<NOT:$<AND:$<TARGET_EXISTS:Python3::Interpreter>,$<TARGET_EXISTS:bitcoin-util>,$<TARGET_EXISTS:bitcoin-tx>>>
|
||||
)
|
||||
|
||||
if(TARGET Python3::Interpreter)
|
||||
add_test(NAME util_rpcauth_test
|
||||
COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/rpcauth-test.py
|
||||
)
|
||||
endif()
|
||||
set_tests_properties(util_rpcauth_test PROPERTIES
|
||||
DISABLED $<NOT:$<TARGET_EXISTS:Python3::Interpreter>>
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue