python/test/Jamfile.v2 help needed

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? Thanks! Ralf

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

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@cs.msu.su> To: boost@lists.boost.org 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

The recent build summaries for boost.python come up all blank. I'm guessing this is a bad sign. Are the log files somewhere from which I could tell what's wrong? Given boost svn trunk, I found out I can run bootstrap.sh to get a bjam executable. But I couldn't figure out how to build and run the python tests. Could some help with the commands I need? I have Fedora 6, 8, 11, 12. Ralf ----- Original Message ---- From: Vladimir Prus <ghost@cs.msu.su> To: boost@lists.boost.org 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

Ralf W. Grosse-Kunstleve wrote:
The recent build summaries for boost.python come up all blank. I'm guessing this is a bad sign. Are the log files somewhere from which I could tell what's wrong?
Given boost svn trunk, I found out I can run bootstrap.sh to get a bjam executable. But I couldn't figure out how to build and run the python tests. Could some help with the commands I need? I have Fedora 6, 8, 11, 12.
You just go to libs/python/test and run 'bjam' there -- using bjam executable create by bootstrap.sh Does this work? - Volodya
participants (3)
-
Ralf W. Grosse-Kunstleve
-
Vladimir Prus
-
Vladimir Prus