diff --git a/CMakeLists.txt b/CMakeLists.txt index b4feb0b1..7f9ed439 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -395,11 +395,10 @@ add_executable(test-gravity tests/test-gravity.c) target_link_libraries(test-gravity ${AWESOME_COMMON_REQUIRED_LDFLAGS} ${AWESOME_REQUIRED_LDFLAGS}) add_custom_target(check-integration - sh -c "CMAKE_BINARY_DIR='${CMAKE_BINARY_DIR}' ${CMAKE_SOURCE_DIR}/tests/run.sh -W" + ${CMAKE_COMMAND} -E env CMAKE_BINARY_DIR='${CMAKE_BINARY_DIR}' ./tests/run.sh \$\${TEST_RUN_ARGS:--W} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMENT "Running integration tests" - USES_TERMINAL - VERBATIM) + USES_TERMINAL) add_dependencies(check-integration test-gravity) add_custom_target(check-themes ${CMAKE_SOURCE_DIR}/tests/themes/run.sh