From 5e3c40207de5727aafcf677a453e8c9e351eb53d Mon Sep 17 00:00:00 2001 From: Fabian Homborg <FHomborg@gmail.com> Date: Mon, 18 Oct 2021 17:00:19 +0200 Subject: [PATCH] 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. --- cmake/Tests.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Tests.cmake b/cmake/Tests.cmake index e50049032..509d5840e 100644 --- a/cmake/Tests.cmake +++ b/cmake/Tests.cmake @@ -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