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

Annotation of /trunk/escript/test/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 695 - (hide annotations)
Thu Mar 30 12:44:11 2006 UTC (15 years, 6 months ago) by gross
File size: 893 byte(s)
obsolet tests removed
1 robwdcock 654 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     python_src.remove('benchmark.py') # FIXME: fails to run
13     python_src.remove('SliceTest.py') # FIXME: fails to run
14    
15     program = local_env.RunPyUnitTest(python_src)
16    
17     Depends(program, pyinstall)
18 robwdcock 659 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
19 robwdcock 654
20     #Add Unit Test to target alias
21     test_targets = [os.path.splitext(x)[0]+'.passed' for x in python_src]
22    
23     env.Alias('py_tests',test_targets)
24 gross 695 env.Alias('basic_py_tests',['ImportTest.passed', 'MiscTests.passed', 'ArchiveTests.passed', 'newEscriptTests.passed', 'test_xml.passed', 'insituTests.passed''])

  ViewVC Help
Powered by ViewVC 1.1.26