|
Boost Testing : |
From: Doug Gregor (dgregor_at_[hidden])
Date: 2005-05-24 15:49:49
On May 24, 2005, at 3:13 PM, Jonathan Turkanis wrote:
> Rene Rivera wrote:
>> Jonathan Turkanis wrote:
>>
>>> Two of the iostreams regression tests, gzip_test.cpp and
>>> zlib_test.cpp rely on the third-party open source library zlib. In
>>> addition, bzip2_test.cpp relies on the third-party open source
>>> library libbz2.
>>
>> Ideally those tests and features would be disabled if the libraries
>> are not available.
>
> As far as I know there's no standard location for either zlib source
> or binary
> on Windows, so I don't see how to do this unless I disable the
> compression
> filters by default on Windows.
That might be a good alternative. Let the presence of ZLIB_SOURCE
and/or BZIP2_SOURCE on Windows indicate that the tests should be run;
otherwise, skip 'em. Having regression testers tweak their
configurations is dangerous business: As Rene points out, users might
be rather confused when all of the regression tests run but they can't
build the library for themselves.
Doug