mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-07 18:47:15 +08:00
cmake: Explicitly have tests depend on indent and key_reader
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
This commit is contained in:
parent
f0eb599ff1
commit
a1b7c36db5
|
@ -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 New Issue
Block a user