/[escript]/trunk/finley/test/python/run_escriptOnFinley.py
ViewVC logotype

Contents of /trunk/finley/test/python/run_escriptOnFinley.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1044 - (show annotations)
Mon Mar 19 07:29:31 2007 UTC (12 years, 3 months ago) by gross
File MIME type: text/x-python
File size: 1716 byte(s)
clear name tagging is supported now.
1 # $Id:$
2
3 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
4 http://www.access.edu.au
5 Primary Business: Queensland, Australia"""
6 __license__="""Licensed under the Open Software License version 3.0
7 http://www.opensource.org/licenses/osl-3.0.php"""
8 import unittest
9 import tempfile
10
11 from esys.escript import *
12 from esys.finley import Rectangle
13 import sys
14 import os
15 from test_objects import Test_Dump as Test_Dump
16 from test_objects import Test_Domain as Test_Domain
17
18 try:
19 FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']
20 except KeyError:
21 FINLEY_WORKDIR='.'
22
23
24 NE=4 # number elements, must be even
25 class Test_DomainOnFinley(Test_Domain):
26 def setUp(self):
27 self.domain =Rectangle(NE,NE+1,2)
28 def tearDown(self):
29 del self.domain
30 class Test_DumpOnFinley(Test_Dump):
31 def setUp(self):
32 self.domain =Rectangle(NE,NE+1,2)
33 self.domain_with_different_number_of_samples =Rectangle(2*NE,NE+1,2)
34 self.domain_with_different_number_of_data_points_per_sample =Rectangle(2*NE,NE+1,2,integrationOrder=2)
35 self.domain_with_different_sample_ordering =Rectangle(1,(NE+1)*NE,2)
36 self.filebase=FINLEY_WORKDIR
37
38 def tearDown(self):
39 del self.domain
40 del self.domain_with_different_number_of_samples
41 del self.domain_with_different_number_of_data_points_per_sample
42 del self.domain_with_different_sample_ordering
43
44 if __name__ == '__main__':
45 suite = unittest.TestSuite()
46 suite.addTest(unittest.makeSuite(Test_DumpOnFinley))
47 suite.addTest(unittest.makeSuite(Test_DomainOnFinley))
48 s=unittest.TextTestRunner(verbosity=2).run(suite)
49 if s.wasSuccessful():
50 sys.exit(0)
51 else:
52 sys.exit(1)
53

  ViewVC Help
Powered by ViewVC 1.1.26