【24h】

Query-Driven Program Testing

机译:查询驱动的程序测试

获取原文

摘要

We present a new approach to program testing which enables the pro-grammer to specify test suites in terms of a versatile query language. Our querylanguage subsumes standard coverage criteria ranging from simple basic blockcoverage all the way to predicate complete coverage and multiple condition cov-erage, but also facilitates on-the-fly requests for test suites specific to the codestructure, to external requirements, or to ad hoc needs arising in program un-derstanding/exploration. The query language is supported by a model checkingbackend which employs the CBMC framework. Our main algorithmic contribu-tion is a method called iterative constraint strengthening which enables us tosolve a query for an arbitrary coverage criterion by a single call to the modelchecker and a novel form of incremental SAT solving: Whenever the SAT solverfinds a solution, our algorithm compares this solution against the coverage crite-rion, and strengthens the clause database with additional clauses which excluderedundant new solutions. We demonstrate the scalability of our approach and itsability to compute compact test suites with experiments involving device drivers,automotive controllers, and open source projects.
机译:我们提出了一种对程序测试的新方法,使Pro-Grammer能够在多功能查询语言方面指定测试套件。我们的Querylanguage归属标准覆盖标准从简单的基本BlockCoverage一直到谓词完整的覆盖范围和多种情况COV-erage,而且还促进了用于个人资料特有的测试套件的现场请求,以对外部要求或临时要求在计划不受影响/勘探中所需的需求。使用CBMC框架的模型CheckBackend支持查询语言。我们的主要算法contribu - 重刑是一个叫做迭代约束强化方法,它使我们能够向modelchecker和增量SAT求解的一种新形式的一次调用求解值的任意覆盖准则的查询:每当SAT solverfinds的解决方案,我们的算法比较此解决方案对覆盖范围Crite-Rion,并使用额外的子句加强子句数据库,其中包括新的解决方案。我们展示了我们方法的可扩展性和可效力,可以使用涉及设备驱动器,汽车控制器和开源项目的实验来计算紧凑型测试套件。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号