Does Boost have unit tests for itself?

我怕爱的太早我们不能终老 提交于 2021-02-07 06:19:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!