CMakeLists.txt: pass TEST_RUN_ARGS to tests/run.sh, default to -W
This commit is contained in:
parent
062f9d6a15
commit
f8d1e46eaa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue