Boost logo

Boost-Build :

Subject: Re: [Boost-build] replacing the **passed** rule (fixing quickbook testing)
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2008-12-02 08:07:33


Hi John !

An'n Dienstag 02 Dezember 2008 hett John Maddock schreven:
> The quickbook tests currently all fail because it's Jamfile creates a "run"
> rule for each test, but as each test uses the same executable and the "run"
> rule deletes the executable if the test passes: so the first test passes,
> and all the others fail because the .exe was deleted by the first test :-(

That's why Volodya added the "preserve-test-target" feature ;-))

> I've tried everything I can think of to fix this, but no luck so far... the
> obvious fix is to replace the "**passed**" rule from testing.jam with one
> that doesn't delete the .exe, but if I add my own version of this rule to
> quickbook-testing.jam then it appears not to be called?
>
> Any better ideas?

Add
 <preserve-test-targets>on

to the Jamfile which runs the tests.

Works here :-))

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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