/[escript]/trunk/finley/test/finley_UnitTests.cpp
ViewVC logotype

Annotation of /trunk/finley/test/finley_UnitTests.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (hide annotations)
Thu Sep 25 23:11:13 2008 UTC (11 years ago) by ksteube
File size: 1180 byte(s)
Copyright updated in all files

1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
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 ksteube 1312
14 ksteube 1811
15 robwdcock 649 #include "MeshAdapterTestCase.h"
16    
17 gross 700 #include "tools/CppUnitTest/TestRunner.h"
18 robwdcock 649
19     using namespace CppUnitTest;
20    
21 ksteube 1312 extern "C"{
22     #include "paso/Paso_MPI.h"
23     }
24    
25 robwdcock 649 int main(int argc, char* argv[])
26     {
27 ksteube 1312
28     #ifdef PASO_MPI
29     int status = MPI_Init(&argc, &argv);
30     if (status != MPI_SUCCESS) {
31     std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
32     return status;
33     }
34     #endif
35    
36 robwdcock 649 //
37     // object which runs all of the tests
38     TestRunner runner;
39     //
40     // add the RangeTestCase suite of tests to the runner
41     runner.addTest ("MeshAdapter", MeshAdapterTestCase::suite());
42    
43     // actually run the unit tests.
44     runner.run (argc, argv);
45 ksteube 1312
46     #ifdef PASO_MPI
47     MPI_Finalize();
48     #endif
49    
50 robwdcock 649 return 0;
51     }
52    

  ViewVC Help
Powered by ViewVC 1.1.26