/[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 3911 - (hide annotations)
Thu Jun 14 01:01:03 2012 UTC (6 years, 10 months ago) by jfenwick
Original Path: trunk/finley/test/finley_UnitTests.cpp
File size: 1258 byte(s)
Copyright changes
1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4 jfenwick 3911 * Copyright (c) 2003-2012 by University of Queensland
5 ksteube 1811 * 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 ksteube 1312
14 ksteube 1811
15 robwdcock 649 #include "MeshAdapterTestCase.h"
16 caltinay 3597 #include <cppunit/CompilerOutputter.h>
17     #include <cppunit/TestResult.h>
18     #include <cppunit/TestResultCollector.h>
19     #include <cppunit/TestRunner.h>
20 robwdcock 649
21    
22 caltinay 3597 using namespace CppUnit;
23 robwdcock 649
24 ksteube 1312 extern "C"{
25 jfenwick 3259 #include "esysUtils/Esys_MPI.h"
26 ksteube 1312 }
27    
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