mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 22:14:53 +00:00
cmake: Explicitly have tests depend on indent and key_reader
This commit is contained in:
parent
f0eb599ff1
commit
a1b7c36db5
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ add_custom_target(fish_run_tests
|
||||||
FISH_SOURCE_DIR=${CMAKE_SOURCE_DIR}
|
FISH_SOURCE_DIR=${CMAKE_SOURCE_DIR}
|
||||||
${CMAKE_CTEST_COMMAND} --force-new-ctest-process # --verbose
|
${CMAKE_CTEST_COMMAND} --force-new-ctest-process # --verbose
|
||||||
--output-on-failure --progress
|
--output-on-failure --progress
|
||||||
DEPENDS fish fish_test_helper
|
DEPENDS fish fish_indent fish_key_reader fish_test_helper
|
||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ cmake_policy(POP)
|
||||||
function(add_test_target NAME)
|
function(add_test_target NAME)
|
||||||
string(REPLACE "/" "-" NAME ${NAME})
|
string(REPLACE "/" "-" NAME ${NAME})
|
||||||
add_custom_target("test_${NAME}" COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -R "^${NAME}$$"
|
add_custom_target("test_${NAME}" COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -R "^${NAME}$$"
|
||||||
DEPENDS fish fish_test_helper USES_TERMINAL )
|
DEPENDS fish fish_indent fish_key_reader fish_test_helper USES_TERMINAL)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
add_executable(fish_test_helper tests/fish_test_helper.c)
|
add_executable(fish_test_helper tests/fish_test_helper.c)
|
||||||
|
|
Loading…
Reference in a new issue