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

Diff of /trunk/downunder/test/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3984 by jfenwick, Fri Sep 21 03:23:22 2012 UTC revision 3985 by caltinay, Fri Sep 21 06:44:17 2012 UTC
# Line 19  Import('*') Line 19  Import('*')
19  local_env = env.Clone()  local_env = env.Clone()
20    
21  # files defining test runs (passing in a release)  # files defining test runs (passing in a release)
22  testruns = ['run_gravity.py',\  testruns = [ \
23                'run_datasources.py',\
24                'run_gravity.py',\
25              'run_mappings.py',\              'run_mappings.py',\
26              'run_minimizers.py'              'run_minimizers.py'
27              ]              ]
# Line 30  alltestruns = testruns Line 32  alltestruns = testruns
32  # add unit test to target alias  # add unit test to target alias
33  local_env.PrependENVPath('PYTHONPATH', env.Dir('$BUILD_DIR/$PLATFORM/escript/test/python').abspath)  local_env.PrependENVPath('PYTHONPATH', env.Dir('$BUILD_DIR/$PLATFORM/escript/test/python').abspath)
34  local_env.PrependENVPath('PYTHONPATH', Dir('.').abspath)  local_env.PrependENVPath('PYTHONPATH', Dir('.').abspath)
35  local_env['ENV']['DOWNUNDER_TEST_DATA_ROOT']=Dir('.').srcnode().abspath  local_env['ENV']['DOWNUNDER_TEST_DATA_ROOT']=Dir('ref_data').srcnode().abspath
36  local_env['ENV']['DOWNUNDER_WORKDIR']=Dir('.').abspath  local_env['ENV']['DOWNUNDER_WORKDIR']=Dir('.').abspath
37  env.Alias('local_py_tests',[splitext(x)[0]+'.passed' for x in alltestruns])  env.Alias('local_py_tests',[splitext(x)[0]+'.passed' for x in alltestruns])
38  env.Alias('py_tests', [splitext(x)[0]+'.passed' for x in testruns])  env.Alias('py_tests', [splitext(x)[0]+'.passed' for x in testruns])
# Line 41  Depends(program, 'build_py_tests') Line 43  Depends(program, 'build_py_tests')
43    
44  # add a group of tests  # add a group of tests
45  from grouptest import *  from grouptest import *
46  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)  tgroup=GroupTest("$PYTHONRUNNER ",(("DOWNUNDER_TEST_DATA_ROOT","$BATCH_ROOT/downunder/test/python/ref_data"),('DOWNUNDER_WORKDIR','$BUILD_DIR/downunder/test/python')),"$BUILD_DIR/escript/test/python:$BUILD_DIR/downunder/test/python","$BATCH_ROOT/downunder/test/python",testruns)
47  tgroup.makeDir("$BUILD_DIR/downunder/test")  tgroup.makeDir("$BUILD_DIR/downunder/test")
48  tgroup.makeDir("$BUILD_DIR/downunder/test/python")  tgroup.makeDir("$BUILD_DIR/downunder/test/python")
49  TestGroups.append(tgroup)  TestGroups.append(tgroup)

Legend:
Removed from v.3984  
changed lines
  Added in v.3985

  ViewVC Help
Powered by ViewVC 1.1.26