Research&Implementation of the Static Checking&Automated Path Testing Tools for Embedded Software
- Author
- LiuJiaXin
- Advisor
- LiuFaGui
- School
- South China University of Technology
- Major
- Computer Software and Theory
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 63
- Citations
- 0
- visible plug-in develop
- real-time line mapping
- static detection
- automated pathtesting
- quality assurance
Abstract
With the increasing growth of the national economy and continuing improvement ofpeople’s life, as well as the unceasing development of embedded soft/hardware technique,embedded software product gradually becomes a basic element of people’s daily life. Alongwith this development is the increasing demand on embedded software. As a result, qualityassurance of such embedded software has its practical significance.Early detections of defects in embedding software source code in developing period helpsdevelopers locate the problematic executing path and fix the bugs at the early stage, hence itcan improve develop efficiency and reduce maintenance cost. Static detection technique candetect some underlying problems in the source code by simply analyzing the structures of theprogram without any execution. However, there are bugs couldn’t be detected until realexecution. Combinations of static and dynamic testing will better assure the quality ofembedded software. Traditionally in dynamic testing, test cases and test drivers are derived bytesters in hand, which is error-prone and time-consuming, automated path testing tries toimprove this by the automated generation of test cases that covers all the execution path of thetested program. Both static and dynamic testing requires analysis of the source code structure,which is supported by the GCC compiler, who even supports plug-in extension.In this paper, after the investigation of the current state of art and endeavor on itsimprovement, the author implements a static checking tool and an automated path testing toolfor embedded software, and integration of which to the GDIX Embedded Software TestingPlatform is also done, here is the main work:(1) Thorough investigation of current techniques in static checking and automated pathtesting is carried out, and drawbacks of which are listed;(2) Studies on the GDIX Embedded Software Testing Platform is performed, including itsframework, exiting components, and functions to be extended; the afore-mentionedinvestigation is summarized and research points are given.(3) In-depth research on the GCC framework and its corresponding plug-in framework,discussions on GCC plug-in developing process, and illustration of data structures generatedby each pass of GCC compiling are presented, which lie foundations for the GCC developing plug-in that parse source codes for the up-coming static checking and automated path testingtools. To ease the use of the testing tools, a GCC visible developing plug-in are alsoimplemented, which realizes the real-time line mapping from source code to internal datastructure.(4) Static checking technique, or analyzing technique, is thoroughly studied, along withGCC’s generated structure for control flow and data flow, as well as its customized checkingrules, based on which a static checking tool is implemented to complete the checking processby combining information from the control flow and data flow. This tool fixes the drawbacksof the related ones, and saves the violated execution path information in a unified format,which makes convenience for the automated path testing tools to reuse the path information.(5) Perform research on automated path testing and symbolic execution technique, anddiscuss the deficiency of current symbolic execution technique in detail, by the introductionof time slice mechanism and alternate detecting policy, symbolic execution technique isimproved to help realization of automated path testing tool.(6) Functional test and correctness test are carried out on the GCC visible developingplug-in, static checking tool and automated path testing tool, the result shows that they havereached the goal of this paper.
Table of contents
Summary 5-7
Abstract 7-9
directory 9-12
first chapter 12-21 <br / > 1.1 subject background 12-13
1.2 significance development Status 13-14
1.3 related technologies 14-18
1.3.1 GCC visualization plug- developed technology development status 14-15
1.3.2 Research and Development Status of static detection technology 15-16
1.3.3 path of embedded software test automation technology development Status 16-18
1.4 the author's major 18-19
1.5 thesis structure 19-20
1.6 Summary 20-21
chapter topic -based platforms and GCC plugin framework 21-31
2.1 GDIX embedded software testing platform 21-23
2.2 GCC framework and plugin framework 23-30
2.2.1 GCC framework 23-26
2.2.2 GCC plugin framework 26-30
2.3 Summary 30-31
Chapter GCC plug-in visual development 31-43
3.1 GCC plug- frame design visualization tools 32-33
3.2 GCC plugins graph data visualization tools to generate end design and implementation 33-37
3.2.1 plug-in initialization module 33-34
3.2.2 controller 34-35
3.2.3 function call graph building blocks 35
3.2.4 control flowchart building blocks 35-36
3.2.5 GIMPLE Figure building blocks 36-37
3.2.6 Figure persistence module 37
3.3 GCC plug-in visual development tools design and implementation of client 37-42
3.3.1 client end of the overall framework 37-38
3.3.2 view layer 38-40
3.3.3 control Layer 40-41
3.3.4 models layer 41-42
3.4 Summary design 42-43
Chapter static detection tools 43-56
4.1 static detection tools frame design design and implementation 43-44
4.2 test execution ends 44-51
4.2.1 plug-in event registration module 44-45
4.2 .2 structural information generation module 45-46
4.2.3 rules parsing module 46-47
4.2.4 regular expression building blocks 47 <br / > 4.2.5 rules detection module 47-49
4.2.6 path alias analysis module 49-50
4.2.7 matches encapsulated module 50-51
4.2.8 predefined rule base design and implementation of 51
4.3 client 51-55
4.3.1 view layer 52-54
4.3.2 control Layer 54-55
4.3.3 model layer 55
4.4 Summary 55-56
Chapter embedded software test automation tool path 56-73
5.1 embedded software framework for automated testing tool path design 56-59
5.1.1 cross- test mode 56-57
5.1.2 automated testing tool path overall framework design and implementation nbsp 57-59
5.2 test case generation side ; 59-68
5.2. a typical test case generation framework 59-60
5.2.2 test case generation end general framework 60-61
5.2.3 symbolic execution module 61-67
5.2.4 constraint solver module 67-68
5.2.5 path condition reconstruction module 68
5.3 test control terminal design and implementation of 68 -70
5.3.1 test module 69-70
5.3.2 test control module design and implementation of 70
5.4 test agent 70 -71
5.5 Summary 71-73
Chapter VI of the experimental environment and operating results 73-87
6.1 test environment 73 <br / > 6.2 GDIX embedded software testing platform integration testing 73-74
6.2.1 test Method 73
6.2.2 operating results 73-74 <br / > 6.3 GCC plug-in visualization tools to test 74-76
6.3.1 test Method 74
6.3.2 operating results 74-76
6.4 static testing tools to test 76-80
6.4.1 test Method 76-78
6.4.2 operating results 78-80
6.5 automated path testing tools 80-86
6.5.1 test Method 80-82
6.5.2 operating results 82-86
6.6 Summary 86-87
conclusions and further research 87-89
References made ??during 89-92
master's degree research 92-93
Thanks 93
Related dissertations
- Research on the Quality Assurance in DLBS
- The Actuality of Quality Management System and Countermeasure Research for KSF
- Risk Management System Test Design and Implementation of Cell Phone
- Android Application Detection Research and Implementation Based on Software Security Policy
- Analysis and Research of Android Malicious Application Behavior
- Security Research of Intelligent Terminal based on Android Platform
- Quality management of A company Headset development project of Bluetooth
- Study on the quality assurance system of Higher Adult Education
- The Top-Down Design on the Organizational System of the External Quality Assurance in Higher Education in China
- A Research on Precautions against the Venture of Civil-owned Colleges and Universities
- Study on the Undergraduate Teaching Quality Assurance of Colleges and Universities for Nationalities
- A Study on the Teaching Quality Assurance of Full-time Professional Master's Degree
- Nanchang University Full-time Graduate Professional Degree Education Quality Assurance System
- A Research on the Quality Assurance of Public Elective Courses in Universities
- The Study on Quality Assurance System of Shanghai Institutional Care Service for Disabled Elders
- The Film and Simulation Phantom Be Used for IMRT Verification Measurements
- HCDL110Kilovolt Power Transmission Project Quality Management Based on HGS
- Research on Quality Management of Xi Jing Hot Spring Villa Three East Project
- Research on Quality Management in Construction Process of JG Real Estate Project
- Quality Control Research for FPSO Conversion