|
Boost Testing : |
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-11-20 18:56:15
JOAQUIN LOPEZ MU?Z wrote:
> Hello, allow me to repost the following, just in case it
> went unnoticed by someone who can help:
Thanks, for that... My overworked brain overlooked this the first time.
> Hello,
>
> Suppose I've got a test target in my Jamfile.v2 like this:
>
> test-suite "whatever" :
> [ run foo.cpp ]
>
> This generates a target with name foo, which as part of its
> processing builds an executable named (in Win32) foo.exe.
>
> Is there a way have a different name for the executable *without*
> changing the target name?
Yes. The testing target all support specifying the target name,
independent of the sources compiled. The "target-name" corresponds to
the executable it creates, AFAIR...
rule compile ( sources + : requirements * : target-name ? )
rule compile-fail ( sources + : requirements * : target-name ? )
rule link ( sources + : requirements * : target-name ? )
rule link-fail ( sources + : requirements * : target-name ? )
rule run ( sources + : args * : input-files * : requirements *
: target-name ? : default-build * )
rule run-fail ( sources + : args * : input-files * : requirements *
: target-name ? : default-build * )
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo