Changeset View
Changeset View
Standalone View
Standalone View
test/CMakeLists.txt
Show All 25 Lines | add_custom_command( | ||||
OUTPUT "${dest}" | OUTPUT "${dest}" | ||||
COMMAND ${CMAKE_COMMAND} -E create_symlink "${src}" "${dest}" | COMMAND ${CMAKE_COMMAND} -E create_symlink "${src}" "${dest}" | ||||
COMMENT "link ${file}" | COMMENT "link ${file}" | ||||
MAIN_DEPENDENCY "${src}" | MAIN_DEPENDENCY "${src}" | ||||
) | ) | ||||
# Add a phony target to make sure the files are linked by default. | # Add a phony target to make sure the files are linked by default. | ||||
sanitize_target_name("link-" "${file}" NAME) | sanitize_target_name("link-" "${file}" NAME) | ||||
add_custom_target(${NAME} ALL DEPENDS "${dest}") | add_custom_target(${NAME} ALL DEPENDS "${dest}") | ||||
foreach(PARENT_TARGET ${ARGN}) | |||||
if(TARGET ${PARENT_TARGET}) | |||||
add_dependencies(${PARENT_TARGET} ${NAME}) | |||||
endif() | |||||
endforeach() | |||||
endfunction() | endfunction() | ||||
make_link(functional/test_runner.py) | make_link(functional/test_runner.py) | ||||
make_link(util/bitcoin-util-test.py) | make_link(util/bitcoin-util-test.py) | ||||
make_link(util/rpcauth-test.py) | make_link(util/rpcauth-test.py) | ||||
make_link(fuzz/test_runner.py) | |||||
get_property(FUZZ_TARGETS GLOBAL PROPERTY FUZZ_TARGETS) | |||||
make_link(fuzz/test_runner.py ${FUZZ_TARGETS}) | |||||
include(Coverage) | include(Coverage) | ||||
include(TestSuite) | include(TestSuite) | ||||
set(_TEST_TARGET_DEPENDS "") | set(_TEST_TARGET_DEPENDS "") | ||||
if(BUILD_BITCOIN_CLI) | if(BUILD_BITCOIN_CLI) | ||||
list(APPEND _TEST_TARGET_DEPENDS bitcoin-cli) | list(APPEND _TEST_TARGET_DEPENDS bitcoin-cli) | ||||
endif() | endif() | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |