/[escript]/trunk/escript/test/escript_UnitTest.cpp
ViewVC logotype

Diff of /trunk/escript/test/escript_UnitTest.cpp

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

branches/ROBW_XPLATFORM/escript/test/escript_UnitTest.cpp revision 642 by robwdcock, Thu Mar 23 14:03:49 2006 UTC trunk/escript/test/escript_UnitTest.cpp revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 1  Line 1 
1    
2    /* $Id$ */
3    
4    /*******************************************************
5     *
6     *           Copyright 2003-2007 by ACceSS MNRF
7     *       Copyright 2007 by University of Queensland
8     *
9     *                http://esscc.uq.edu.au
10     *        Primary Business: Queensland, Australia
11     *  Licensed under the Open Software License version 3.0
12     *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  #include <iostream>  #include <iostream>
17    
18  #include "DataEmptyTestCase.h"  #include "DataEmptyTestCase.h"
# Line 5  Line 20 
20  #include "DataTaggedTestCase.h"  #include "DataTaggedTestCase.h"
21  #include "DataExpandedTestCase.h"  #include "DataExpandedTestCase.h"
22  #include "DataFactoryTestCase.h"  #include "DataFactoryTestCase.h"
 #include "DataArrayTestCase.h"  
 #include "DataCachedTestCase.h"  
23  #include "DataArrayViewTestCase.h"  #include "DataArrayViewTestCase.h"
24  #include "DataBlocks2DTestCase.h"  #include "DataBlocks2DTestCase.h"
25  #include "DataVectorTestCase.h"  #include "DataVectorTestCase.h"
26  #include "TaipanTestCase.h"  #include "TaipanTestCase.h"
 #include "DataVariableTestCase.h"  
27  #include "DataCTestCase.h"  #include "DataCTestCase.h"
28  #include "DataAlgorithmAdapterTestCase.h"  #include "DataAlgorithmAdapterTestCase.h"
29  #include "FunctionSpaceTestCase.h"  #include "FunctionSpaceTestCase.h"
 #include "DataProfTestCase.h"  
30  #include "DataTestCase.h"  #include "DataTestCase.h"
31    
32  #include "CppUnitTest/TestRunner.h"  #include "tools/CppUnitTest/TestRunner.h"
33    
34  using namespace CppUnitTest;  using namespace CppUnitTest;
35    
36    extern "C"{
37    #include "paso/Paso_MPI.h"
38    }
39    
40  int main(int argc, char* argv[])  int main(int argc, char* argv[])
41  {  {
42    #ifdef PASO_MPI
43            int status = MPI_Init(&argc, &argv);
44            if (status != MPI_SUCCESS) {
45              std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
46              return status;
47            }
48    #endif
49      //      //
50      // object which runs all of the tests      // object which runs all of the tests
51      TestRunner runner;      TestRunner runner;
# Line 34  int main(int argc, char* argv[]) Line 56  int main(int argc, char* argv[])
56      runner.addTest ("DataTagged", DataTaggedTestCase::suite());      runner.addTest ("DataTagged", DataTaggedTestCase::suite());
57      runner.addTest ("DataExpanded", DataExpandedTestCase::suite());      runner.addTest ("DataExpanded", DataExpandedTestCase::suite());
58      runner.addTest ("DataFactory", DataFactoryTestCase::suite());      runner.addTest ("DataFactory", DataFactoryTestCase::suite());
     runner.addTest ("DataArray", DataArrayTestCase::suite());  
     runner.addTest ("DataCached", DataCachedTestCase::suite());  
59      runner.addTest ("DataArrayView", DataArrayViewTestCase::suite());      runner.addTest ("DataArrayView", DataArrayViewTestCase::suite());
60      runner.addTest ("DataBlocks2D", DataBlocks2DTestCase::suite());      runner.addTest ("DataBlocks2D", DataBlocks2DTestCase::suite());
61      runner.addTest ("DataVector", DataVectorTestCase::suite());      runner.addTest ("DataVector", DataVectorTestCase::suite());
62      runner.addTest ("Taipan", TaipanTestCase::suite());      runner.addTest ("Taipan", TaipanTestCase::suite());
     runner.addTest ("DataVariable", DataVariableTestCase::suite());  
63      runner.addTest ("DataC", DataCTestCase::suite());      runner.addTest ("DataC", DataCTestCase::suite());
64      runner.addTest ("DataAlgorithmAdapter", DataAlgorithmAdapterTestCase::suite());      runner.addTest ("DataAlgorithmAdapter", DataAlgorithmAdapterTestCase::suite());
65      runner.addTest ("FunctionSpace", FunctionSpaceTestCase::suite());      runner.addTest ("FunctionSpace", FunctionSpaceTestCase::suite());
     runner.addTest ("DataProf", DataProfTestCase::suite());  
66      runner.addTest ("Data", DataTestCase::suite());      runner.addTest ("Data", DataTestCase::suite());
67    
68      // actually run the unit tests.      // actually run the unit tests.
69      runner.run (argc, argv);      runner.run (argc, argv);
70    
71    #ifdef PASO_MPI
72            MPI_Finalize();
73    #endif
74    
75      return 0;      return 0;
76  }  }
77    

Legend:
Removed from v.642  
changed lines
  Added in v.1388

  ViewVC Help
Powered by ViewVC 1.1.26