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

Add the test target name to the bjam XML log output to make it easier to match tests to jam targets.

[SVN r44790]
This commit is contained in:
Rene Rivera
2008-04-26 22:21:50 +00:00
parent abf4a6418e
commit 9dc48843f8

View File

@@ -239,6 +239,9 @@ rule dump-test ( target )
}
}
local target-name = [ $(project).get location ] // [ $(target).name ] .test ;
target-name = $(target-name:J=) ;
local r = [ $(target).requirements ] ;
# Extract values of the <test-info> feature.
local test-info = [ $(r).get <test-info> ] ;
@@ -251,6 +254,7 @@ rule dump-test ( target )
" ;
.contents on $(.out-xml) +=
"$(nl) <test type=\"$(type)\" name=\"$(name)\">"
"$(nl) <target><![CDATA[$(target-name)]]></target>"
"$(nl) <info><![CDATA[$(test-info)]]></info>"
"$(nl) <source><![CDATA[$(source-files)]]></source>"
"$(nl) </test>"