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 |
# |
# |
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 |
#Add Unit Test to target alias |
#Add Unit Test to target alias |
41 |
local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/escript/test/python'))) |
local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/escript/test/python'))) |
42 |
|
local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/modellib/test/python'))) |
43 |
local_env.PrependENVPath('MODELLIB_TEST_DATA_ROOT',str(env.Dir('#/modellib/test/python'))) |
local_env.PrependENVPath('MODELLIB_TEST_DATA_ROOT',str(env.Dir('#/modellib/test/python'))) |
44 |
|
local_env.PrependENVPath('MODELLIB_WORKDIR',str(env.Dir('#/build/$PLATFORM/modellib/test/python'))) |
45 |
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]) |
46 |
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 ]) |
47 |
|
|