diff --git a/src/test_all/CMakeLists.txt b/src/test_all/CMakeLists.txt index 011605e..82ee3d1 100644 --- a/src/test_all/CMakeLists.txt +++ b/src/test_all/CMakeLists.txt @@ -16,8 +16,9 @@ target_sources(test_all PRIVATE test_all.cpp ) target_link_libraries(test_all PRIVATE + libdebug applib_tests - Catch2WithMain + Catch2 ) catch_discover_tests(test_all) diff --git a/src/test_all/test_all.cpp b/src/test_all/test_all.cpp index 207ff4d..3cb41cb 100644 --- a/src/test_all/test_all.cpp +++ b/src/test_all/test_all.cpp @@ -10,8 +10,23 @@ Copyright: /// @{ -// Nothing here - by linking to Catch2WithMain we define the main() function. -// We link to all the other test-containing libraries. +#include "catch2/catch_session.hpp" +#include "libdebug/libdebug.h" + + + +int main(int argc, char* argv[]) +{ + debug_register_domain("gtk"); + debug_register_domain("app"); + debug_register_domain("hz"); + debug_register_domain("rmn"); + debug_register_domain("rconfig"); + + int result = Catch::Session().run( argc, argv ); + return result; +} + /// @}