2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Testing fixes from HEAD

[SVN r35610]
This commit is contained in:
Vladimir Prus
2006-10-14 10:46:17 +00:00
parent c9977dc74c
commit bc4f5e0dbd

View File

@@ -526,11 +526,21 @@ class python-test-generator : generator
rule run ( project name ? : property-set : sources * : multiple ? )
{
local python ;
local other-pythons ;
for local s in $(sources)
{
if [ $(s).type ] = PY
{
python = $(s) ;
if ! $(python)
{
# First Python source ends up on command line.
python = $(s) ;
}
else
{
# Other Python sources become dependencies.
other-pythons += $(s) ;
}
}
}
@@ -576,7 +586,8 @@ class python-test-generator : generator
}
}
property-set = [ $(property-set).add-raw <dependency>$(other-pythons) ] ;
result = [ construct-result $(python) $(extensions) $(new-sources)
: $(project) $(name) : $(property-set) ] ;
}
@@ -589,6 +600,10 @@ generators.register-standard testing.expect-success
: RUN_PYD_OUTPUT : RUN_PYD ;
# The flag settings on testing.capture-output do not
# apply to python.capture output at the moment.
# Redo this explicitly.
toolset.flags python.capture-output ARGS <testing.arg> ;
rule capture-output ( target : sources * : properties * )
{
# Setup up proper DLL search path.