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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3344 - (hide annotations)
Thu Nov 11 23:26:52 2010 UTC (10 years, 11 months ago) by caltinay
File size: 1563 byte(s)
Phew!
-escript, finley, and dudley now uses weipa's saveVTK implementation
-moved tests from finley to weipa accordingly; dudley still to do
-rebaselined all test files
-fixed a few issues in weipa.saveVTK, e.g. saving metadata without schema
-added a deprecation warning to esys.escript.util.saveVTK
-todo: change doco, tests and other places to use weipa.saveVTK


1 caltinay 3344
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     from os.path import splitext
15     Import('*')
16    
17     local_env = env.Clone()
18    
19     # files defining test runs (passing in a release)
20     testruns = []
21     testruns += ['run_savevtk_tests.py']
22    
23     # files defining tests run locally (not as part of a release)
24     localtestruns = [x for x in Glob('*.py', strings=True) if not x.startswith('run_')]
25    
26     # all tests
27     alltestruns = testruns + localtestruns
28    
29     # add unit test to target alias
30     local_env.PrependENVPath('PYTHONPATH',str(Dir('.')))
31     local_env['ENV']['WEIPA_TEST_MESHES']=env.Dir('#/weipa/test/python/meshes').abspath
32     local_env['ENV']['WEIPA_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    
39     # add a group of tests
40     from grouptest import *
41     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)
42     tgroup.makeDir("$BUILD_DIR/weipa/test/python")
43     TestGroups.append(tgroup)
44    

  ViewVC Help
Powered by ViewVC 1.1.26