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

Contents of /trunk/downunder/test/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3982 - (show annotations)
Fri Sep 21 03:23:22 2012 UTC (6 years, 11 months ago) by jfenwick
File size: 1785 byte(s)
More edits + removing pyvisi from trunk

1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2012 by University of Queensland
5 # http://www.uq.edu.au
6 #
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 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development since 2012 by School of Earth Sciences
13 #
14 ##############################################################################
15
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 = ['run_gravity.py',\
23 'run_mappings.py',\
24 'run_minimizers.py'
25 ]
26
27 # all tests
28 alltestruns = testruns
29
30 # add unit test to target alias
31 local_env.PrependENVPath('PYTHONPATH', env.Dir('$BUILD_DIR/$PLATFORM/escript/test/python').abspath)
32 local_env.PrependENVPath('PYTHONPATH', Dir('.').abspath)
33 local_env['ENV']['DOWNUNDER_TEST_DATA_ROOT']=Dir('.').srcnode().abspath
34 local_env['ENV']['DOWNUNDER_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 Depends(program, 'build_py_tests')
41
42 # add a group of tests
43 from grouptest import *
44 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)
45 tgroup.makeDir("$BUILD_DIR/downunder/test")
46 tgroup.makeDir("$BUILD_DIR/downunder/test/python")
47 TestGroups.append(tgroup)
48

  ViewVC Help
Powered by ViewVC 1.1.26