[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] Conditional unit test execution
From:       "A. Schamp" <schamp () gmail ! com>
Date:       2014-02-04 23:15:15
Message-ID: CAP2sWt7vSRhQzLv0_s=yZXARsseyFb-_U3VE_LrUS1WsViXHHw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Ah, I see, that makes sense.  Thank you for the explanation!  It took me a
while to figure out how to pass properties and requirements in, mainly
because the way the testing rules allowed <testing.args> properties to be
entered without the <testing.args> property tag.  Once I got that sorted
out, it worked like a charm.

Thanks a bunch,
Andrew


On Tue, Feb 4, 2014 at 12:56 PM, Vladimir Prus <ghost@cs.msu.su> wrote:

> On 04.02.2014 22:40, A. Schamp wrote:
>
>> Volodya,
>>
>> Thank you for such specific help.  I think I understand the concept of
>> the generator and the meta-targets a little bit better.  I don't
>> quite see whether I can integrate that with the 'run' and 'link' rules
>> provided by the testing.jam package, which has features (re-running
>> tests if targets change, etc.) that we'd like to retain.  Is such a thing
>> possible, or would we have to roll our own in some way?
>>
>
> Andrew,
>
> actually, I think my example does exactly that - for RUN target. If you
> replace EXE with LINK in the example it should be fully
> identical. LINK type is declared in testing.jam and is effectively
> creating EXE type and then some extra reporting on top.
>
>
>  We are using <target-os>linux in both cases, but I presume another
>> property (architecture or toolset) could be accessible in a similar way?
>>
>
> Yes, indeed. You probably can check for 'gcc-pcc' as value of <toolset> or
> for 'ppc' as value of <toolset-gcc:version> feature, or
> whatever else is suitable. You can use --debug-building to see what
> properties are used for generating metatagers and you can use
> --debug-generators for an actual generation projects, though the output
> will be large on real projects; you might want to play
> with examples.
>
>
> - Volodya
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/
> mailman/listinfo.cgi/boost-build
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>Ah, I see, that makes sense.  Thank you for the explanation!  It \
took me a while to figure out how to pass properties and requirements in, mainly \
because the way the testing rules allowed &lt;testing.args&gt; properties to be \
entered without the &lt;testing.args&gt; property tag.  Once I got that sorted out, \
it worked like a charm.  <br> <br></div>Thanks a bunch,<br>Andrew<br></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 12:56 PM, \
Vladimir Prus <span dir="ltr">&lt;<a href="mailto:ghost@cs.msu.su" \
target="_blank">ghost@cs.msu.su</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="im">On 04.02.2014 22:40, A. Schamp wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Volodya,<br>
<br>
Thank you for such specific help.  I think I understand the concept of the generator \
and the meta-targets a little bit better.  I don&#39;t<br> quite see whether I can \
integrate that with the &#39;run&#39; and &#39;link&#39; rules provided by the \
testing.jam package, which has features (re-running<br> tests if targets change, \
etc.) that we&#39;d like to retain.  Is such a thing possible, or would we have to \
roll our own in some way?<br> </blockquote>
<br></div>
Andrew,<br>
<br>
actually, I think my example does exactly that - for RUN target. If you replace EXE \
with LINK in the example it should be fully<br> identical. LINK type is declared in \
testing.jam and is effectively creating EXE type and then some extra reporting on \
top.<div class="im"><br> <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> We are using &lt;target-os&gt;linux in both cases, but I \
presume another property (architecture or toolset) could be accessible in a similar \
way?<br> </blockquote>
<br></div>
Yes, indeed. You probably can check for &#39;gcc-pcc&#39; as value of &lt;toolset&gt; \
or for &#39;ppc&#39; as value of &lt;toolset-gcc:version&gt; feature, or<br> whatever \
else is suitable. You can use --debug-building to see what properties are used for \
                generating metatagers and you can use<br>
--debug-generators for an actual generation projects, though the output will be large \
on real projects; you might want to play<br> with examples.<div class="HOEnZb"><div \
class="h5"><br> <br>
- Volodya<br>
<br>
______________________________<u></u>_________________<br>
Unsubscribe &amp; other changes: <a \
href="http://lists.boost.org/mailman/listinfo.cgi/boost-build" \
target="_blank">http://lists.boost.org/<u></u>mailman/listinfo.cgi/boost-<u></u>build</a><br>
 </div></div></blockquote></div><br></div>



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic