Boost logo

Boost :

Subject: Re: [boost] python/test/Jamfile.v2 help needed
From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2010-04-04 17:08:04


Hi Vladimir,

Thanks a lot for the instructions. I checked this into the boost trunk.
I'll monitor the automatic builds to see if it works.
I don't know if cygwin supports the calling conventions, and I don't have
a platform for testing. Any help is welcome.

Ralf

----- Original Message ----
From: Vladimir Prus <ghost_at_[hidden]>
To: boost_at_[hidden]
Sent: Sat, April 3, 2010 11:21:04 PM
Subject: Re: [boost] python/test/Jamfile.v2 help needed

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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


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