/[escript]/trunk/weipa/test/EscriptDatasetTestCase.h
ViewVC logotype

Contents of /trunk/weipa/test/EscriptDatasetTestCase.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6810 - (show annotations)
Wed May 1 07:03:46 2019 UTC (7 months, 2 weeks ago) by aellery
File MIME type: text/plain
File size: 1266 byte(s)
Fixed undocumented bug: unit testing would attempt to run silo tests, even when escript was compiled without support for silo.


1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2018 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17
18 #ifndef _ESCRIPTDATASETTESTCASE_H_
19 #define _ESCRIPTDATASETTESTCASE_H_
20
21 #include <escript/AbstractDomain.h>
22
23 #include <cppunit/TestFixture.h>
24 #include <cppunit/TestSuite.h>
25
26 class EscriptDatasetTestCase : public CppUnit::TestFixture
27 {
28 public:
29 #ifdef ESYS_HAVE_SILO
30 void testBase();
31 #endif
32 #if USE_DUDLEY
33 void testDudley();
34 #endif
35 #if USE_FINLEY
36 void testFinley();
37 #endif
38 #if USE_RIPLEY
39 void testRipley();
40 #endif
41 #if USE_SPECKLEY
42 void testSpeckley();
43 #endif
44
45 static CppUnit::TestSuite* suite();
46
47 private:
48 void runDomainTests(escript::Domain_ptr dom);
49 void checkVTKfile(std::string filename);
50 int getDataArrayLength(std::istream& is);
51 };
52
53 #endif
54

  ViewVC Help
Powered by ViewVC 1.1.26