Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Boost's built in tests

Is ./b2 status the correct way to run the tests that come with Boost? To test the libraries themselves?

Related question. Is it generally a good idea to run a libraries test suite, or can the designers be trusted to have run it themselves before deploying?

like image 739
user315118 Avatar asked Jul 20 '14 04:07

user315118


Video Answer


1 Answers

You can run all the Boost unit tests with:

cd <boost-root>/status
b2

Or you can also:

cd <boost-root>/libs/<a-library>/test
b2

And all most of the unit tests are run continuously as part of library development. You can see the results of the tests in the regression test results. Note that libraries can also have extended tests that are not generally run. You would need to consult the particular library docs to see how to run the additional tests.

like image 161
GrafikRobot Avatar answered Sep 21 '22 04:09

GrafikRobot