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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3632 - (show annotations)
Thu Oct 20 04:27:45 2011 UTC (7 years, 7 months ago) by jfenwick
File size: 2445 byte(s)
Experiments with refining meshes

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 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>
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 #include "DataMathsTestCase.h"
30 #include "DataTypesTestCase.h"
31 #include "DataLazyTestCase.h"
32 #include "SharedDataTestCase.h"
33
34 #include <cppunit/CompilerOutputter.h>
35 #include <cppunit/TestResult.h>
36 #include <cppunit/TestResultCollector.h>
37 #include <cppunit/TestRunner.h>
38
39 using namespace CppUnit;
40
41 extern "C"{
42 #include "esysUtils/Esys_MPI.h"
43 }
44
45 int main(int argc, char* argv[])
46 {
47 #ifdef ESYS_MPI
48 int status = MPI_Init(&argc, &argv);
49 if (status != MPI_SUCCESS) {
50 std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
51 return status;
52 }
53 #endif
54 TestResult controller;
55 TestResultCollector result;
56 controller.addListener(&result);
57 TestRunner runner;
58 runner.addTest(SharedDataTestCase::suite());
59 runner.addTest(DataTypesTestCase::suite());
60 runner.addTest(DataMathsTestCase::suite());
61 runner.addTest(DataEmptyTestCase::suite());
62 runner.addTest(DataConstantTestCase::suite());
63 runner.addTest(DataTaggedTestCase::suite());
64 runner.addTest(DataExpandedTestCase::suite());
65 runner.addTest(DataFactoryTestCase::suite());
66 runner.addTest(DataBlocks2DTestCase::suite());
67 runner.addTest(DataVectorTestCase::suite());
68 runner.addTest(TaipanTestCase::suite());
69 runner.addTest(DataCTestCase::suite());
70 runner.addTest(DataAlgorithmAdapterTestCase::suite());
71 runner.addTest(FunctionSpaceTestCase::suite());
72 runner.addTest(DataTestCase::suite());
73 runner.addTest(DataLazyTestCase::suite());
74
75 runner.run(controller);
76 CompilerOutputter outputter( &result, std::cerr );
77 outputter.write();
78 #ifdef ESYS_MPI
79 MPI_Finalize();
80 #endif
81 return result.wasSuccessful() ? 0 : 1;
82 }
83

  ViewVC Help
Powered by ViewVC 1.1.26