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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2271 - (hide annotations)
Mon Feb 16 05:08:29 2009 UTC (10 years, 7 months ago) by jfenwick
File size: 2530 byte(s)
Merging version 2269 to trunk

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

  ViewVC Help
Powered by ViewVC 1.1.26