1 #include <iostream> 2 3 // include the google testing header 4 #include <gtest/gtest.h> 5 6 #include "MUQ/config.h" 7 8 #if MUQ_HAS_MPI==1 9 #include <mpi.h> 10 #endif 11 main(int argc,char ** argv)12int main(int argc, char **argv) { 13 ::testing::InitGoogleTest(&argc, argv); 14 15 #if MUQ_HAS_MPI==1 16 const int ierr = MPI_Init(nullptr, nullptr); 17 #endif 18 19 const int res = RUN_ALL_TESTS(); 20 21 #if MUQ_HAS_MPI==1 22 MPI_Finalize(); 23 #endif 24 25 return res; 26 } 27