32 |
# |
# |
33 |
program = local_env.RunPyUnitTest(alltestruns) |
program = local_env.RunPyUnitTest(alltestruns) |
34 |
|
|
|
Depends(pyinstall, test_pyc) |
|
35 |
Depends(program, pyinstall) |
Depends(program, pyinstall) |
36 |
Depends(program, dep_lib) |
Depends(program, dep_lib) |
37 |
|
|
38 |
#Add Unit Test to target alias |
#Add Unit Test to target alias |
39 |
|
local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/escript/test/python'))) |
40 |
|
local_env.PrependENVPath('FINLEY_TEST_DATA_ROOT',str(env.Dir('#/finley/test/python'))) |
41 |
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]) |
42 |
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 ]) |
43 |
|
|
44 |
# get all the python files in the release tar file |
# get all the python files in the release tar file |
45 |
release_pyfiles = [ env.File("SConscript"), ] |
release_pyfiles = [ env.File("SConscript"), ] |
46 |
print env.Dir(testdata_dir[0],'.') |
print env.Dir(testdata_dir[0]) |
47 |
release_testfiles = [ env.File(x) for x in testfiles + testruns ] + [ env.Dir(x,'.') for x in testdata_dir ] |
release_testfiles = [ env.File(x) for x in testfiles + testruns ] + [ env.Dir(x,'.') for x in testdata_dir ] |
48 |
env.Zip(src_zipfile, release_pyfiles) |
env.Zip(src_zipfile, release_pyfiles) |
49 |
env.Tar(src_tarfile, release_pyfiles) |
env.Tar(src_tarfile, release_pyfiles) |