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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 700 - (hide annotations)
Thu Apr 6 00:13:40 2006 UTC (13 years, 6 months ago) by gross
File MIME type: text/x-python
File size: 2022 byte(s)
A few changes in the build mechanism and the file structure so scons can build release tar files:

  * paso/src/Solver has been moved to paso/src 
  * all test_.py are now run_.py files and are assumed to be passing python tests. they can run by 
    scons py_tests and are part of the release test set
  * escript/py_src/test_ are moved to escript/test/python and are installed in to the build directory 
    (rather then the PYTHONPATH).
  * all py files in test/python which don't start with run_ or test_ are now 'local_py_tests'. they are installed i
    by not run automatically.
  * CppUnitTest is now treated as a escript module (against previous decisions).
  * scons realse builds nor tar/zip files with relvant source code (src and tests in seperate files)

the python tests don't pass yet due to path problems.


1 jgs 149 # $Id$
2    
3 jgs 154 """
4 gross 526 Test suite for the linearPDE iand pdetools test on finley
5 jgs 154
6     @remark:
7    
8     @var __author__: name of author
9     @var __licence__: licence agreement
10     @var __url__: url entry point on documentation
11     @var __version__: version
12     @var __date__: date of the version
13     """
14    
15 elspeth 617 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
16     http://www.access.edu.au
17     Primary Business: Queensland, Australia"""
18     __license__="""Licensed under the Open Software License version 3.0
19     http://www.opensource.org/licenses/osl-3.0.php"""
20 jgs 154 __author__="Lutz Gross, l.gross@uq.edu.au"
21     __url__="http://www.iservo.edu.au/esys/escript"
22     __version__="$Revision$"
23     __date__="$Date$"
24    
25    
26 jgs 149 import unittest
27     from esys.escript.test_linearPDEs import Test_Poisson,Test_LinearPDE
28 gross 526 from esys.escript.test_pdetools import Test_pdetools
29 jgs 153 from esys.finley import Rectangle,Brick
30 jgs 154 import sys
31 jgs 149
32 gross 526 class Test_LinearPDEOnFinley2DOrder1(Test_LinearPDE,Test_pdetools):
33 jgs 149 def setUp(self):
34 jgs 154 self.domain = Rectangle(50,50,1)
35 jgs 149
36 gross 526 class Test_LinearPDEOnFinley2DOrder2(Test_LinearPDE,Test_pdetools):
37 jgs 153 def setUp(self):
38 jgs 154 self.domain = Rectangle(50,50,2)
39 jgs 153
40 gross 526 class Test_LinearPDEOnFinley3DOrder1(Test_LinearPDE,Test_pdetools):
41 jgs 153 def setUp(self):
42     self.domain = Brick(20,10,10,1)
43    
44 gross 526 class Test_LinearPDEOnFinley3DOrder2(Test_LinearPDE,Test_pdetools):
45 jgs 153 def setUp(self):
46     self.domain = Brick(10,10,20,2)
47    
48 jgs 149 class Test_PoissonOnFinley(Test_Poisson):
49     def setUp(self):
50 jgs 153 self.domain = Rectangle(20,10,2)
51 jgs 149
52     if __name__ == '__main__':
53     suite = unittest.TestSuite()
54 jgs 153 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder1))
55 jgs 154 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder2))
56 jgs 153 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder1))
57     suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder2))
58 jgs 149 suite.addTest(unittest.makeSuite(Test_PoissonOnFinley))
59     s=unittest.TextTestRunner(verbosity=2).run(suite)
60     if s.wasSuccessful():
61     sys.exit(0)
62     else:
63     sys.exit(1)
64 jgs 154

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26