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 #ifdef COMPADRE_USE_MPI 11 #define ASSERT_NO_DEATH(statement) \ 12 ASSERT_EXIT({{ statement } ::exit(EXIT_SUCCESS); }, ::testing::ExitedWithCode(0), "") 17 TEST (KokkosInitialize, NoArgsGiven) {
18 Kokkos::InitArguments args;
26 TEST (KokkosInitialize, NoCommandLineArgsGiven) {
28 std::vector<std::string> arguments = {
"--kokkos-threads=4"};
29 auto kp = KokkosParser(arguments);
37 int main(
int argc,
char **argv) {
40 #ifdef COMPADRE_USE_MPI 41 MPI_Init(&argc, &argv);
44 ::testing::InitGoogleTest(&argc, argv);
45 ::testing::GTEST_FLAG(filter) =
"Kokkos*";
46 int sig = RUN_ALL_TESTS();
49 auto kp = KokkosParser(argc, argv,
true);
52 ::testing::GTEST_FLAG(filter) =
"-Kokkos*";
53 sig &= RUN_ALL_TESTS();
59 #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)