Boost logo

Boost-Build :

From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2005-07-31 06:08:22


Hi there

I have the following Jamfile.v2:

project libs/statechart/test ;

rule statechart-run ( source : name : additional-options * )
{
return
[ run
$(source).cpp ../../../libs/test/build//boost_test_exec_monitor
: : : $(additional-options) : $(name) ] ;
}

rule statechart-st-run ( source : name : additional-options * )
{
return
[ statechart-run $(source) : $(name)
: <threading>single
<define>BOOST_DISABLE_THREADS $(additional-options) ] ;
}

rule statechart-st-run-variants ( source )
{
local result ;
result += [ statechart-st-run $(source) : $(source)Normal : ] ;
result += [ statechart-st-run $(source) : $(source)Native
: <define>BOOST_STATECHART_USE_NATIVE_RTTI ] ;
return result ;
}

test-suite statechart :
[ statechart-st-run HistoryTest : HistoryTest : ] # *** here ***
;

This does what I would expect. However, if I change the last line to

[ statechart-st-run-variants HistoryTest ]

I get the following error

D:/Andreas/My
Documents/Statechart/boost_1_32_0/tools/build/v2/tools\testing.jam
:145: in test-suite
rule result.name unknown in module testing.
..\test\Jamfile.v2:65: in modules.load
[snip]

The same works in v1, shouldn't it work in v2 too? What am I missing?

Regards,

-- 
Andreas Huber
When replying by private email, please remove the words spam and trap 
from the address shown in the header.
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk