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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (hide annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 9 months ago) by trankine
File size: 1128 byte(s)
And get the *(&(*&(* name right
1 ksteube 1312
2     /* $Id$ */
3    
4     /*******************************************************
5     *
6     * Copyright 2003-2007 by ACceSS MNRF
7     * Copyright 2007 by University of Queensland
8     *
9     * http://esscc.uq.edu.au
10     * Primary Business: Queensland, Australia
11     * Licensed under the Open Software License version 3.0
12     * http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16 jgs 82 #include "EsysExceptionTestCase.h"
17 gross 700 #include "tools/CppUnitTest/TestRunner.h"
18 jgs 82
19     using namespace CppUnitTest;
20    
21 ksteube 1312 extern "C"{
22     #include "paso/Paso_MPI.h"
23     }
24    
25 jgs 82 int main(int argc, char **argv) {
26 ksteube 1312
27     #ifdef PASO_MPI
28     int status = MPI_Init(&argc, &argv);
29     if (status != MPI_SUCCESS) {
30     std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
31     return status;
32     }
33     #endif
34    
35 jgs 82 //
36     // object which runs all of the tests
37     TestRunner runner;
38     //
39     // add the RangeTestCase suite of tests to the runner
40     runner.addTest ("EsysException", EsysExceptionTestCase::suite());
41    
42     // actually run the unit tests.
43     runner.run (argc, argv);
44 ksteube 1312
45     #ifdef PASO_MPI
46     MPI_Finalize();
47     #endif
48    
49 jgs 82 return 0;
50     }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26