【24h】

Generating Succinct Test Cases Using Don't Care Analysis

机译:使用无关分析生成简洁的测试用例

获取原文
获取外文期刊封面目录资料

摘要

We study the problem of reducing test cases generated by bit vector based symbolic execution test generators. In particular, we first consider a guileless test case generation approach that generates assignment statements for each symbolic scalars, array and structure elements and object fields. We show that test cases generated by this approach can be significantly verbose. We then propose a method for making the generated test cases more succinct using a novel analysis entitled don't care analysis. Don't care analysis identifies assignment statements that can be safely removed from the test cases without affecting the overall code coverage. Our algorithm is based on binary and delta-debugging search. Because it exploits the knowledge of the internal SAT solver, it is effective and efficient in practice. To our knowledge, this is the first fully automatic approach that reduces the sizes of test cases generated using symbolic execution. We implement our test case reduction technique for the KLEE test generation tool and evaluate on 295 programs and functions. Our results are encouraging: in average, the reduced test cases are 50 times smaller than the test cases generated by the guileless test case generator. In addition, since our don't care analysis is tightly integrated into the test case generation tool, its overhead to the overall test generation process is negligible.
机译:我们研究了减少由基于位向量的符号执行测试生成器生成的测试用例的问题。特别是,我们首先考虑一种无规测试用例生成方法,该方法为每个符号标量,数组和结构元素以及对象字段生成赋值语句。我们表明,通过这种方法生成的测试用例可能非常冗长。然后,我们提出了一种使用题为“不在乎分析”的新颖分析,使生成的测试用例更加简洁的方法。无关分析可以识别可以从测试用例中安全删除的赋值语句,而不会影响整个代码覆盖范围。我们的算法基于二进制和增量调试搜索。由于它利用了内部SAT求解器的知识,因此在实践中是有效而高效的。据我们所知,这是第一种减少使用符号执行生成的测试用例大小的全自动方法。我们为KLEE测试生成工具实施了测试用例缩减技术,并评估了295个程序和功能。我们的结果令人鼓舞:平均而言,精简后的测试用例比无枪支测试用例生成器生成的测试用例小50倍。另外,由于我们的无关紧要分析已紧密集成到测试用例生成工具中,因此它在整个测试生成过程中的开销可以忽略不计。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号