The Research on Test Case Generation Methods for Testing Syntax Analysis of Compiler Implementation

Author
YangJing
Advisor
LuYanSheng
School
Huazhong University of Science and Technology
Major
Computer Software and Theory
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2013
Downloads
4
Citations
0

Request the full text

Abstract

The compiler is one of the fundamental support tools for software development, which has direct impacts on the application software’s quality. Therefore, the quality of the compiler is essential. As with other software, software testing is the most important method for finding faults within a compiler and assuring its quality. As an implementation of a programming language standard, the compiler has complex input space and software behaviors. It is impossible to achieve full test coverage in compiler testing. So the core problem for compiler testing is how to generate a set of test cases with high testing effectiveness.With complex structures, the test case in compiler testing is a piece of source code written in one type of high level language. Manual test case generation is not only a heavy workload, but also difficult to guarantee adequate coverage. In order to overcome the disadvantages of manual generation, compiler testing requires automatic test case generation methods. The generated test suite should have good abilities for covering the syntactic structure and semantic properties of the programming language. Most of the existing test case generation methods for compiler testing are based on grammar coverage. Since the test coverage rules based on grammar have limited abilities to reveal the syntactic structure of the language, this paper tries to make a description of the language syntax with binary trees and generate test data by combining the syntactic units with each other. On the introduction of a parameter called "the computation path length of the syntactic unit", the whole generation process is under proper control and so is the size of the output test suite. By adjusting values of the computation path length, the devised test case generation method can generate a test suite that subsumes the counterpart from methods based on grammar coverage. This implies that the given generation method in this paper has stronger abilities for covering the syntactic structure.

Table of contents

Abstract 4-5 Abstract 5-8 1 Introduction 8-16 1.1 Background and Significance 8-9 1.2 domestic and foreign research status main content and organizational structure 9-14 1.3 papers 14-16 2 compiler test 16-23 2.1 compiler feature overview 16-17 2.2 compiler test content 17-19 2.3 compiler test case generation method 19-22 2.4 chapter Summary 22-23 3 syntax analysis test case generation method grammatical structure of 23-43 3.1 programming language analysis 23 -26 3.2 input space representation 26-33 3.3 automatic test case generation algorithm 33-41 3.4 algorithm analysis and test coverage discussion 41 -42 3.5 Summary 42-43 4 automatic generation of test cases to achieve 43-48 4.1 test data generation process 43-44 4.2 to test the prototype system architecture 44-45 4.3 system implementation 45-46 4.4 test case analysis 46-47 4.5 of this chapter summary 47-48 5 summary and Outlook 48-49 5.1 paper summarizes 48 5.2 job prospects 48-49 Thanks 49-50 references 50-54 appendix to pursue a degree during participation in research projects 54

Related dissertations

  1. Design and Implementation of High Integrity Safe-Compiler
  2. The Research and Implementation of Test Suite Generation for TTCN-3 Compiler