/[escript]/release/5.2/dudley/test/dudley_UnitTests.cpp
ViewVC logotype

Contents of /release/5.2/dudley/test/dudley_UnitTests.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6692 - (show annotations)
Mon Jun 25 02:31:06 2018 UTC (3 years, 1 month ago) by jfenwick
File size: 1421 byte(s)
Fix

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2018 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17 #include <escript/EsysMPI.h>
18
19 #include "DudleyDomainTestCase.h"
20
21 #include <cppunit/CompilerOutputter.h>
22 #include <cppunit/TestResult.h>
23 #include <cppunit/TestResultCollector.h>
24 #include <cppunit/TestRunner.h>
25
26 using namespace CppUnit;
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(DudleyDomainTestCase::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/4.0fordebian/dudley/test/dudley_UnitTests.cpp:5567-5588 /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 /branches/trilinos_from_5897/dudley/test/dudley_UnitTests.cpp:5898-6118 /release/3.0/finley/test/finley_UnitTests.cpp:2591-2601 /release/4.0/dudley/test/dudley_UnitTests.cpp:5380-5406 /trunk/ripley/test/python/dudley/test/dudley_UnitTests.cpp:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26