1 |
|
2 |
/******************************************************* |
3 |
* |
4 |
* Copyright (c) 2003-2008 by University of Queensland |
5 |
* Earth Systems Science Computational Center (ESSCC) |
6 |
* http://www.uq.edu.au/esscc |
7 |
* |
8 |
* Primary Business: Queensland, Australia |
9 |
* Licensed under the Open Software License version 3.0 |
10 |
* http://www.opensource.org/licenses/osl-3.0.php |
11 |
* |
12 |
*******************************************************/ |
13 |
|
14 |
|
15 |
#include "MeshAdapterTestCase.h" |
16 |
|
17 |
#include "tools/CppUnitTest/TestRunner.h" |
18 |
|
19 |
using namespace CppUnitTest; |
20 |
|
21 |
extern "C"{ |
22 |
#include "paso/Paso_MPI.h" |
23 |
} |
24 |
|
25 |
int main(int argc, char* argv[]) |
26 |
{ |
27 |
|
28 |
#ifdef PASO_MPI |
29 |
int status = MPI_Init(&argc, &argv); |
30 |
if (status != MPI_SUCCESS) { |
31 |
std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl; |
32 |
return status; |
33 |
} |
34 |
#endif |
35 |
|
36 |
// |
37 |
// object which runs all of the tests |
38 |
TestRunner runner; |
39 |
// |
40 |
// add the RangeTestCase suite of tests to the runner |
41 |
runner.addTest ("MeshAdapter", MeshAdapterTestCase::suite()); |
42 |
|
43 |
// actually run the unit tests. |
44 |
runner.run (argc, argv); |
45 |
|
46 |
#ifdef PASO_MPI |
47 |
MPI_Finalize(); |
48 |
#endif |
49 |
|
50 |
return 0; |
51 |
} |
52 |
|