diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3b4823f1eaa5d56c7bb2a7e7201d623e8308d60a..03480e1d62c7fee5f4e78a2e7ea2f04a96674033 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,6 +15,7 @@ target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR}) target_link_libraries (unit_tests PastisUtils + kokkos Catch ) diff --git a/tests/test_main.cpp b/tests/test_main.cpp index b3143fbb1788b7daef8a6cc20d8a0e9bafb308a5..ada032c04175190cd1f25341aeb27ab249808114 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -1,2 +1,15 @@ -#define CATCH_CONFIG_MAIN +#define CATCH_CONFIG_RUNNER #include <catch.hpp> + +#include <Kokkos_Core.hpp> + +int main( int argc, char* argv[] ) +{ + Kokkos::initialize({-1,-1,-1,true}); + + int result = Catch::Session().run( argc, argv ); + + Kokkos::finalize(); + + return result; +}