/[escript]/trunk/esysUtils/test/EsysExceptionTest.cpp
ViewVC logotype

Annotation of /trunk/esysUtils/test/EsysExceptionTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2548 - (hide annotations)
Mon Jul 20 06:20:06 2009 UTC (10 years, 3 months ago) by jfenwick
File size: 1093 byte(s)
Updating copyright notices
1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4 jfenwick 2548 * Copyright (c) 2003-2009 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 jgs 82 #include "EsysExceptionTestCase.h"
16 gross 700 #include "tools/CppUnitTest/TestRunner.h"
17 jgs 82
18     using namespace CppUnitTest;
19    
20 ksteube 1312 extern "C"{
21     #include "paso/Paso_MPI.h"
22     }
23    
24 jgs 82 int main(int argc, char **argv) {
25 ksteube 1312
26     #ifdef PASO_MPI
27     int status = MPI_Init(&argc, &argv);
28     if (status != MPI_SUCCESS) {
29     std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
30     return status;
31     }
32     #endif
33    
34 jgs 82 //
35     // object which runs all of the tests
36     TestRunner runner;
37     //
38     // add the RangeTestCase suite of tests to the runner
39     runner.addTest ("EsysException", EsysExceptionTestCase::suite());
40    
41     // actually run the unit tests.
42     runner.run (argc, argv);
43 ksteube 1312
44     #ifdef PASO_MPI
45     MPI_Finalize();
46     #endif
47    
48 jgs 82 return 0;
49     }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26