9 #include <gtest/gtest.h>
11 #include "unittests/test_XYZ.hpp"
12 #include "unittests/test_NeighborLists.hpp"
13 #include "unittests/test_PointCloudSearch.hpp"
14 #include "unittests/test_LinearAlgebra.hpp"
15 #include "unittests/test_Targets.hpp"
16 #ifdef COMPADRE_USE_MPI
20 #define ASSERT_NO_DEATH(statement) \
21 ASSERT_EXIT({{ statement } ::exit(EXIT_SUCCESS); }, ::testing::ExitedWithCode(0), "")
26 TEST (KokkosInitialize, NoArgsGiven) {
33 TEST (KokkosInitialize, NoCommandLineArgsGiven) {
36 auto kp = KokkosParser(arguments);
43 int main(
int argc,
char **argv) {
46 #ifdef COMPADRE_USE_MPI
47 MPI_Init(&argc, &argv);
50 ::testing::InitGoogleTest(&argc, argv);
51 ::testing::GTEST_FLAG(filter) =
"Kokkos*";
52 int sig = RUN_ALL_TESTS();
55 Kokkos::initialize(argc, argv);
58 ::testing::GTEST_FLAG(filter) =
"-Kokkos*";
59 sig += RUN_ALL_TESTS();
65 #ifdef COMPADRE_USE_MPI
Class handling Kokkos command line arguments and returning parameters.
int main(int argc, char **argv)
#define ASSERT_NO_DEATH(statement)
TEST(KokkosInitialize, NoArgsGiven)
constexpr char KOKKOS_THREADS_ARG[]