This paper describes a prototype tool, called SimC, which automatically generates test data for unit testing of C programs. The tool symbolically simulates the execution of the given program. It simulates pointer operations precisely. This makes it capable of generating test data for programs involving pointer and structure operations. Experiments on real-world programs including the GNU coreutils are presented.
Index Terms:
Test data generation, symbolic execution, pointer operation, unit testing.
Citation:
Zhongxing Xu, Jian Zhang, "A Test Data Generation Tool for Unit Testing of C Programs," qsic, pp.107-116, Sixth International Conference on Quality Software (QSIC'06), 2006