首页> 外文会议>ACM SIGPLAN-SIGACT symposium on Principles of programming languages >Incremental program testing using program dependence graphs
【24h】

Incremental program testing using program dependence graphs

机译:使用程序依赖图进行增量程序测试

获取原文

摘要

Program dependence graphs have been proposed for use in optimizing, vectorizing, and parallelizing compilers, and for program integration. This paper proposes their use as the basis for incremental program testing when using test data adequacy criteria. Test data adequacy is commonly used to provide some confidence that a particular test suite does a reasonable job of testing a program. Incremental program testing using test data adequacy criteria addresses the problem of testing a modified program given an adequate test suite for the original program. Ideally, one would like to create an adequate test suite for the modified program that reuses as many files from the old test suite as possible. Furthermore, one would like to know, for every file that is in both the old and the new test suites, whether the program components exercised by that file have been affected by the program modification; if no components have been affected, then it is not necessary to rerun the program using that file.

In this paper we define adequacy criteria based on the program dependence graph, and propose techniques based on program slicing to identify components of the modified program that can be tested using files from the old test suite, and components that have been affected by the modification. This information can be used to reduce the time required to create new test files, and to avoid unproductive retesting of unaffected components. Although exact identification of the components listed above is, in general, undecidable, we demonstrate that our techniques provide safe approximations.

机译:已经提出了程序依赖图,用于优化,向量化和并行化编译器,以及用于程序集成。本文提出使用它们作为测试数据充足性标准时的增量程序测试的基础。通常使用测试数据充分性来提供一定的信心,即特定的测试套件可以合理地测试程序。使用测试数据充足性标准进行的增量程序测试解决了在给原始程序足够的测试套件的情况下测试修改后的程序的问题。理想情况下,人们希望为修改后的程序创建一个足够的测试套件,该程序可以重用来自旧测试套件的尽可能多的文件。此外,人们想知道对于旧测试套件和新测试套件中的每个文件,该文件执行的程序组件是否都受到程序修改的影响;如果没有任何组件受到影响,则无需使用该文件重新运行程序。

在本文中,我们基于程序依赖图定义了充分性标准,并提出了基于程序切片的技术,以识别可以使用旧测试套件中的文件进行测试的修改程序的组件,以及受程序影响的组件。修改。此信息可用于减少创建新测试文件所需的时间,并避免对未受影响的组件进行无效的重新测试。尽管通常无法确定上面列出的成分的确切信息,但我们证明了我们的技术可以提供安全的近似值。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号