mirror of https://github.com/onqtam/doctest
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
458 B
C++
20 lines
458 B
C++
#define DOCTEST_CONFIG_IMPLEMENT
|
|
|
|
#include <doctest/extensions/doctest_mpi.h>
|
|
|
|
int main(int argc, char** argv) {
|
|
doctest::mpi_init_thread(argc,argv,MPI_THREAD_MULTIPLE);
|
|
|
|
doctest::Context ctx;
|
|
ctx.setOption("reporters", "MpiConsoleReporter");
|
|
ctx.setOption("reporters", "MpiFileReporter");
|
|
ctx.setOption("force-colors", true);
|
|
ctx.applyCommandLine(argc, argv);
|
|
|
|
int test_result = ctx.run();
|
|
|
|
doctest::mpi_finalize();
|
|
|
|
return test_result;
|
|
}
|