blob: 22db024cb2b593af453259988c9f7772709295ee [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) {
6 MPI_Init(&argc, &argv);
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 MPI_Finalize();
17
18 return test_result;
19}