CMakeLists.txt: pass TEST_RUN_ARGS to tests/run.sh, default to -W

This commit is contained in:
Daniel Hahler 2017-08-14 13:38:49 +02:00
parent 062f9d6a15
commit f8d1e46eaa
1 changed files with 2 additions and 3 deletions

View File

@ -395,11 +395,10 @@ add_executable(test-gravity tests/test-gravity.c)
target_link_libraries(test-gravity target_link_libraries(test-gravity
${AWESOME_COMMON_REQUIRED_LDFLAGS} ${AWESOME_REQUIRED_LDFLAGS}) ${AWESOME_COMMON_REQUIRED_LDFLAGS} ${AWESOME_REQUIRED_LDFLAGS})
add_custom_target(check-integration 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} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Running integration tests" COMMENT "Running integration tests"
USES_TERMINAL USES_TERMINAL)
VERBATIM)
add_dependencies(check-integration test-gravity) add_dependencies(check-integration test-gravity)
add_custom_target(check-themes add_custom_target(check-themes
${CMAKE_SOURCE_DIR}/tests/themes/run.sh ${CMAKE_SOURCE_DIR}/tests/themes/run.sh