doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

main.cpp (458B)


      1 #define DOCTEST_CONFIG_IMPLEMENT
      2 
      3 #include <doctest/extensions/doctest_mpi.h>
      4 
      5 int main(int argc, char** argv) {
      6   doctest::mpi_init_thread(argc,argv,MPI_THREAD_MULTIPLE);
      7 
      8   doctest::Context ctx;
      9   ctx.setOption("reporters", "MpiConsoleReporter");
     10   ctx.setOption("reporters", "MpiFileReporter");
     11   ctx.setOption("force-colors", true);
     12   ctx.applyCommandLine(argc, argv);
     13 
     14   int test_result = ctx.run();
     15 
     16   doctest::mpi_finalize();
     17 
     18   return test_result;
     19 }