/[escript]/trunk/dudley/test/MeshAdapterTestCase.cpp
ViewVC logotype

Contents of /trunk/dudley/test/MeshAdapterTestCase.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3597 - (show annotations)
Thu Sep 15 06:03:17 2011 UTC (8 years, 1 month ago) by caltinay
File size: 1216 byte(s)
Switching to external cppunit:
-removed tools/CppUnitTest
-updated scons script and files
-updated tests to changed API
-updated readme

Bumped scons options file version to 201. Additions:
-cppunit*
-boomeramg*
-vsl_random


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
15 #include "MeshAdapterTestCase.h"
16
17 #include "dudley/CppAdapter/MeshAdapter.h"
18 #include "dudley/CppAdapter/MeshAdapterFactory.h"
19
20 #include "escript/AbstractContinuousDomain.h"
21
22 #include <cppunit/TestCaller.h>
23 #include <boost/scoped_ptr.hpp>
24
25 using namespace escript;
26 using namespace dudley;
27 using namespace CppUnit;
28
29 void MeshAdapterTestCase::testAll()
30 {
31 // test construction of a mesh using the brick factory method
32 // boost::scoped_ptr<AbstractContinuousDomain> myMesh(brick());
33 brick(); // brick now returns a Domain_ptr which will auto delete
34 }
35
36 TestSuite* MeshAdapterTestCase::suite()
37 {
38 TestSuite *testSuite = new TestSuite("MeshAdapterTestCase");
39
40 testSuite->addTest(new TestCaller<MeshAdapterTestCase>(
41 "testAll",&MeshAdapterTestCase::testAll));
42 return testSuite;
43 }
44

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26