BerengerBerthoul | 8aeb798 | 2020-10-29 14:49:02 +0100 | [diff] [blame^] | 1 | #define DOCTEST_CONFIG_IMPLEMENT |
2 | |||||
3 | #include <doctest/extensions/doctest_mpi.h> | ||||
4 | |||||
5 | int 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 | } |