/[escript]/branches/arrayview_from_1695_trunk/escript/test/escript_UnitTest.cpp
ViewVC logotype

Contents of /branches/arrayview_from_1695_trunk/escript/test/escript_UnitTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1781 - (show annotations)
Thu Sep 11 05:03:14 2008 UTC (10 years, 7 months ago) by jfenwick
File size: 2386 byte(s)
Branch commit

Merged changes from trunk version 1695 up to and including version 1779.


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>
17
18 #include "DataEmptyTestCase.h"
19 #include "DataConstantTestCase.h"
20 #include "DataTaggedTestCase.h"
21 #include "DataExpandedTestCase.h"
22 #include "DataFactoryTestCase.h"
23 #include "DataBlocks2DTestCase.h"
24 #include "DataVectorTestCase.h"
25 #include "TaipanTestCase.h"
26 #include "DataCTestCase.h"
27 #include "DataAlgorithmAdapterTestCase.h"
28 #include "FunctionSpaceTestCase.h"
29 #include "DataTestCase.h"
30 #include "DataMathsTestCase.h"
31 #include "DataTypesTestCase.h"
32
33 #include "tools/CppUnitTest/TestRunner.h"
34
35 using namespace CppUnitTest;
36
37 extern "C"{
38 #include "paso/Paso_MPI.h"
39 }
40
41 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
52 TestRunner runner;
53 //
54 // 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());
58 runner.addTest ("DataConstant", DataConstantTestCase::suite());
59 runner.addTest ("DataTagged", DataTaggedTestCase::suite());
60 runner.addTest ("DataExpanded", DataExpandedTestCase::suite());
61 runner.addTest ("DataFactory", DataFactoryTestCase::suite());
62 runner.addTest ("DataBlocks2D", DataBlocks2DTestCase::suite());
63 runner.addTest ("DataVector", DataVectorTestCase::suite());
64 runner.addTest ("Taipan", TaipanTestCase::suite());
65 runner.addTest ("DataC", DataCTestCase::suite());
66 runner.addTest ("DataAlgorithmAdapter", DataAlgorithmAdapterTestCase::suite());
67 runner.addTest ("FunctionSpace", FunctionSpaceTestCase::suite());
68 runner.addTest ("Data", DataTestCase::suite());
69
70 // actually run the unit tests.
71 runner.run (argc, argv);
72
73 #ifdef PASO_MPI
74 MPI_Finalize();
75 #endif
76
77 return 0;
78 }
79
80

  ViewVC Help
Powered by ViewVC 1.1.26