CTGEN - a Unit Test Generator for C
Authors:
- Tatiana MangelsTMTatiana Mangels
- Jan PeleskaJPJan Peleska
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- A Case Study of Concolic Testing Tools and their Limitations2011
- KLOVER: A Symbolic Execution and Automatic Test Generation Tool for C++ ProgramsLecture Notes in Computer Science, 2011
- Automated Test Case Generation with SMT-Solving and Abstract Interpretation2011
- Using Bounded Model Checking for Coverage Analysis of Safety-Critical Software in an Industrial SettingJournal of Automated Reasoning, 2010
- Integrated and Automated Abstract Interpretation, Verification and Testing of C/C++ Modules2010
- Test Input Generation for Programs with Pointers2009
- Verification of Sequential and Concurrent Programs2009
- Symbolic and Abstract Interpretation for C/C++ ProgramsElectronic Notes in Theoretical Computer Science, 2008
- Pex–White Box Test Generation for .NET2008
- A Tool for Checking ANSI-C Programs2004