Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Boost have unit tests for itself?

It is difficult to find information on this because of two reasons:

  • Boost provides a unit test library. I am not referring to this, but have no means of communicating that to Google
  • Building Boost from source involves the custom build system, b2. Its help flag does not mention anything about tests.

I would like to know if boost contains any tests for testing itself. For example many excellent open source libraries and applications have make check or make check-all or make test targets, but I cannot try that here because boost does not use make.

like image 587
Steven Lu Avatar asked May 17 '15 21:05

Steven Lu


2 Answers

If you run b2 from the test directory of a given library, it will run the tests for that library.

If you run b2 from the top level status directory of your boost folder, it will run the tests for all libraries.

like image 60
Marshall Clow Avatar answered Oct 15 '22 21:10

Marshall Clow


This appears to be an up-to-date page that talks about running the testing suite within the boost libraries.

http://www.boost.org/build/doc/html/bbv2/builtins/testing.html

It's a bit too long to quote at length.

like image 38
jwismar Avatar answered Oct 15 '22 21:10

jwismar