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) { |
BerengerBerthoul | 90ba0a9 | 2022-02-08 16:36:32 +0100 | [diff] [blame] | 6 | doctest::mpi_init_thread(argc,argv,MPI_THREAD_MULTIPLE); |
BerengerBerthoul | 8aeb798 | 2020-10-29 14:49:02 +0100 | [diff] [blame] | 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 | |
BerengerBerthoul | 90ba0a9 | 2022-02-08 16:36:32 +0100 | [diff] [blame] | 16 | doctest::mpi_finalize(); |
BerengerBerthoul | 8aeb798 | 2020-10-29 14:49:02 +0100 | [diff] [blame] | 17 | |
| 18 | return test_result; |
| 19 | } |