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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 983 - (hide annotations)
Tue Feb 20 02:49:08 2007 UTC (12 years, 7 months ago) by gross
File MIME type: text/x-python
File size: 1459 byte(s)
full Data object dump and load now available. Tests added.
1 gross 983 # $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    
17     try:
18     FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']
19     except KeyError:
20     FINLEY_WORKDIR='.'
21    
22    
23     NE=4 # number elements, must be even
24     class Test_DumpOnFinley(Test_Dump):
25     def setUp(self):
26     self.domain =Rectangle(NE,NE+1,2)
27     self.domain_with_different_number_of_samples =Rectangle(2*NE,NE+1,2)
28     self.domain_with_different_number_of_data_points_per_sample =Rectangle(2*NE,NE+1,2,integrationOrder=2)
29     self.domain_with_different_sample_ordering =Rectangle(1,(NE+1)*NE,2)
30     self.filebase=FINLEY_WORKDIR
31    
32     def tearDown(self):
33     del self.domain
34     del self.domain_with_different_number_of_samples
35     del self.domain_with_different_number_of_data_points_per_sample
36     del self.domain_with_different_sample_ordering
37    
38     if __name__ == '__main__':
39     suite = unittest.TestSuite()
40     suite.addTest(unittest.makeSuite(Test_DumpOnFinley))
41     s=unittest.TextTestRunner(verbosity=2).run(suite)
42     if s.wasSuccessful():
43     sys.exit(0)
44     else:
45     sys.exit(1)
46    

  ViewVC Help
Powered by ViewVC 1.1.26