/[escript]/trunk/finley/test/python/SConscript
ViewVC logotype

Contents of /trunk/finley/test/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 690 - (show annotations)
Tue Mar 28 07:18:51 2006 UTC (17 years ago) by robwdcock
File size: 858 byte(s)
+ Added basic_py_tests target which will run the basic set of python tests. The list of python tests was taken from autoscons

1 Import('*')
2
3 local_env=env.Copy()
4
5 src_dir = local_env.Dir('.').srcnode().abspath
6
7 import os
8 filenames = os.listdir(src_dir)
9 python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']]
10
11 # Filter out busted or not frequently run tests
12
13 program = local_env.RunPyUnitTest(python_src)
14
15 Depends(program, pyinstall)
16 Depends(program, libinstall) # FIXME: The python tests require objects from finley hence you have to have all the libraries available rather than just dep_lib
17
18 #Add Unit Test to target alias
19 test_targets = [os.path.splitext(x)[0]+'.passed' for x in python_src]
20
21 env.Alias('py_tests',test_targets)
22 env.Alias('basic_py_tests',['ImportTest.passed', 'finleyTest.passed', 'SimpleSolve.passed', 'RecTest.passed', 'test_linearPDEsOnFinley.passed', 'test_generators.passed', 'test_visualization_interface.passed', 'test_utilOnFinley.passed'])

  ViewVC Help
Powered by ViewVC 1.1.26