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

Contents of /trunk/dudley/test/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3345 - (show annotations)
Thu Nov 11 23:51:45 2010 UTC (8 years, 1 month ago) by caltinay
File size: 2433 byte(s)
Moved dudley saveVTK tests to weipa and removed unneeded files.

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 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
15 import os
16 Import('*')
17
18 local_env = env.Clone()
19
20 #
21 # files defining test runs (passing in a release)
22 #
23 testruns = []
24 testruns += ['run_escriptOnDudley.py']
25 testruns += ['run_inputOutput.py']
26 #testruns += ['run_linearPDEsOnDudley1.py']
27 #testruns += ['run_linearPDEsOnDudley2.py']
28 #testruns += ['run_models.py']
29 #testruns += ['run_simplesolve.py']
30 #testruns += ['run_utilOnDudley.py']
31 #
32 # files defining a few tests for a quick test
33 #
34 scalable_tests = []
35 scalable_tests += ['run_inputOutput.py']
36 scalable_tests += ['run_simplesolve.py']
37 #
38 # files defining tests run locally (not as part of a release)
39 #
40 localtestruns = [x for x in Glob('*.py', strings=True) if not x.startswith('run_')]
41
42 #
43 # all test
44 #
45 alltestruns = testruns + localtestruns
46 #
47 # test files are just compiled:
48 #
49 #sources = Glob('test_*.py')
50 #test_pyc = env.PyCompile(sources)
51 #env.Alias('build_py_tests', test_pyc)
52
53 #Add Unit Test to target alias
54 local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/dudley/test/python')))
55 local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/escript/test/python')))
56 local_env['ENV']['DUDLEY_TEST_DATA']=env.Dir('#/dudley/test/python').srcnode().abspath
57 local_env['ENV']['DUDLEY_WORKDIR']=env.Dir('#/build/$PLATFORM/dudley/test/python').srcnode().abspath
58 env.Alias('local_py_tests',[os.path.splitext(x)[0]+'.passed' for x in alltestruns])
59 env.Alias('py_tests', [os.path.splitext(x)[0]+'.passed' for x in testruns ])
60 env.Alias('scalable_tests', [os.path.splitext(x)[0]+'.passed' for x in scalable_tests ])
61
62 #
63 # run all tests:
64 #
65 # run all tests
66 program = local_env.RunPyUnitTest(alltestruns)
67 Depends(program, py_wrapper_lib)
68
69 # Add a group of tests
70 from grouptest import *
71 tgroup=GroupTest("$PYTHONRUNNER ",(("DUDLEY_TEST_DATA","$BATCH_ROOT/dudley/test/python"),('DUDLEY_WORKDIR','$BUILD_DIR/dudley/test/python')),"$BUILD_DIR/escript/test/python:$BUILD_DIR/dudley/test/python","$BATCH_ROOT/dudley/test/python",testruns)
72 tgroup.makeDir("$BUILD_DIR/dudley/test/python")
73 TestGroups.append(tgroup)
74

  ViewVC Help
Powered by ViewVC 1.1.26