CTGEN - a Unit Test Generator for C
Tatiana Mangels, Jan Peleska

TL;DR
CTGEN is a specialized unit test generator for C that automates test data creation, supports complex C features, and is used in industrial embedded systems testing, improving coverage and efficiency.
Contribution
The paper introduces CTGEN, a novel C test generator capable of handling low-level C features and integrating with industrial embedded systems testing.
Findings
Achieves high structural and functional coverage in C testing.
Supports complex C features like pointers, structures, and unions.
Proven effectiveness in automotive embedded systems testing since 2011.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
