
----- Original Message ----- From: "Boris" <boriss@web.de> To: <boost@lists.boost.org> Sent: Monday, September 22, 2008 10:54 AM Subject: [boost] [process] How to run test cases
As Boost.Process 0.3 has been released it would be great if the test cases are run on various platforms. So far I've tested Boost.Process on WinXP with MSVC 9.0, Cygwin with g++ 3.4.4 and Solaris with g++ 3.4.6 and Sun C++ 5.9. To make it as easy as possible for others to run the test cases here's a short description of how to proceed.
Thanks for giving the platform/compiler tested so far.
Cygwin/GCC 3.4.4 ****************
On Cygwin it's important to know if the Boost libraries have been built for the POSIX or Windows API. By default Boost libraries on Cygwin use the Windows API. With the Windows API the Boost.Process test cases are not passed successfully though (there are compiler errors where I'm not sure currently if they are a Boost.Process problem and how they could be fixed). If you want to run the test cases on Cygwin you must (re-)build the Boost libraries to use the POSIX API:
$ cd ~/boost_1_36_0 $ ./bjam cxxflags=-DBOOST_POSIX_API
Afterwards you can run the test cases:
$ cd ~/boost_1_36_0/libs/process/test $ ../../../bjam cxxflags=-DBOOST_POSIX_API -q
Hi, why do we need to build the whole Boost? All the libraries don't build on cygwin with this flag. While building the whole Boost libraries and I got gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-4.3.4/release/threading-multi/v2/src/v2_operations.o In file included from ./boost/filesystem/v2/config.hpp:31, from ./boost/filesystem/v2/operations.hpp:17, from libs\filesystem\v2\src\v2_operations.cpp:45: ./boost/system/api_config.hpp:28:5: error: #error user defined BOOST_POSIX_API or BOOST_WINDOWS_API not supported and also on the Boost.Process tests gcc.compile.c++ ../../../bin.v2/libs/process/test/include_detail_windows_helpers.test/gcc-4.3.4/debug/threading-multi/include_detail_windows_helpers.o In file included from ../../../boost/system/config.hpp:14, from ../../../boost/process/config.hpp:25, from inclusion\detail_windows_helpers.cpp:14: ../../../boost/system/api_config.hpp:28:5: error: #error user defined BOOST_POSIX_API or BOOST_WINDOWS_API not supported Best, Vicente