/[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 2005 by jfenwick, Mon Nov 10 01:21:39 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 <iostream>  #include <iostream>
16    
17  #include "DataEmptyTestCase.h"  #include "DataEmptyTestCase.h"
# Line 5  Line 19 
19  #include "DataTaggedTestCase.h"  #include "DataTaggedTestCase.h"
20  #include "DataExpandedTestCase.h"  #include "DataExpandedTestCase.h"
21  #include "DataFactoryTestCase.h"  #include "DataFactoryTestCase.h"
 #include "DataArrayTestCase.h"  
 #include "DataCachedTestCase.h"  
 #include "DataArrayViewTestCase.h"  
22  #include "DataBlocks2DTestCase.h"  #include "DataBlocks2DTestCase.h"
23  #include "DataVectorTestCase.h"  #include "DataVectorTestCase.h"
24  #include "TaipanTestCase.h"  #include "TaipanTestCase.h"
 #include "DataVariableTestCase.h"  
25  #include "DataCTestCase.h"  #include "DataCTestCase.h"
26  #include "DataAlgorithmAdapterTestCase.h"  #include "DataAlgorithmAdapterTestCase.h"
27  #include "FunctionSpaceTestCase.h"  #include "FunctionSpaceTestCase.h"
 #include "DataProfTestCase.h"  
28  #include "DataTestCase.h"  #include "DataTestCase.h"
29    #include "DataMathsTestCase.h"
30    #include "DataTypesTestCase.h"
31    #include "DataLazyTestCase.h"
32    
33  #include "CppUnitTest/TestRunner.h"  #include "tools/CppUnitTest/TestRunner.h"
34    
35  using namespace CppUnitTest;  using namespace CppUnitTest;
36    
37    extern "C"{
38    #include "paso/Paso_MPI.h"
39    }
40    
41  int main(int argc, char* argv[])  int main(int argc, char* argv[])
42  {  {
43    #ifdef PASO_MPI
44            int status = MPI_Init(&argc, &argv);
45            if (status != MPI_SUCCESS) {
46              std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
47              return status;
48            }
49    #endif
50      //      //
51      // object which runs all of the tests      // object which runs all of the tests
52      TestRunner runner;      TestRunner runner;
53      //      //
54      // add the RangeTestCase suite of tests to the runner      // add the RangeTestCase suite of tests to the runner
55        runner.addTest ("DataTypes", DataTypesTestCase::suite());
56        runner.addTest ("DataMaths", DataMathsTestCase::suite());
57      runner.addTest ("DataEmpty", DataEmptyTestCase::suite());      runner.addTest ("DataEmpty", DataEmptyTestCase::suite());
58      runner.addTest ("DataConstant", DataConstantTestCase::suite());      runner.addTest ("DataConstant", DataConstantTestCase::suite());
59      runner.addTest ("DataTagged", DataTaggedTestCase::suite());      runner.addTest ("DataTagged", DataTaggedTestCase::suite());
60      runner.addTest ("DataExpanded", DataExpandedTestCase::suite());      runner.addTest ("DataExpanded", DataExpandedTestCase::suite());
61      runner.addTest ("DataFactory", DataFactoryTestCase::suite());      runner.addTest ("DataFactory", DataFactoryTestCase::suite());
     runner.addTest ("DataArray", DataArrayTestCase::suite());  
     runner.addTest ("DataCached", DataCachedTestCase::suite());  
     runner.addTest ("DataArrayView", DataArrayViewTestCase::suite());  
62      runner.addTest ("DataBlocks2D", DataBlocks2DTestCase::suite());      runner.addTest ("DataBlocks2D", DataBlocks2DTestCase::suite());
63      runner.addTest ("DataVector", DataVectorTestCase::suite());      runner.addTest ("DataVector", DataVectorTestCase::suite());
64      runner.addTest ("Taipan", TaipanTestCase::suite());      runner.addTest ("Taipan", TaipanTestCase::suite());
     runner.addTest ("DataVariable", DataVariableTestCase::suite());  
65      runner.addTest ("DataC", DataCTestCase::suite());      runner.addTest ("DataC", DataCTestCase::suite());
66      runner.addTest ("DataAlgorithmAdapter", DataAlgorithmAdapterTestCase::suite());      runner.addTest ("DataAlgorithmAdapter", DataAlgorithmAdapterTestCase::suite());
67      runner.addTest ("FunctionSpace", FunctionSpaceTestCase::suite());      runner.addTest ("FunctionSpace", FunctionSpaceTestCase::suite());
     runner.addTest ("DataProf", DataProfTestCase::suite());  
68      runner.addTest ("Data", DataTestCase::suite());      runner.addTest ("Data", DataTestCase::suite());
69        runner.addTest ("DataLazy",DataLazyTestCase::suite());
70    
71      // actually run the unit tests.      // actually run the unit tests.
72      runner.run (argc, argv);      runner.run (argc, argv);
73    
74    #ifdef PASO_MPI
75            MPI_Finalize();
76    #endif
77    
78      return 0;      return 0;
79  }  }
80    

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

  ViewVC Help
Powered by ViewVC 1.1.26