/[escript]/release/4.0/esysUtils/test/esysUtils_UnitTest.cpp
ViewVC logotype

Contents of /release/4.0/esysUtils/test/esysUtils_UnitTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5379 - (show annotations)
Mon Dec 15 23:58:17 2014 UTC (6 years, 5 months ago) by jfenwick
File size: 1523 byte(s)
branching for release prep

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 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 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17
18 #include "EsysExceptionTestCase.h"
19 #include "EsysFileWriterTestCase.h"
20 #include <cppunit/CompilerOutputter.h>
21 #include <cppunit/TestResult.h>
22 #include <cppunit/TestResultCollector.h>
23 #include <cppunit/TestRunner.h>
24
25 using namespace CppUnit;
26
27 #include "esysUtils/Esys_MPI.h"
28
29 int main(int argc, char **argv)
30 {
31 #ifdef ESYS_MPI
32 int status = MPI_Init(&argc, &argv);
33 if (status != MPI_SUCCESS) {
34 std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
35 return status;
36 }
37 #endif
38 TestResult controller;
39 TestResultCollector result;
40 controller.addListener(&result);
41 TestRunner runner;
42 runner.addTest(EsysExceptionTestCase::suite());
43 runner.addTest(EsysFileWriterTestCase::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 }
53

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26