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

Diff of /trunk/bruce/test/python/SConscript

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

revision 705 by gross, Fri Apr 7 17:57:37 2006 UTC revision 706 by gross, Sat Apr 8 16:13:02 2006 UTC
# Line 26  alltestruns = testruns + localtestruns Line 26  alltestruns = testruns + localtestruns
26  #  #
27  # test files are just compiled:  # test files are just compiled:
28  #  #
29  test_pyc = local_env.PyCompile(testfiles)  test_pyc = env.PyCompile(testfiles)
30    env.Alias('build_py_tests',test_pyc)
31  #  #
32  # run all tests:  # run all tests:
33  #  #
# Line 34  program = local_env.RunPyUnitTest(alltes Line 35  program = local_env.RunPyUnitTest(alltes
35    
36  Depends(program, pyinstall)  Depends(program, pyinstall)
37  Depends(program, dep_lib)  Depends(program, dep_lib)
38    Depends(program, 'build_py_tests')
39    
40    
41  #Add Unit Test to target alias  #Add Unit Test to target alias
42    local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/bruce/test/python')))
43  local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/escript/test/python')))  local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/escript/test/python')))
44  local_env.PrependENVPath('BRUCE_TEST_DATA_ROOT',str(env.Dir('#/bruce/test/python')))  local_env.PrependENVPath('BRUCE_TEST_DATA',str(env.Dir('#/bruce/test/python')))
45    local_env.PrependENVPath('BRUCE_WORKDIR',str(env.Dir('#/build/$PLATFORM/bruce/test/python')))
46  env.Alias('build_py_tests',test_pyc)  env.Alias('build_py_tests',test_pyc)
47  env.Alias('local_py_tests',[os.path.splitext(x)[0]+'.passed' for x in alltestruns])  env.Alias('local_py_tests',[os.path.splitext(x)[0]+'.passed' for x in alltestruns])
48  env.Alias('py_tests', [os.path.splitext(x)[0]+'.passed' for x in testruns ])  env.Alias('py_tests', [os.path.splitext(x)[0]+'.passed' for x in testruns ])
49    
50  # get all the python files in the release tar file  # get all the python files in the release tar file
51  release_pyfiles = [ env.File("SConscript"), ]  release_pyfiles = [ env.File("SConscript"), ]
52  release_testfiles = [ env.File(x) for x in testfiles + testruns ] + [ local_env.Dir(x) for x in testdata_dir ]  release_testfiles = [ env.File(x) for x in testfiles + testruns ] + [ env.Dir(x,'#/bruce/test/python/') for x in testdata_dir ]
53  env.Zip(src_zipfile, release_pyfiles)  env.Zip(src_zipfile, release_pyfiles)
54  env.Tar(src_tarfile, release_pyfiles)  env.Tar(src_tarfile, release_pyfiles)
55  env.Zip(test_zipfile, release_testfiles)  env.Zip(test_zipfile, release_testfiles)

Legend:
Removed from v.705  
changed lines
  Added in v.706

  ViewVC Help
Powered by ViewVC 1.1.26