catchAll -> testAll

pull/1561/head
Jeff Becker 3 years ago
parent 60bfdacc23
commit 6c8e5256d6
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -56,7 +56,7 @@ local debian_pipeline(name, image,
'-DWITH_LTO=' + (if lto then 'ON ' else 'OFF ') + '-DWITH_LTO=' + (if lto then 'ON ' else 'OFF ') +
cmake_extra, cmake_extra,
'ninja -v', 'ninja -v',
'../contrib/ci/drone-gdb.sh ./test/catchAll --use-colour yes', '../contrib/ci/drone-gdb.sh ./test/testAll --use-colour yes',
] + extra_cmds, ] + extra_cmds,
} }
], ],
@ -199,7 +199,7 @@ local mac_builder(name, build_type='Release', werror=true, cmake_extra='', extra
'cmake .. -G Ninja -DCMAKE_CXX_FLAGS=-fcolor-diagnostics -DCMAKE_BUILD_TYPE='+build_type+' ' + 'cmake .. -G Ninja -DCMAKE_CXX_FLAGS=-fcolor-diagnostics -DCMAKE_BUILD_TYPE='+build_type+' ' +
(if werror then '-DWARNINGS_AS_ERRORS=ON ' else '') + cmake_extra, (if werror then '-DWARNINGS_AS_ERRORS=ON ' else '') + cmake_extra,
'ninja -v', 'ninja -v',
'./test/catchAll --use-colour yes', './test/testAll --use-colour yes',
] + extra_cmds, ] + extra_cmds,
} }
] ]

@ -10,7 +10,7 @@ endif()
add_subdirectory(Catch2) add_subdirectory(Catch2)
add_executable(catchAll add_executable(testAll
# helpers # helpers
check_main.cpp check_main.cpp
test_util.cpp test_util.cpp
@ -52,20 +52,16 @@ add_executable(catchAll
test_llarp_encrypted_frame.cpp test_llarp_encrypted_frame.cpp
test_llarp_router_contact.cpp) test_llarp_router_contact.cpp)
target_link_libraries(catchAll PUBLIC liblokinet Catch2::Catch2) target_link_libraries(testAll PUBLIC liblokinet Catch2::Catch2)
target_include_directories(catchAll PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(testAll PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
if(WIN32) if(WIN32)
target_sources(catchAll PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/win32/test.rc") target_sources(testAll PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/win32/test.rc")
target_link_libraries(catchAll PUBLIC ws2_32 iphlpapi shlwapi) target_link_libraries(testAll PUBLIC ws2_32 iphlpapi shlwapi)
endif() endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
target_link_directories(catchAll PRIVATE /usr/local/lib) target_link_directories(testAll PRIVATE /usr/local/lib)
endif() endif()
# Custom targets to invoke the different test suites: add_custom_target(check COMMAND testAll)
add_custom_target(catch COMMAND catchAll)
# Add a custom "check" target that runs all the test suites:
add_custom_target(check DEPENDS catch)

Loading…
Cancel
Save