mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
cmake: Pass the source directory to the tests
Our tests typically run in their own environment, which is great for normal tests. However for the coming translation test, we don't want to copy the .po files into the test environment, so it's nice to have a way out.
This commit is contained in:
parent
049104e8df
commit
5e3c40207d
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ if(POLICY CMP0037)
|
|||
endif()
|
||||
add_custom_target(test
|
||||
COMMAND env CTEST_PARALLEL_LEVEL=${CTEST_PARALLEL_LEVEL} FISH_FORCE_COLOR=1
|
||||
FISH_SOURCE_DIR=${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_CTEST_COMMAND} --force-new-ctest-process # --verbose
|
||||
--output-on-failure --progress
|
||||
DEPENDS fish_tests tests_buildroot_target
|
||||
|
|
Loading…
Reference in a new issue