summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2021-01-09 17:36:31 -0500
committerAllen Winter <allen.winter@kdab.com>2021-01-09 17:36:31 -0500
commitdbb2a9973aad048610d18fd79248cf6061e04c7b (patch)
tree6fb3314c8faac06465f9e9d256a250d6d4786cf0 /src/test
parentc17a428aa49e2657080a41936421b99e847f8156 (diff)
downloadlibical-git-dbb2a9973aad048610d18fd79248cf6061e04c7b.tar.gz
test/CMakeLists.txt, test/libical-glib/CMakeLists.txt - Cygwin support
allow the libical-glib tests to run properly on Cygwin
Diffstat (limited to 'src/test')
-rw-r--r--src/test/CMakeLists.txt1
-rw-r--r--src/test/libical-glib/CMakeLists.txt3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
index 4c6ebffa..735c5036 100644
--- a/src/test/CMakeLists.txt
+++ b/src/test/CMakeLists.txt
@@ -39,6 +39,7 @@ macro(setprops _name)
if(CYGWIN OR MSYS)
set_tests_properties(${_name} PROPERTIES
ENVIRONMENT "PATH=${EXECUTABLE_OUTPUT_PATH}:${CMAKE_BINARY_DIR}/lib:$ENV{PATH}"
+ WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
)
endif()
endmacro()
diff --git a/src/test/libical-glib/CMakeLists.txt b/src/test/libical-glib/CMakeLists.txt
index 1cd14cea..4d239dba 100644
--- a/src/test/libical-glib/CMakeLists.txt
+++ b/src/test/libical-glib/CMakeLists.txt
@@ -32,9 +32,8 @@ if(PYTHON3)
add_test(
NAME ${test_name}
COMMAND ${PYTHON3} -I ${CMAKE_CURRENT_SOURCE_DIR}/${test_file}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
-
+ setprops(${test_name})
set_tests_properties(${test_name} PROPERTIES ENVIRONMENT "${test_env}")
endforeach()