1 #include <gtest/gtest.h>
3 #include "unittests/test_XYZ.hpp"
4 #include "unittests/test_NeighborLists.hpp"
5 #include "unittests/test_PointCloudSearch.hpp"
6 #include "unittests/test_LinearAlgebra.hpp"
7 #include "unittests/test_Targets.hpp"
8 #ifdef COMPADRE_USE_MPI
12 #define ASSERT_NO_DEATH(statement) \
13 ASSERT_EXIT({{ statement } ::exit(EXIT_SUCCESS); }, ::testing::ExitedWithCode(0), "")
18 TEST (KokkosInitialize, NoArgsGiven) {
25 TEST (KokkosInitialize, NoCommandLineArgsGiven) {
28 auto kp = KokkosParser(arguments);
35 int main(
int argc,
char **argv) {
38 #ifdef COMPADRE_USE_MPI
39 MPI_Init(&argc, &argv);
42 ::testing::InitGoogleTest(&argc, argv);
43 ::testing::GTEST_FLAG(filter) =
"Kokkos*";
44 int sig = RUN_ALL_TESTS();
47 Kokkos::initialize(argc, argv);
50 ::testing::GTEST_FLAG(filter) =
"-Kokkos*";
51 sig += RUN_ALL_TESTS();
57 #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[]