首页> 外文会议>IEEE/ACM International Conference on Software Engineering >Shadow of a Doubt: Testing for Divergences between Software Versions
【24h】

Shadow of a Doubt: Testing for Divergences between Software Versions

机译:疑义的阴影:软件版本之间的分歧测试

获取原文

摘要

While developers are aware of the importance of comprehensively testing patches, the large effort involved in coming up with relevant test cases means that such testing rarely happens in practice. Furthermore, even when test cases are written to cover the patch, they often exercise the same behaviour in the old and the new version of the code. In this paper, we present a symbolic execution-based technique that is designed to generate test inputs that cover the new program behaviours introduced by a patch. The technique works by executing both the old and the new version in the same symbolic execution instance, with the old version shadowing the new one. During this combined shadow execution, whenever a branch point is reached where the old and the new version diverge, we generate a test case exercising the divergence and comprehensively test the new behaviours of the new version. We evaluate our technique on the Coreutils patches from the CoREBench suite of regression bugs, and show that it is able to generate test inputs that exercise newly added behaviours and expose some of the regression bugs.
机译:虽然开发人员了解全面测试补丁的重要性,但提出了相关的测试用例所涉及的大量努力意味着这种测试很少发生在实践中。此外,即使将测试用例写入覆盖补丁时,它们通常会在旧版本和新版本中锻炼相同的行为。在本文中,我们介绍了一种基于符号的执行技术,该技术旨在生成涵盖由补丁引入的新程序行为的测试输入。该技术通过在同一符号执行实例中执行旧版本和新版本,使用旧版本着色。在此组合阴影执行期间,每当到达旧版本的分支点和新版本的分歧时,我们都会生成锻炼分歧的测试用例,并全面地测试新版本的新行为。我们从Coreutils Patches从回归错误的Coreutils补丁中评估了我们的技术,并显示它能够生成测试输入,锻炼新的行为并公开一些回归错误。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号