CTGEN -C语言的单元测试生成器
CTGEN - a Unit Test Generator for C
摘要:
提出了一种新的C代码单元测试生成器CTGEN。它基于前置/后置条件规范或内部断言为C1结构覆盖和功能覆盖生成测试数据。生成器支持自动存根生成,存根返回到被测单元(UUT)的数据可以通过约束来指定。CTGEN的典型应用领域是嵌入式系统测试,因此该工具可以处理低级C中存在的典型别名问题,包括指针算术,结构和联合。CTGEN创建了完整的测试程序,这些程序可以针对UUT进行编译和运行。在本文中,我们描述了CTGEN的主要特点,他们的技术实现,我们详细说明了它的性能比较的竞争测试生成工具的列表。自2011年以来,CTGEN被用于汽车领域嵌入式系统代码的工业规模测试活动。
英文摘要:
We present a new unit test generator for C code, CTGEN. It generates test data for C1 structural coverage and functional coverage based on pre-/post-condition specifications or internal assertions. The generator supports automated stub generation, and data to be returned by the stub to the unit under test (UUT) may be specified by means of constraints. The typical application field for CTGEN is embedded systems testing; therefore the tool can cope with the typical aliasing problems present in low-level C, including pointer arithmetics, structures and unions. CTGEN creates complete test procedures which are ready to be compiled and run against the UUT. In this paper we describe the main features of CTGEN, their technical realisation, and we elaborate on its performance in comparison to a list of competing test generation tools. Since 2011, CTGEN is used in industrial scale test campaigns for embedded systems code in the automotive domain.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。