/[escript]/trunk/finley/test/finley_UnitTests.cpp
ViewVC logotype

Annotation of /trunk/finley/test/finley_UnitTests.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4346 - (hide annotations)
Tue Apr 2 04:46:45 2013 UTC (6 years, 1 month ago) by jfenwick
File size: 1363 byte(s)
Bringing the changes from doubleplusgood branch.
Can't merge directly because svn doesn't transfer changes to renamed files (mutter grumble).
1 ksteube 1312
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 jfenwick 4154 * Copyright (c) 2003-2013 by University of Queensland
5 jfenwick 3981 * http://www.uq.edu.au
6 ksteube 1811 *
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 jfenwick 3981 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12     * Development since 2012 by School of Earth Sciences
13     *
14     *****************************************************************************/
15 ksteube 1312
16 ksteube 1811
17 robwdcock 649 #include "MeshAdapterTestCase.h"
18 caltinay 3597 #include <cppunit/CompilerOutputter.h>
19     #include <cppunit/TestResult.h>
20     #include <cppunit/TestResultCollector.h>
21     #include <cppunit/TestRunner.h>
22 robwdcock 649
23    
24 caltinay 3597 using namespace CppUnit;
25 robwdcock 649
26 jfenwick 3259 #include "esysUtils/Esys_MPI.h"
27 ksteube 1312
28 robwdcock 649 int main(int argc, char* argv[])
29     {
30 jfenwick 3259 #ifdef ESYS_MPI
31 caltinay 3597 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 ksteube 1312 #endif
37 caltinay 3597 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 jfenwick 3259 #ifdef ESYS_MPI
46 caltinay 3597 MPI_Finalize();
47 ksteube 1312 #endif
48 caltinay 3597 return result.wasSuccessful() ? 0 : 1;
49 robwdcock 649 }
50    

  ViewVC Help
Powered by ViewVC 1.1.26