/[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 3981 - (hide annotations)
Fri Sep 21 02:47:54 2012 UTC (6 years, 7 months ago) by jfenwick
Original Path: trunk/finley/test/finley_UnitTests.cpp
File size: 1377 byte(s)
First pass of updating copyright notices
1 ksteube 1312
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 jfenwick 3911 * Copyright (c) 2003-2012 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 ksteube 1312 extern "C"{
27 jfenwick 3259 #include "esysUtils/Esys_MPI.h"
28 ksteube 1312 }
29    
30 robwdcock 649 int main(int argc, char* argv[])
31     {
32 jfenwick 3259 #ifdef ESYS_MPI
33 caltinay 3597 int status = MPI_Init(&argc, &argv);
34     if (status != MPI_SUCCESS) {
35     std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
36     return status;
37     }
38 ksteube 1312 #endif
39 caltinay 3597 TestResult controller;
40     TestResultCollector result;
41     controller.addListener(&result);
42     TestRunner runner;
43     runner.addTest(MeshAdapterTestCase::suite());
44     runner.run(controller);
45     CompilerOutputter outputter( &result, std::cerr );
46     outputter.write();
47 jfenwick 3259 #ifdef ESYS_MPI
48 caltinay 3597 MPI_Finalize();
49 ksteube 1312 #endif
50 caltinay 3597 return result.wasSuccessful() ? 0 : 1;
51 robwdcock 649 }
52    

  ViewVC Help
Powered by ViewVC 1.1.26