使用代码度量生成最大配置及其变体
Generating Maximal Configurations and Their Variants Using Code Metrics
AI总结:
本文提出结合语义采样与代码度量的混合配置生成方法,并在框架 CONFIZZ 中实现基于 SAT/MaxSAT 的最大配置生成和代码度量引导的模糊测试,在 BusyBox 上取得了更优的覆盖率。
摘要:
测试可配置系统仍然具有挑战性且成本高昂。用于测试的配置生成往往采用基于语义采样的技术(例如,关于配置变量的逻辑公式,通常称为存在条件)或基于结构代码度量的技术(例如,代码覆盖率)。在本文中,我们描述了将这两类技术有效结合的混合方法。我们提出了新的配置生成算法,这些算法利用约束求解(SAT 和 MaxSAT)和配置模糊测试,并在配置生成框架 CONFIZZ 中实现了我们的方法。CONFIZZ 既能够生成最大配置(能够同时满足的最大存在条件集合),也能够执行代码度量引导的配置模糊测试。在高度可配置的基准 BusyBox 上的评估结果表明,我们基于 MaxSAT 的配置生成在若干代码度量上取得了更好的覆盖率。结果还表明,当需要多个配置的高覆盖率时,CONFIZZ 的存在条件模糊测试优于其他替代方法。
英文摘要:
Testing configurable systems continues to be challenging and costly. Generation of configurations for testing tends to use either techniques based on semantic sampling (e.g., logical formulas over configuration variables, often called presence conditions) or structural code metrics (e.g., code coverage). In this paper we describe our hybrid approaches that combine these two kinds of techniques to good effect. We present new configuration-generation algorithms that leverage constraint solving (SAT and MaxSAT) and configuration fuzzing, and implement our approach in a configuration-generation framework, CONFIZZ. CONFIZZ both enables the generation of maximal configurations (maximal sets of presence conditions that can be satisfied together) and performs code-metric guided configuration fuzzing. Results from evaluation on BusyBox, a highly configurable benchmark, show that our MaxSAT-based configuration generation achieves better coverage for several code metrics. Results also show that, when high coverage of multiple configurations is needed, CONFIZZ's presence-condition fuzzing outperforms alternatives.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。