/[escript]/branches/schroedinger/esysUtils/test/EsysExceptionTest.cpp
ViewVC logotype

Contents of /branches/schroedinger/esysUtils/test/EsysExceptionTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1858 - (show annotations)
Wed Oct 8 00:28:28 2008 UTC (12 years, 11 months ago) by jfenwick
File size: 1093 byte(s)
Branch of branch moreshared_from_1812 at revision 1857.

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2008 by University of Queensland
5 * 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
14
15 #include "EsysExceptionTestCase.h"
16 #include "tools/CppUnitTest/TestRunner.h"
17
18 using namespace CppUnitTest;
19
20 extern "C"{
21 #include "paso/Paso_MPI.h"
22 }
23
24 int main(int argc, char **argv) {
25
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 //
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
44 #ifdef PASO_MPI
45 MPI_Finalize();
46 #endif
47
48 return 0;
49 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26