/[escript]/trunk/finley/test/finley_UnitTests.cpp
ViewVC logotype

Contents of /trunk/finley/test/finley_UnitTests.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3259 - (show annotations)
Mon Oct 11 01:48:14 2010 UTC (9 years ago) by jfenwick
File size: 1185 byte(s)
Merging dudley and scons updates from branches

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 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 "esysUtils/Esys_MPI.h"
23 }
24
25 int main(int argc, char* argv[])
26 {
27
28 #ifdef ESYS_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 ESYS_MPI
47 MPI_Finalize();
48 #endif
49
50 return 0;
51 }
52

  ViewVC Help
Powered by ViewVC 1.1.26