[Scons-users] combining 2 aliasses

Rob Deckers Rob.Deckers at vanderlande.com
Fri Nov 8 04:01:29 EST 2013


Hi Dirk,


>From the SConscripts, there are 2 call's


· env.UnitTest(unittest)

· env.IntegrationTest(integrationtest)

These 2 call's represent 2 builders.

In the emitter of each we use an env.Alias to bundle the individual (unit or integration)tests together in either 'unittests' or 'integrationtests' alias.
In one attempt, I used these emitters to bundle the individual tests together in one big alias. The problem with it is that unit and integration tests are executed mixed, while I want them separate.

I am searching for a 'literal' replacement of:

> scons unittests

> scons integrationtests

( but without using 2 separate commands and without 2 times the overhead of reading the sconscripts)

Kind regards,
Rob Deckers

From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] On Behalf Of Dirk Bächle
Sent: vrijdag 8 november 2013 9:09
To: scons-users at scons.org
Subject: Re: [Scons-users] combining 2 aliasses

Hi Rob,

On 08.11.2013 08:34, Rob Deckers wrote:
Hi,

My question must be very basic, but I can't seem to find the correct way to do it.

I have an alias named unittests that will build all unit test targets.
I also have an alias named integrationtests that will build all integration test targets.

For both tests, a selection of files are copied to a remote target and the resulting xml file is downloaded.

Now I want an alias named something like 'all_tests' that should first do all unittests and after it all integrationtests.


how do you run your unittests and integration tests? Are these single Command() Builders?
Then, I'd try to add another Command Builder for the "all_tests" target, and give it a list of the other both Actions instead of a single one.

Best regards,

Dirk
** Disclaimer **

This e-mail, including any attachments, may include proprietary and confidential information of Vanderlande Industries and may only be read by the person or those persons to whom it is addressed.
This document is forwarded to you in such a form (e-mail) that Vanderlande Industries cannot guarantee the completeness and/or correctness of its contents and information.
If you have received this e-mail message in error, please notify us immediately. Please also delete this document from your computer.
This document may not be reproduced, copied, distributed, published, modified, or furnished to third parties, without the prior written consent of Vanderlande Industries.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131108/78c13633/attachment.html


More information about the Scons-users mailing list