/[escript]/trunk/weipa/test/weipa_UnitTest.cpp
ViewVC logotype

Contents of /trunk/weipa/test/weipa_UnitTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3104 - (show annotations)
Wed Aug 25 00:53:25 2010 UTC (11 years, 2 months ago) by caltinay
File size: 1076 byte(s)
Set up initial test suite files for weipa and some basic preliminary tests.

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 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 #include <iostream>
15
16 #include "EscriptDatasetTestCase.h"
17 #include "tools/CppUnitTest/TestRunner.h"
18
19 using namespace CppUnitTest;
20
21 extern "C"{
22 #include "paso/Paso_MPI.h"
23 }
24
25 int main(int argc, char* argv[])
26 {
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 // object which runs all of the tests
35 TestRunner runner;
36 runner.addTest("EscriptDataset", EscriptDatasetTestCase::suite());
37
38 // actually run the unit tests.
39 runner.run(argc, argv);
40
41 #ifdef PASO_MPI
42 MPI_Finalize();
43 #endif
44
45 return 0;
46 }
47

  ViewVC Help
Powered by ViewVC 1.1.26