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

Diff of /trunk/finley/test/python/SConscript

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

revision 714 by elspeth, Thu Apr 27 05:42:33 2006 UTC revision 1133 by gross, Tue May 8 07:19:33 2007 UTC
# Line 28  alltestruns = testruns + localtestruns Line 28  alltestruns = testruns + localtestruns
28  #  #
29  test_pyc = env.PyCompile(testfiles)  test_pyc = env.PyCompile(testfiles)
30  env.Alias('build_py_tests',test_pyc)  env.Alias('build_py_tests',test_pyc)
 #  
 # run all tests:  
 #  
 program = local_env.RunPyUnitTest(alltestruns)  
   
 Depends(program, pyinstall)  
 Depends(program, dep_lib)  
 Depends(program, 'build_py_tests')  
31    
32  #Add Unit Test to target alias  #Add Unit Test to target alias
33  local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/finley/test/python')))  local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/finley/test/python')))
34  local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/escript/test/python')))  local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/escript/test/python')))
 print  local_env['ENV']['PYTHONPATH']  
35  local_env['ENV']['FINLEY_TEST_DATA']=env.Dir('#/finley/test/python').srcnode().abspath  local_env['ENV']['FINLEY_TEST_DATA']=env.Dir('#/finley/test/python').srcnode().abspath
36  local_env['ENV']['FINLEY_WORKDIR']=env.Dir('#/build/$PLATFORM/finley/test/python').srcnode().abspath  local_env['ENV']['FINLEY_WORKDIR']=env.Dir('#/build/$PLATFORM/finley/test/python').srcnode().abspath
37  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])
# Line 53  for d in testdata_dir: Line 44  for d in testdata_dir:
44     release_datafiles+=[ d+"/"+x for x in os.listdir(local_env.Dir(d).srcnode().abspath) if not x.startswith('.')]     release_datafiles+=[ d+"/"+x for x in os.listdir(local_env.Dir(d).srcnode().abspath) if not x.startswith('.')]
45  release_testfiles = [ env.File(x) for x in testfiles + testruns ] + [ env.File(x) for x in release_datafiles ]  release_testfiles = [ env.File(x) for x in testfiles + testruns ] + [ env.File(x) for x in release_datafiles ]
46  env.Zip(src_zipfile, release_pyfiles)  env.Zip(src_zipfile, release_pyfiles)
 env.Tar(src_tarfile, release_pyfiles)  
47  env.Zip(test_zipfile, release_testfiles)  env.Zip(test_zipfile, release_testfiles)
48  env.Tar(test_tarfile, release_testfiles)  try:
49       env.Tar(test_tarfile, release_testfiles)
50       env.Tar(src_tarfile, release_pyfiles)
51    except AttributeError:
52       pass
53    #
54    # run all tests:
55    #
56    program = local_env.RunPyUnitTest(alltestruns)
57    
58    Depends(program, pyinstall)
59    Depends(program, dep_lib)
60    Depends(program, 'build_py_tests')

Legend:
Removed from v.714  
changed lines
  Added in v.1133

  ViewVC Help
Powered by ViewVC 1.1.26