~osomon/pyexiv2/pyexiv2-0.3

« back to all changes in this revision

Viewing changes to SConstruct

  • Committer: Olivier Tilloy
  • Date: 2010-04-14 11:17:53 UTC
  • mto: This revision was merged to the branch mainline in revision 303.
  • Revision ID: olivier@tilloy.net-20100414111753-o3q12jmasyhjjan3
The test scons target is now aware of the result of running the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
def run_tests():
29
29
    _fiddle_with_pythonpath()
30
 
    from test.TestsRunner import run_unit_tests
31
 
    # FIXME: this is not really well integrated as scons is not informed
32
 
    # whether the unit tests passed or failed.
33
 
    # http://www.scons.org/wiki/UnitTests may be of use.
34
 
    result = run_unit_tests()
 
30
    SConscript('test/SConscript')
35
31
 
36
32
if not BUILD_TARGETS:
37
33
    # Default target: lib
44
40
        # module to be in the python path.
45
41
        build_doc()
46
42
    if 'test' in BUILD_TARGETS:
 
43
        # Note: running the unit tests requires the lib to be built.
47
44
        run_tests()
48
45