DocumentCode
1579268
Title
How to Test Program Generators? A Case Study using flex
Author
Sampath, Prahladavaradan ; Rajeev, A.C. ; Shashidhar, K.C. ; Ramesh, S.
Author_Institution
Gen. Motors India, Bangalore
fYear
2007
Firstpage
80
Lastpage
92
Abstract
We address the problem of rigorous testing of program generators. Program generators are software that take as input a model in a certain modeling language, and produce as output a program that captures the execution semantics of the input-model. In this sense, program generators are also programs and, at first sight, the traditional techniques for testing programs ought to be applicable to program generators as well. However, the rich semantic structure of the inputs and outputs of program generators poses unique challenges that have so far not been addressed sufficiently in the testing literature. We present a novel automatic test-case generation method for testing program generators. It is based on both syntax and semantics of the modeling language, and can uncover subtle semantic errors in the program generator. We demonstrate our method on flex, a prototypical lexical analyzer generator.
Keywords
automatic programming; program testing; programming language semantics; specification languages; automatic test-case generation method; flex; modeling language semantics; modeling language syntax; program generators testing; prototypical lexical analyzer generator; subtle semantic errors; Application software; Automatic programming; Automatic testing; Computer industry; Program processors; Prototypes; Software engineering; Software prototyping; Software safety; Software testing;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Engineering and Formal Methods, 2007. SEFM 2007. Fifth IEEE International Conference on
Conference_Location
London
Print_ISBN
978-0-7695-2884-7
Type
conf
DOI
10.1109/SEFM.2007.24
Filename
4343926
Link To Document