mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Use ctest to run unit tests
This commit is contained in:
parent
225f74e844
commit
dff2493f2d
|
@ -6,3 +6,15 @@ include_directories(${CHECK_INCLUDE_DIRS})
|
||||||
find_package(Check REQUIRED)
|
find_package(Check REQUIRED)
|
||||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/messenger_test.cmake)
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/messenger_test.cmake)
|
||||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/friends_test.cmake)
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/friends_test.cmake)
|
||||||
|
|
||||||
|
include( CTest )
|
||||||
|
enable_testing()
|
||||||
|
|
||||||
|
add_test(messenger messenger_test)
|
||||||
|
# TODO enable once test is fixed
|
||||||
|
#add_test(friends friends_test)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
test COMMAND ${CMAKE_CTEST_COMMAND} -V
|
||||||
|
DEPENDS messenger_test
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user