|
Boost-Build : |
From: Michael Peterson (michael148_at_[hidden])
Date: 2004-09-07 03:55:09
I have been unable to get of these suggestions to work. In both cases I
see the following error:
rule unit-test unknown in module Jamfile</C:/local/sde/... etc.>.
Thoughts?
Michael
-----Original Message-----
From: Zbynek Winkler [mailto:zw-bjam_at_[hidden]]
Sent: Tuesday, September 07, 2004 1:40 AM
To: jamboost_at_[hidden]
Subject: Re: [jamboost] [Q] How to use the unit-test target...
Vladimir Prus wrote:
>Hi Michael,
>
>
>
>>exe main
>> # -- sources
>>
>> : main.cpp NumberTest.cpp
>>
>> # -- libs against which we link
>> ../lib//long/<link>static
>> C:/local/sde/projects/cppunit-1.10.2/lib/cppunitd.lib
>> ;
>>
>>The last Jamfile builds the unit test, main.exe. I would like to be
>>able to use the unit-test target to invoke main.exe automatically. Any
>>help would, as always, be greatly appreciated.
>>
>>
>
>The 'unit-test' rule is synonym for the 'run' rule, which is defined
like
>this:
>
>rule run ( sources + : args * : input-files * : requirements * :
target-name ?
> : default-build * )
>
>So you'd have to write:
>
> unit-test main.cpp NumberTest.cpp > ../lib//long/<link>static
> C:/local/sde/projects/cppunit-1.10.2/lib/cppunitd.lib
> ;
>
>
Has it been changed recently? Because for me, the unit-test requires a
name first. So the above would have to be:
unit-test name-of-the-exe-to-generate-and-run : main.cpp NumberTest.cpp
../lib//long/<link>static
C:/local/sde/projects/cppunit-1.10.2/lib/cppunitd.lib ;
Zbynek
-- http://zw.matfyz.cz/ http://robotika.cz/ Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic Yahoo! Groups Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=129eagag3/M=298184.5285298.6392945.3001176/ D=groups/S=1707281907:HM/EXP=1094632816/A=2319498/R=0/SIG=11thfntfp/*htt p://www.netflix.com/Default?mqso=60185352&partid=5285298> click here <http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=group s/S=:HM/A=2319498/rand=527949670> _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/jamboost/ * To unsubscribe from this group, send an email to: jamboost-unsubscribe_at_[hidden] <mailto:jamboost-unsubscribe_at_[hidden]?subject=Unsubscribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . ------=_NextPart_000_0007_01C4947D.B54EA6F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"= > <TITLE>Message</TITLE> <META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D953045308-07092004><FONT face=3DArial color=3D#0000ff si= ze=3D2>I have=20 been unable to get of these suggestions to work. In both cases I see t= he=20 following error:</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px"> <DIV><SPAN class=3D953045308-07092004><FONT face=3DArial color=3D#0000ff= =20 size=3D2><EM>rule unit-test unknown in module Jamfile</C:/local/sde/..= .=20 etc.>.</EM></FONT></SPAN></DIV></BLOCKQUOTE> <DIV><SPAN class=3D953045308-07092004><FONT face=3DArial color=3D#0000ff=20 size=3D2>Thoughts?</FONT></SPAN></DIV> <DIV><SPAN class=3D953045308-07092004><FONT face=3DArial color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D953045308-07092004><FONT face=3DArial color=3D#0000ff=20 size=3D2>Michael</FONT></SPAN></DIV> <DIV><SPAN class=3D953045308-07092004><FONT face=3DArial color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft><FO= NT=20 face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> Zbynek = Winkler=20 [mailto:zw-bjam_at_[hidden]] <BR><B>Sent:</B> Tuesday, September 07, 2004= 1:40=20 AM<BR><B>To:</B> jamboost_at_[hidden]<BR><B>Subject:</B> Re: [jamboos= t]=20 [Q] How to use the unit-test target...<BR><BR></FONT></DIV><TT>Vladimir P= rus=20 wrote:<BR><BR>>Hi Michael,<BR>><BR>> <BR>><BR>>>e= xe=20 main<BR>>> # --=20 sources<BR>>><BR>>> : main.cpp=20 NumberTest.cpp<BR>>><BR>>> # -- libs agains= t=20 which we link<BR>>> =20 ../lib//long/<link>static<BR>>> =20 C:/local/sde/projects/cppunit-1.10.2/lib/cppunitd.lib<BR>>> &n= bsp; =20 ;<BR>>><BR>>>The last Jamfile builds the unit test,=20 main.exe. I would like to be<BR>>>able to use the unit-test t= arget=20 to invoke main.exe automatically. Any<BR>>>help would, as always, b= e=20 greatly appreciated.<BR>>> =20 <BR>>><BR>><BR>>The 'unit-test' rule is synonym for the 'run'= =20 rule, which is defined like <BR>>this:<BR>><BR>>rule run ( sourc= es +=20 : args * : input-files * : requirements * : target-name=20 ?<BR>> : default-build * )<BR>><BR>>So you'd h= ave=20 to write:<BR>><BR>> unit-test main.cpp NumberTest.cpp=20 > =20 ../lib//long/<link>static<BR>> &nbs= p;=20 C:/local/sde/projects/cppunit-1.10.2/lib/cppunitd.lib<BR>> = =20 ;<BR>> <BR>><BR>Has it been changed recently? Because for me,= the=20 unit-test requires a <BR>name first. So the above would have to=20 be:<BR><BR>unit-test name-of-the-exe-to-generate-and-run : main.cpp=20 NumberTest.cpp=20 <BR>../lib//long/<link>static &n= bsp;=20 <BR>C:/local/sde/projects/cppunit-1.10.2/lib/cppunitd.lib=20 ;<BR><BR>Zbynek<BR><BR>-- <BR><A=20 href=3D"http://zw.matfyz.cz/">http://zw.matfyz.cz/> &= nbsp;=20 <A href=3D"http://robotika.cz/">http://robotika.cz/><BR>Faculty of=20 Mathematics and Physics, Charles University, Prague, Czech=20 Republic<BR><BR></TT><BR></BODY></HTML> ------=_NextPart_000_0007_01C4947D.B54EA6F0--
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