/[escript]/branches/clazy/finley/test/finley_UnitTests.cpp
ViewVC logotype

Annotation of /branches/clazy/finley/test/finley_UnitTests.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6207 - (hide annotations)
Mon May 16 00:49:48 2016 UTC (2 years, 11 months ago) by caltinay
Original Path: trunk/finley/test/finley_UnitTests.cpp
File size: 1422 byte(s)
merged finley Mesh and MeshAdapter into FinleyDomain.

1 ksteube 1312
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 jfenwick 5863 * Copyright (c) 2003-2016 by The University of Queensland
5 jfenwick 3981 * http://www.uq.edu.au
6 ksteube 1811 *
7     * Primary Business: Queensland, Australia
8 jfenwick 6112 * Licensed under the Apache License, version 2.0
9     * http://www.apache.org/licenses/LICENSE-2.0
10 ksteube 1811 *
11 jfenwick 3981 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 * Development 2012-2013 by School of Earth Sciences
13     * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 jfenwick 3981 *
15     *****************************************************************************/
16 ksteube 1312
17 caltinay 6017 #include <escript/EsysMPI.h>
18 ksteube 1811
19 caltinay 6207 #include "FinleyDomainTestCase.h"
20 caltinay 5997
21 caltinay 3597 #include <cppunit/CompilerOutputter.h>
22     #include <cppunit/TestResult.h>
23     #include <cppunit/TestResultCollector.h>
24     #include <cppunit/TestRunner.h>
25 robwdcock 649
26    
27 caltinay 3597 using namespace CppUnit;
28 robwdcock 649
29     int main(int argc, char* argv[])
30     {
31 jfenwick 3259 #ifdef ESYS_MPI
32 caltinay 3597 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 ksteube 1312 #endif
38 caltinay 3597 TestResult controller;
39     TestResultCollector result;
40     controller.addListener(&result);
41     TestRunner runner;
42 caltinay 6207 runner.addTest(FinleyDomainTestCase::suite());
43 caltinay 3597 runner.run(controller);
44 caltinay 6207 CompilerOutputter outputter(&result, std::cerr);
45 caltinay 3597 outputter.write();
46 jfenwick 3259 #ifdef ESYS_MPI
47 caltinay 3597 MPI_Finalize();
48 ksteube 1312 #endif
49 caltinay 3597 return result.wasSuccessful() ? 0 : 1;
50 robwdcock 649 }
51    

  ViewVC Help
Powered by ViewVC 1.1.26