mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 21:57:46 +00:00
tests: cmake: use a list for enabled tests
Avoid replicating common logic.
This commit is contained in:
parent
dbd9a2606c
commit
4a9e94944c
1 changed files with 12 additions and 6 deletions
|
@ -97,11 +97,17 @@ add_test(
|
||||||
NAME hash-target
|
NAME hash-target
|
||||||
COMMAND hash-target-tests)
|
COMMAND hash-target-tests)
|
||||||
|
|
||||||
# Skip the core_tests if we are running in Travis-CI because they will take too long
|
set(enabled_tests
|
||||||
if (DEFINED ENV{TRAVIS})
|
difficulty
|
||||||
add_custom_target(tests DEPENDS difficulty hash performance_tests core_proxy unit_tests)
|
hash
|
||||||
else ()
|
performance_tests
|
||||||
add_custom_target(tests DEPENDS coretests difficulty hash performance_tests core_proxy unit_tests)
|
core_proxy
|
||||||
endif ()
|
unit_tests)
|
||||||
|
|
||||||
|
# Skip the core_tests in Travis-CI because they will take too long
|
||||||
|
if (NOT DEFINED ENV{TRAVIS})
|
||||||
|
list(APPEND enabled_tests coretests)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_custom_target(tests DEPENDS enabled_tests)
|
||||||
set_property(TARGET tests PROPERTY FOLDER "${folder}")
|
set_property(TARGET tests PROPERTY FOLDER "${folder}")
|
||||||
|
|
Loading…
Reference in a new issue