arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.02398cs.SE
收藏

MOTIF:一个结合模糊测试的变异测试工具

MOTIF: A tool for Mutation Testing with Fuzzing

Jaekwon Lee, Enrico Viganò, Fabrizio Pastore, Lionel Briand

AI总结:

MOTIF利用灰盒模糊测试生成C语言单元测试用例,克服了符号执行的局限性,能有效检测变异体中的注入故障,在安全关键CPS软件测试中表现更优。

摘要:

变异测试包括生成测试用例来检测注入软件中的故障(生成变异体),而这些故障是原始测试套件无法检测到的。通过运行这样一组增强的测试用例,它可能会发现原始测试套件未曾注意到的实际故障。因此,对于在安全关键的赛博物理系统(CPS)中运行的嵌入式软件来说,这是一种理想的实践。遗憾的是,针对C语言(CPS软件的典型语言)的最先进工具依赖于符号执行,其局限性通常阻碍了其应用。MOTIF通过利用灰盒模糊测试工具来生成C语言的单元测试用例,以检测变异体中注入的故障,从而克服了这些限制。实际上,模糊测试工具在覆盖率反馈的引导下,通过执行被测软件的编译版本来自动生成输入,从而克服了符号执行的局限性。我们的实证评估表明,当后者适用时,它比符号执行能检测出更多的故障(即高达47个百分点)。

英文摘要:

Mutation testing consists of generating test cases that detect faults injected into software (generating mutants) which its original test suite could not. By running such an augmented set of test cases, it may discover actual faults that may have gone unnoticed with the original test suite. It is thus a desired practice for embedded software running in safety-critical cyber-physical systems (CPS). Unfortunately, the state-of-the-art tool targeting C, a typical language for CPS software, relies on symbolic execution, whose limitations often prevent its application. MOTIF overcomes such limitations by leveraging grey-box fuzzing tools to generate unit test cases in C that detect injected faults in mutants. Indeed, fuzzing tools automatically generate inputs by exercising the compiled version of the software under test guided by coverage feedback, thus overcoming the limitations of symbolic execution. Our empirical assessment has shown that it detects more faults than symbolic execution (i.e., up to 47 percentage points), when the latter is applicable.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑