mango_tests.cpp
Go to the documentation of this file.
1
// Copyright 2019, University of Maryland and the MANGO development team.
2
//
3
// This file is part of MANGO.
4
//
5
// MANGO is free software: you can redistribute it and/or modify it
6
// under the terms of the GNU Lesser General Public License as
7
// published by the Free Software Foundation, either version 3 of the
8
// License, or (at your option) any later version.
9
//
10
// MANGO is distributed in the hope that it will be useful, but
11
// WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
// Lesser General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public
16
// License along with MANGO. If not, see
17
// <https://www.gnu.org/licenses/>.
18
19
#define CATCH_CONFIG_RUNNER
20
#include "catch.hpp"
21
#include "mpi.h"
22
23
24
// main() taken from https://stackoverflow.com/questions/58289895/is-it-possible-to-use-catch2-for-testing-an-mpi-code
25
int
main
(
int
argc,
char
* argv[] ) {
26
MPI_Init(&argc, &argv);
27
int
result = Catch::Session().run( argc, argv );
28
MPI_Finalize();
29
return
result;
30
}
main
int main(int argc, char *argv[])
Definition:
mango_tests.cpp:25