ViewVC logotype

Contents of /trunk/bruce/test/python/run_utilOnBruce.py

Parent Directory Parent Directory | Revision Log Revision Log

Revision 700 - (show annotations)
Thu Apr 6 00:13:40 2006 UTC (16 years, 2 months ago) by gross
File MIME type: text/x-python
File size: 930 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 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
3 http://www.access.edu.au
4 Primary Business: Queensland, Australia"""
5 __license__="""Licensed under the Open Software License version 3.0
6 http://www.opensource.org/licenses/osl-3.0.php"""
8 import unittest
9 from esys.escript.test_util import Test_util_no_tagged_data as Test_util
10 from esys.escript.test_symbols import Test_symbols
11 from esys.escript import ContinuousFunction
12 from esys.bruce import Rectangle
13 import sys
15 class Test_UtilOnBruce(Test_util,Test_symbols):
16 def setUp(self):
17 self.domain =Rectangle(10,10)
18 self.functionspace = ContinuousFunction(self.domain)
20 if __name__ == '__main__':
21 suite = unittest.TestSuite()
22 suite.addTest(unittest.makeSuite(Test_UtilOnBruce))
23 s=unittest.TextTestRunner(verbosity=2).run(suite)
24 if s.wasSuccessful():
25 sys.exit(0)
26 else:
27 sys.exit(1)

  ViewVC Help
Powered by ViewVC 1.1.26