mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 14:36:44 +02:00
add targets for individual tests (#3431)
This commit is contained in:
parent
28a46880a2
commit
8aa4758993
2 changed files with 19 additions and 1 deletions
|
@ -64,6 +64,13 @@ foreach (src_FILE ${test_SRCS})
|
|||
if (DARWIN)
|
||||
target_link_libraries (${src_FILE} "-framework CoreFoundation -framework Security -framework SystemConfiguration")
|
||||
endif (DARWIN)
|
||||
|
||||
# Add a custom `foo.test` target.
|
||||
string(REGEX REPLACE "\\.[^.]*$" "" test_target ${src_FILE})
|
||||
add_custom_target (${test_target}
|
||||
./${src_FILE}
|
||||
DEPENDS ${src_FILE}
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test)
|
||||
endforeach (src_FILE)
|
||||
|
||||
configure_file(run_all run_all COPYONLY)
|
||||
|
@ -197,6 +204,13 @@ set (pythonTests
|
|||
|
||||
foreach (python_Test ${pythonTests})
|
||||
configure_file(${python_Test} ${python_Test} COPYONLY)
|
||||
|
||||
# Add a custom `foo.test` target.
|
||||
string(REGEX REPLACE "\\.[^.]*$" "" test_target ${python_Test})
|
||||
add_custom_target (${test_target}
|
||||
./${python_Test}
|
||||
DEPENDS ${python_Test}
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test)
|
||||
endforeach(python_Test)
|
||||
|
||||
#SET(CMAKE_BUILD_TYPE gcov)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue