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

Annotation of /trunk/weipa/test/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3982 - (hide annotations)
Fri Sep 21 03:23:22 2012 UTC (7 years ago) by jfenwick
File size: 1682 byte(s)
More edits + removing pyvisi from trunk

1 caltinay 3344
2 jfenwick 3982 ##############################################################################
3 caltinay 3344 #
4 jfenwick 3911 # Copyright (c) 2003-2012 by University of Queensland
5 jfenwick 3982 # http://www.uq.edu.au
6 caltinay 3344 #
7     # Primary Business: Queensland, Australia
8     # Licensed under the Open Software License version 3.0
9     # http://www.opensource.org/licenses/osl-3.0.php
10     #
11 jfenwick 3982 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12     # Development since 2012 by School of Earth Sciences
13     #
14     ##############################################################################
15 caltinay 3344
16     from os.path import splitext
17     Import('*')
18    
19     local_env = env.Clone()
20    
21     # files defining test runs (passing in a release)
22     testruns = []
23     testruns += ['run_savevtk_tests.py']
24    
25     # files defining tests run locally (not as part of a release)
26     localtestruns = [x for x in Glob('*.py', strings=True) if not x.startswith('run_')]
27    
28     # all tests
29     alltestruns = testruns + localtestruns
30    
31     # add unit test to target alias
32     local_env.PrependENVPath('PYTHONPATH',str(Dir('.')))
33     local_env['ENV']['WEIPA_TEST_MESHES']=env.Dir('#/weipa/test/python/meshes').abspath
34     local_env['ENV']['WEIPA_WORKDIR']=Dir('.').abspath
35     env.Alias('local_py_tests',[splitext(x)[0]+'.passed' for x in alltestruns])
36     env.Alias('py_tests', [splitext(x)[0]+'.passed' for x in testruns])
37    
38     # run all tests
39     program = local_env.RunPyUnitTest(alltestruns)
40    
41     # add a group of tests
42     from grouptest import *
43     tgroup=GroupTest("$PYTHONRUNNER ",(("WEIPA_TEST_DATA","$BATCH_ROOT/weipa/test/python"),('WEIPA_WORKDIR','$BUILD_DIR/weipa/test/python')),"$BUILD_DIR/escript/test/python:$BUILD_DIR/weipa/test/python","$BATCH_ROOT/weipa/test/python",testruns)
44     tgroup.makeDir("$BUILD_DIR/weipa/test/python")
45     TestGroups.append(tgroup)
46    

  ViewVC Help
Powered by ViewVC 1.1.26