/[escript]/trunk/dudley/test/dudley_UnitTests.cpp
ViewVC logotype

Contents of /trunk/dudley/test/dudley_UnitTests.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4154 - (show annotations)
Tue Jan 22 09:30:23 2013 UTC (6 years, 8 months ago) by jfenwick
File size: 1377 byte(s)
Round 1 of copyright fixes
1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2013 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15
16
17 #include "MeshAdapterTestCase.h"
18 #include <cppunit/CompilerOutputter.h>
19 #include <cppunit/TestResult.h>
20 #include <cppunit/TestResultCollector.h>
21 #include <cppunit/TestRunner.h>
22
23
24 using namespace CppUnit;
25
26 extern "C"{
27 #include "esysUtils/Esys_MPI.h"
28 }
29
30 int main(int argc, char* argv[])
31 {
32 #ifdef ESYS_MPI
33 int status = MPI_Init(&argc, &argv);
34 if (status != MPI_SUCCESS) {
35 std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
36 return status;
37 }
38 #endif
39 TestResult controller;
40 TestResultCollector result;
41 controller.addListener(&result);
42 TestRunner runner;
43 runner.addTest(MeshAdapterTestCase::suite());
44 runner.run(controller);
45 CompilerOutputter outputter( &result, std::cerr );
46 outputter.write();
47 #ifdef ESYS_MPI
48 MPI_Finalize();
49 #endif
50 return result.wasSuccessful() ? 0 : 1;
51 }
52

Properties

Name Value
svn:mergeinfo /branches/lapack2681/finley/test/finley_UnitTests.cpp:2682-2741 /branches/pasowrap/dudley/test/dudley_UnitTests.cpp:3661-3674 /branches/py3_attempt2/dudley/test/dudley_UnitTests.cpp:3871-3891 /branches/restext/finley/test/finley_UnitTests.cpp:2610-2624 /branches/ripleygmg_from_3668/dudley/test/dudley_UnitTests.cpp:3669-3791 /branches/stage3.0/finley/test/finley_UnitTests.cpp:2569-2590 /branches/symbolic_from_3470/dudley/test/dudley_UnitTests.cpp:3471-3974 /branches/symbolic_from_3470/ripley/test/python/dudley/test/dudley_UnitTests.cpp:3517-3974 /release/3.0/finley/test/finley_UnitTests.cpp:2591-2601 /trunk/ripley/test/python/dudley/test/dudley_UnitTests.cpp:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26