/[escript]/branches/clazy/finley/test/finley_UnitTests.cpp
ViewVC logotype

Diff of /branches/clazy/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 5593 by jfenwick, Fri Apr 24 01:36:26 2015 UTC
# Line 1  Line 1 
1    
2    /*****************************************************************************
3    *
4    * Copyright (c) 2003-2015 by The University of Queensland
5    * http://www.uq.edu.au
6    *
7    * Primary Business: Queensland, Australia
8    * Licensed under the Open Software License version 3.0
9    * http://www.opensource.org/licenses/osl-3.0.php
10    *
11    * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12    * Development 2012-2013 by School of Earth Sciences
13    * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14    *
15    *****************************************************************************/
16    
17    
18  #include "MeshAdapterTestCase.h"  #include "MeshAdapterTestCase.h"
19    #include <cppunit/CompilerOutputter.h>
20    #include <cppunit/TestResult.h>
21    #include <cppunit/TestResultCollector.h>
22    #include <cppunit/TestRunner.h>
23    
24    
25  #include "CppUnitTest/TestRunner.h"  using namespace CppUnit;
26    
27  using namespace CppUnitTest;  #include "esysUtils/Esys_MPI.h"
28    
29  int main(int argc, char* argv[])  int main(int argc, char* argv[])
30  {  {
31          //  #ifdef ESYS_MPI
32          // object which runs all of the tests      int status = MPI_Init(&argc, &argv);
33          TestRunner runner;      if (status != MPI_SUCCESS) {
34          //          std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
35          // add the RangeTestCase suite of tests to the runner          return status;
36          runner.addTest ("MeshAdapter", MeshAdapterTestCase::suite());      }
37    #endif
38          // actually run the unit tests.      TestResult controller;
39          runner.run (argc, argv);      TestResultCollector result;
40          return 0;      controller.addListener(&result);
41        TestRunner runner;
42        runner.addTest(MeshAdapterTestCase::suite());
43        runner.run(controller);
44        CompilerOutputter outputter( &result, std::cerr );
45        outputter.write();
46    #ifdef ESYS_MPI
47        MPI_Finalize();
48    #endif
49        return result.wasSuccessful() ? 0 : 1;
50  }  }
51    

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

  ViewVC Help
Powered by ViewVC 1.1.26