blob: 6d080b76adfc846f964b0aaca8aab6590e809765 [file] [log] [blame]
BerengerBerthoul8aeb7982020-10-29 14:49:02 +01001#define DOCTEST_CONFIG_IMPLEMENT
2
3#include <doctest/extensions/doctest_mpi.h>
4
5int main(int argc, char** argv) {
BerengerBerthoul90ba0a92022-02-08 16:36:32 +01006 doctest::mpi_init_thread(argc,argv,MPI_THREAD_MULTIPLE);
BerengerBerthoul8aeb7982020-10-29 14:49:02 +01007
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
BerengerBerthoul90ba0a92022-02-08 16:36:32 +010016 doctest::mpi_finalize();
BerengerBerthoul8aeb7982020-10-29 14:49:02 +010017
18 return test_result;
19}