Parent Directory
|
Revision Log
+ Added default targets and test target aliases to control what is built better.
1 | Import('*') |
2 | |
3 | local_env=env.Copy() |
4 | |
5 | src_dir = local_env.Dir('.').srcnode().abspath |
6 | |
7 | import os |
8 | filenames = os.listdir(src_dir) |
9 | python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']] |
10 | |
11 | local_env.RunPyUnitTest(python_src) |
12 | |
13 | #Add Unit Test to target alias |
14 | test_targets = [os.path.splitext(x)[0]+'.passed' for x in python_src] |
15 | |
16 | env.Alias('py_test',test_targets) |
17 | env.Alias('bruce_test', test_targets) |
ViewVC Help | |
Powered by ViewVC 1.1.26 |