Boost logo

Boost :

From: John Maddock (john_maddock_at_[hidden])
Date: 2002-03-23 07:03:44


I have some comments on the new status makefile/regression tests for you.

1) I like the regression test code in status/Jamfile - is there any chance
of making this generally available as part of the boost build system - it
looks like the sort of thing that can be usefully reused.

2) I don't think that the tests in status/Jamfile should be included by
default from the top level Jamfile - for one thing if a user just wants to
build the boost libraries, they may not want to stick around while hundreds
of test cases build (something that can take some time), for another the
current status/Jamfile implementation results in quite a number of compiler
errors scrolling past the screen (see below).

3) The current implementation of the link-fail and compile-fail tests
results in a number of "failure" messages scrolling past the screen - the
link-fail test is the worst, but compile-fail isn't too good either. The
problem is that although these tests succeed, they none the less indicate
one or more failures occurred, for example the output from
static_assert_test_8 is shown below (this is a successful test but you
wouldn't necessarily know that from the output!):

...found 24 targets...
...found 46 targets...
...updating 7 targets...
MkDir1 ../status/bin/static_assert_test_fail_8.test
MkDir1 ../status/bin/static_assert_test_fail_8.test/gcc
MkDir1 ../status/bin/static_assert_test_fail_8.test/gcc/debug
/home/jm/boost/libs/static_assert/static_assert_test_fail_8.cpp: In function
   `RandomAccessIterator foo(RandomAccessIterator, RandomAccessIterator)
   RandomAccessIterator = std::_List_iterator<int, int&, int*>]':
instantiated from here
/home/jm/boost/libs/static_assert/static_assert_test_fail_8.cpp:21: `sizeof'

   applied to incomplete type `boost::STATIC_ASSERTION_FAILURE<false>'

g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -I"../status" -I".
" -I"/home/jm/boost" -o

...failed gcc-C++-action
static_assert_test_fail_8.o ...
_assert_test_fail_8 for lack of
...failed updating 1 target...
...skipped 1 target...
...updated 5 targets...

John Maddock

Boost list run by bdawes at, gregod at, cpdaniel at, john at