Boost logo

Boost :

Subject: Re: [boost] python/test/Jamfile.v2 help needed
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-04-04 02:21:04


Ralf W. Grosse-Kunstleve wrote:
> I've merged the current boost/python and libs/python trunk into the release branch,
> followed by this patch:
>
> Index: libs/python/test/Jamfile.v2
> ===================================================================
> --- libs/python/test/Jamfile.v2 (revision 61033)
> +++ libs/python/test/Jamfile.v2 (working copy)
> @@ -184,8 +184,10 @@
> # bpl-test bienstman5 ;
> # }
>
> -[ bpl-test calling_conventions ]
> -[ bpl-test calling_conventions_mf ]
> +# XXX disabled on release branch only,
> +# XXX to avoid failures on platforms other than Windows
> +# [ bpl-test calling_conventions ]
> +# [ bpl-test calling_conventions_mf ]
>
> # --- unit tests of library components ---
>
>
> Is it possible to have those two tests built and run only under Windows?

Yes. Create a function as follows (in your Jamfile):

        rule require-windows ( properties * )
        {
                if ! <target-os>windows in $(properties)
                {
                        return <build>no ;
                }
        }

then, in requirements of your tests, use <conditional>@require-windows, e.g:

        [ bpl-test calling_conventions : : <condiitonal>@require-windows ]

Note that cygwin is a different OS from windows, so if the test must be run on
cygwin, you need to adjust conditional accordingly.

Does this help?

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk