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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3151 - (show annotations)
Fri Sep 3 05:46:12 2010 UTC (11 years, 1 month ago) by caltinay
File MIME type: text/plain
File size: 1278 byte(s)
More weipa tests including saveVTK.

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 #ifndef _ESCRIPTDATASETTESTCASE_H_
16 #define _ESCRIPTDATASETTESTCASE_H_
17
18 #include "tools/CppUnitTest/TestCase.h"
19 #include "tools/CppUnitTest/TestSuite.h"
20 #include "tools/CppUnitTest/TestCaller.h"
21
22 class EscriptDatasetTestCase : public CppUnitTest::TestCase
23 {
24 public:
25 //
26 // setUp is called before each test method to set up test state
27 void setUp();
28 //
29 // tearDown is called after each test method is called.
30 void tearDown();
31 //
32 // A test method must return void and have no arguments
33 // DataEmpty class
34 void testAll();
35
36 EscriptDatasetTestCase(std::string name) : TestCase(name) {}
37 ~EscriptDatasetTestCase() {}
38
39 //
40 // return the suite of tests to perform
41 //
42 static CppUnitTest::TestSuite* suite();
43
44 private:
45 void checkVTKfile(std::string filename);
46 int getDataArrayLength(std::istream& is);
47
48 };
49
50 #endif
51

  ViewVC Help
Powered by ViewVC 1.1.26