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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 700 - (show annotations)
Thu Apr 6 00:13:40 2006 UTC (13 years, 5 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 # $Id$
2
3 """
4 Test suite for the linearPDE iand pdetools test on finley
5
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 __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 __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 import unittest
27 from esys.escript.test_linearPDEs import Test_Poisson,Test_LinearPDE
28 from esys.escript.test_pdetools import Test_pdetools
29 from esys.finley import Rectangle,Brick
30 import sys
31
32 class Test_LinearPDEOnFinley2DOrder1(Test_LinearPDE,Test_pdetools):
33 def setUp(self):
34 self.domain = Rectangle(50,50,1)
35
36 class Test_LinearPDEOnFinley2DOrder2(Test_LinearPDE,Test_pdetools):
37 def setUp(self):
38 self.domain = Rectangle(50,50,2)
39
40 class Test_LinearPDEOnFinley3DOrder1(Test_LinearPDE,Test_pdetools):
41 def setUp(self):
42 self.domain = Brick(20,10,10,1)
43
44 class Test_LinearPDEOnFinley3DOrder2(Test_LinearPDE,Test_pdetools):
45 def setUp(self):
46 self.domain = Brick(10,10,20,2)
47
48 class Test_PoissonOnFinley(Test_Poisson):
49 def setUp(self):
50 self.domain = Rectangle(20,10,2)
51
52 if __name__ == '__main__':
53 suite = unittest.TestSuite()
54 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder1))
55 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley2DOrder2))
56 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder1))
57 suite.addTest(unittest.makeSuite(Test_LinearPDEOnFinley3DOrder2))
58 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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26