首页> 外文会议>IEEE International Symposium on High-Assurance Systems Engineering >A novel framework for non-deterministic testing of message-passing programs
【24h】

A novel framework for non-deterministic testing of message-passing programs

机译:一种新的邮件传递程序的非确定性测试框架

获取原文

摘要

Message-passing programs are difficult to test because of their non-deterministic behavior. One approach, called non-deterministic testing, involves executing a message-passing program with the same input many times in hope that faults would be exposed by one of these executions. Non-deterministic testing has been widely used in practice, but unfortunately, in an ad-hoc manner. In this paper, we present a novel framework for non-deterministic testing of message-passing programs. The framework uses a coverage criterion to guide the testing process. During each test run, the sequence of send and receive events that are executed is recorded in an execution trace. After each test run, the trace is analyzed to identify race conditions, which are used to derive coverage elements that have not been covered yet. Then, random delays are inserted at a chosen set of program locations in order to increase the chance of covering the uncovered elements in the next test run. This framework provides a heuristic condition that can be used to decide when to stop testing. The condition is easy to compute and its satisfaction signals that the coverage criterion has likely been satisfied. This framework can be automated at the source code level and allows one to obtain a measure of test coverage at the end of the testing process. We describe a prototype tool and report some empirical results that demonstrate the effectiveness of our framework.
机译:由于其非确定性行为,难以测试的消息传递程序。一种称为非确定性测试的一种方法涉及使用相同的输入执行具有相同输入的消息传递程序,希望错误将被这些执行之一暴露。非确定性测试已被广泛用于实践,但不幸的是,以临时方式。在本文中,我们为消息传递计划提供了一种用于非确定性测试的新框架。该框架使用覆盖范围来指导测试过程。在每个测试运行期间,在执行跟踪中记录执行的发送和接收事件的序列。在每个测试运行之后,分析迹线以识别竞争条件,这些条件用于导出尚未覆盖的覆盖元素。然后,在选择的一组程序集合中插入随机延迟,以便在下次测试运行中增加覆盖未覆盖元素的可能性。此框架提供了一种启发式条件,可用于决定何时停止测试。该条件易于计算,并且其满意度信号可能已经满足。此框架可以在源代码级别自动化,并允许其中在测试过程结束时获得测试覆盖率的度量。我们描述了一个原型工具,并报告了一些展示框架有效性的经验结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号