问题
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.
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/30292419/does-boost-have-unit-tests-for-itself