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

Annotation of /trunk/downunder/test/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3950 - (hide annotations)
Fri Aug 24 06:10:02 2012 UTC (7 years ago) by caltinay
File size: 1666 byte(s)
More tests and corrections in the alternative minimizers.

1 caltinay 3947
2     ########################################################
3     #
4     # Copyright (c) 2003-2012 by University of Queensland
5     # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7     #
8     # Primary Business: Queensland, Australia
9     # Licensed under the Open Software License version 3.0
10     # http://www.opensource.org/licenses/osl-3.0.php
11     #
12     ########################################################
13    
14     from os.path import splitext
15     Import('*')
16    
17     local_env = env.Clone()
18    
19     # files defining test runs (passing in a release)
20 caltinay 3949 testruns = ['run_gravity.py',\
21 caltinay 3950 'run_mappings.py',\
22     'run_minimizers.py'
23 caltinay 3949 ]
24 caltinay 3947
25     # all tests
26 caltinay 3949 alltestruns = testruns
27 caltinay 3947
28     # add unit test to target alias
29     local_env.PrependENVPath('PYTHONPATH', env.Dir('$BUILD_DIR/$PLATFORM/escript/test/python').abspath)
30     local_env.PrependENVPath('PYTHONPATH', Dir('.').abspath)
31     local_env['ENV']['DOWNUNDER_TEST_DATA_ROOT']=Dir('.').srcnode().abspath
32     local_env['ENV']['DOWNUNDER_WORKDIR']=Dir('.').abspath
33     env.Alias('local_py_tests',[splitext(x)[0]+'.passed' for x in alltestruns])
34     env.Alias('py_tests', [splitext(x)[0]+'.passed' for x in testruns])
35    
36     # run all tests
37     program = local_env.RunPyUnitTest(alltestruns)
38     Depends(program, 'build_py_tests')
39    
40     # add a group of tests
41     from grouptest import *
42     tgroup=GroupTest("$PYTHONRUNNER ",(("DOWNUNDER_TEST_DATA_ROOT","$BATCH_ROOT/downunder/test/python"),('DOWNUNDER_WORKDIR','$BUILD_DIR/downunder/test/python')),"$BUILD_DIR/escript/test/python:$BUILD_DIR/downunder/test/python","$BATCH_ROOT/downunder/test/python",testruns)
43     tgroup.makeDir("$BUILD_DIR/downunder/test")
44     tgroup.makeDir("$BUILD_DIR/downunder/test/python")
45     TestGroups.append(tgroup)
46    

  ViewVC Help
Powered by ViewVC 1.1.26