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

Contents of /trunk/ripley/test/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3792 - (show annotations)
Wed Feb 1 06:16:25 2012 UTC (6 years, 11 months ago) by caltinay
File size: 1731 byte(s)
Merged ripley rectangular domain into trunk.

1
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 import os
15 Import('*')
16
17 local_env = env.Clone()
18
19 #
20 # files defining test runs (passing in a release)
21 #
22 testruns = ['run_utilOnRipley.py']
23 testruns += ['run_escriptOnRipley.py']
24 testruns += ['run_simplesolve.py']
25 testruns += ['run_linearPDEsOnRipley1.py']
26
27 #Add Unit Test to target alias
28 local_env.PrependENVPath('PYTHONPATH', Dir('.').abspath)
29 local_env.PrependENVPath('PYTHONPATH', env.Dir('$BUILD_DIR/$PLATFORM/escript/test/python').abspath)
30 local_env['ENV']['RIPLEY_TEST_DATA']=Dir('.').srcnode().abspath
31 local_env['ENV']['RIPLEY_WORKDIR']=Dir('.').abspath
32 # needed for a test from the util base class in escript
33 local_env['ENV']['ESCRIPT_WORKDIR']=Dir('.').abspath
34 env.Alias('local_py_tests',[os.path.splitext(x)[0]+'.passed' for x in testruns])
35 env.Alias('py_tests', [os.path.splitext(x)[0]+'.passed' for x in testruns])
36
37 # run all tests
38 program = local_env.RunPyUnitTest(testruns)
39 Depends(program, py_wrapper_lib)
40 Depends(program, 'build_py_tests')
41
42 # Add a group of tests
43 from grouptest import *
44 tgroup=GroupTest("$PYTHONRUNNER ",(("RIPLEY_TEST_DATA","$BATCH_ROOT/ripley/test/python"),('RIPLEY_WORKDIR','$BUILD_DIR/ripley/test/python')),"$BUILD_DIR/escript/test/python:$BUILD_DIR/ripley/test/python","$BATCH_ROOT/ripley/test/python",testruns)
45 tgroup.makeDir("$BUILD_DIR/ripley/test/python")
46 TestGroups.append(tgroup)
47

  ViewVC Help
Powered by ViewVC 1.1.26