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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/ROBW_XPLATFORM/finley/test/finley_UnitTests.cpp revision 649 by robwdcock, Fri Mar 24 06:07:07 2006 UTC trunk/finley/test/finley_UnitTests.cpp revision 1811 by ksteube, Thu Sep 25 23:11:13 2008 UTC
# Line 1  Line 1 
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"  #include "MeshAdapterTestCase.h"
16    
17  #include "CppUnitTest/TestRunner.h"  #include "tools/CppUnitTest/TestRunner.h"
18    
19  using namespace CppUnitTest;  using namespace CppUnitTest;
20    
21    extern "C"{
22    #include "paso/Paso_MPI.h"
23    }
24    
25  int main(int argc, char* argv[])  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          // object which runs all of the tests
38          TestRunner runner;          TestRunner runner;
# Line 15  int main(int argc, char* argv[]) Line 42  int main(int argc, char* argv[])
42    
43          // actually run the unit tests.          // actually run the unit tests.
44          runner.run (argc, argv);          runner.run (argc, argv);
45    
46    #ifdef PASO_MPI
47            MPI_Finalize();
48    #endif
49    
50          return 0;          return 0;
51  }  }
52    

Legend:
Removed from v.649  
changed lines
  Added in v.1811

  ViewVC Help
Powered by ViewVC 1.1.26