/[escript]/branches/symbolic_from_3470/dudley/test/dudley_UnitTests.cpp
ViewVC logotype

Contents of /branches/symbolic_from_3470/dudley/test/dudley_UnitTests.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3789 - (show annotations)
Tue Jan 31 04:55:05 2012 UTC (7 years, 2 months ago) by caltinay
File size: 1258 byte(s)
Fast forward to latest trunk revision 3788.

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 "MeshAdapterTestCase.h"
16 #include <cppunit/CompilerOutputter.h>
17 #include <cppunit/TestResult.h>
18 #include <cppunit/TestResultCollector.h>
19 #include <cppunit/TestRunner.h>
20
21
22 using namespace CppUnit;
23
24 extern "C"{
25 #include "esysUtils/Esys_MPI.h"
26 }
27
28 int main(int argc, char* argv[])
29 {
30 #ifdef ESYS_MPI
31 int status = MPI_Init(&argc, &argv);
32 if (status != MPI_SUCCESS) {
33 std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
34 return status;
35 }
36 #endif
37 TestResult controller;
38 TestResultCollector result;
39 controller.addListener(&result);
40 TestRunner runner;
41 runner.addTest(MeshAdapterTestCase::suite());
42 runner.run(controller);
43 CompilerOutputter outputter( &result, std::cerr );
44 outputter.write();
45 #ifdef ESYS_MPI
46 MPI_Finalize();
47 #endif
48 return result.wasSuccessful() ? 0 : 1;
49 }
50

Properties

Name Value
svn:mergeinfo /branches/lapack2681/finley/test/finley_UnitTests.cpp:2682-2741 /branches/pasowrap/dudley/test/dudley_UnitTests.cpp:3661-3674 /branches/restext/finley/test/finley_UnitTests.cpp:2610-2624 /branches/stage3.0/finley/test/finley_UnitTests.cpp:2569-2590 /release/3.0/finley/test/finley_UnitTests.cpp:2591-2601 /trunk/dudley/test/dudley_UnitTests.cpp:3471-3788

  ViewVC Help
Powered by ViewVC 1.1.26