|
Boost Testing : |
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-11-21 02:57:02
Joaquin M Lopez Munoz wrote:
> Hi René, thanks for your answer, but I'm afraid that is not
> exactly what I want: what I'd like is to change the executable
> file name only, and leave the rest (.cpp names and target name)
> untouched. Sort of like the following (if only the fictitious
> <executable-name> existed):
>
> [run foo.cpp : <executable-name>bar : foo ]
Hm, maybe Volodya has a better answer... There are two options I can
think, which one is best depends on what you goal is in keeping the same
target name:
1. Do as I mentioned with the extra "target-name" plus add an "alias
old-name : new-name ;" target.
2. Use the <tag> feature to change the exe file name. Something like:
[ run foo.cpp : <tag>@foo-as-bar ]
rule foo-as-bar ( name : type ? : property-set )
{
if [ type.is-subtype $(type) EXE ]
{
return [ common.format-name
bar : $(name) : $(type) : $(property-set) ] ;
}
}
The difference is that (1) will change the output directory name of the
test, while (2) wont.
-- -- 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