/[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 1387 - (hide annotations)
Fri Jan 11 07:45:26 2008 UTC (11 years, 3 months ago) by trankine
Original Path: temp/finley/test/finley_UnitTests.cpp
File size: 1215 byte(s)
Restore the trunk that existed before the windows changes were committed to the (now moved to branches) old trunk.
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 robwdcock 649 #include "MeshAdapterTestCase.h"
17    
18 gross 700 #include "tools/CppUnitTest/TestRunner.h"
19 robwdcock 649
20     using namespace CppUnitTest;
21    
22 ksteube 1312 extern "C"{
23     #include "paso/Paso_MPI.h"
24     }
25    
26 robwdcock 649 int main(int argc, char* argv[])
27     {
28 ksteube 1312
29     #ifdef PASO_MPI
30     int status = MPI_Init(&argc, &argv);
31     if (status != MPI_SUCCESS) {
32     std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
33     return status;
34     }
35     #endif
36    
37 robwdcock 649 //
38     // object which runs all of the tests
39     TestRunner runner;
40     //
41     // add the RangeTestCase suite of tests to the runner
42     runner.addTest ("MeshAdapter", MeshAdapterTestCase::suite());
43    
44     // actually run the unit tests.
45     runner.run (argc, argv);
46 ksteube 1312
47     #ifdef PASO_MPI
48     MPI_Finalize();
49     #endif
50    
51 robwdcock 649 return 0;
52     }
53    

  ViewVC Help
Powered by ViewVC 1.1.26