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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3597 - (hide 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 jgs 82
2 ksteube 1312 /*******************************************************
3 ksteube 1811 *
4 jfenwick 2881 * Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 * 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 caltinay 3597 #include "MeshAdapterTestCase.h"
16    
17 jfenwick 3085 #include "dudley/CppAdapter/MeshAdapter.h"
18     #include "dudley/CppAdapter/MeshAdapterFactory.h"
19 jgs 473
20 robwdcock 670 #include "escript/AbstractContinuousDomain.h"
21 jgs 82
22 caltinay 3597 #include <cppunit/TestCaller.h>
23 jgs 82 #include <boost/scoped_ptr.hpp>
24    
25     using namespace escript;
26 jfenwick 3085 using namespace dudley;
27 caltinay 3597 using namespace CppUnit;
28 jgs 82
29 caltinay 3597 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 jgs 82 }
35    
36 caltinay 3597 TestSuite* MeshAdapterTestCase::suite()
37 jgs 82 {
38 caltinay 3597 TestSuite *testSuite = new TestSuite("MeshAdapterTestCase");
39 jgs 82
40 caltinay 3597 testSuite->addTest(new TestCaller<MeshAdapterTestCase>(
41     "testAll",&MeshAdapterTestCase::testAll));
42     return testSuite;
43 jgs 82 }
44    

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26