Boost是否本身具有单元测试? [英] Does Boost have unit tests for itself?

查看:51
本文介绍了Boost是否本身具有单元测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于以下两个原因,很难找到有关此信息:

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

  • Boost提供了一个单元测试库.我不是在指这个,但没有办法将其传达给Google
  • 从源头构建Boost涉及自定义构建系统 b2 .它的帮助标志没有提及有关测试的任何内容.
  • 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.

我想知道boost是否包含任何用于测试自身的测试.例如,许多优秀的开源库和应用程序都有 make check make check-all make test 目标,但是我不能在此尝试,因为boost不使用make.

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.

推荐答案

如果从给定库的 test 目录中运行 b2 ,它将为以下程序运行测试该图书馆.

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

如果您从boost文件夹的顶级 status 目录中运行 b2 ,它将为所有库运行测试.

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

这篇关于Boost是否本身具有单元测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆