节点文献
面向嵌入式系统的测试工具研究
【作者】 杜晓东;
【导师】 左志宏;
【作者基本信息】 电子科技大学 , 计算机软件与理论, 2003, 硕士
【摘要】 伴随着信息家电,手持设备,无线设备等的迅速发展,相应的硬件和软件也得到迅速发展,嵌入式软件的测试也越必要。嵌入式软件的覆盖测试和性能分析是嵌入式环境下重要的测试方法,所以开发嵌入式环境下的覆盖测试和性能分析工具有一定的现实意义。 通用软件开发的开发环境和程序运行环境是相同的,程序动态信息的收集比较简单,可以通过写数据文件将程序的动态信息保存下来,或通过某种进程间通信等方式直接将程序的动态信息发送给分析测试工具。嵌入式软件的开发与通用软件的开发最大的不同点在于嵌入式软件需要采用交叉开发的方式:开发工具运行在软硬件配置丰富的宿主机上,而嵌入式应用程序运行在软硬件资源相对缺乏的目标机上。对于这类软件的分析测试也存在着同样的问题:测试工具运行在宿主机上,分析测试工具所需要的程序动态信息在目标机上产生,所以必须通过一定的物理/逻辑连接传输到缩主机上,由测试工具接收。因此,嵌入式分析测试工具在设计上也必须考虑有效的数据上传方法,解决数据信息的传输问题,并且尽量减小对被测程序的影响。 大多数分析测试工具通过对被测程序代码进行修改,使之能够记录程序的运行情况。这个修改过程通常是向被测程序代码中的适当位置添加少量的代码,这个修改过程称为插装。在程序中插入插装代码是一种有效的测量程序各方面性能的技术。这种插装能够在程序编译过程的各阶段进行,通过诸如编译器、链接器、或者是测试系统所包含的外部工具。但是无论是那种插装方法都会对被测程序的运行带来一定的影响。由于嵌入式软件实时性要求,嵌入式分析测试工具在设计上必须考虑对嵌入式应用的插装应尽量小的影响被测程序的运行。 本人长期以来对以嵌入式系统比较感兴趣,对嵌入式性能和覆盖测试工具进行了一定的研究,并且在科银公司的嵌入式软件平台DeltaSystem上实现了一个简单的性能分析和覆盖测试工具。本论文基于这些事实,对面向嵌入式系统分析测试工具的体系结构、数据采集上传、插装方法上进行了一定的探讨。
【Abstract】 In the fast-changing world of embedded, handheld and wireless devices, there are many hardware and software design changes taking place, and the embedded software testing is more necessary. Coverage testing and performance analysis is the important testing technique of the embedded software in the embedded development environment. So, it’s meaning to develop embedded software testing tools.The development environment of the general software is the same as the running environment. It’s simply to collecting the run-time information in this environment. You can store the data in a data file or send the data directly to testing tools by some kind of inter-process communications. The most important difference between embedded software development and general software development is the embedded software needs cross development: the development tools are running on the host machine and the embedded application is running on the target machine which is relatively short of resources. The testing tools for embedded software have the same question: the testing tools are running on the host machine, but the runtime information needed by the tools is generated on the target machine, so there should be some physic/logic connections between the host and the target machine for data transfer. So the effective data transfer method must be taken into account during the design of the embedded testing tool to upload data and reduce the intrusion to the target system as many as possible.Most performance tools make minor additions and modifications to the measured program. These changes add small bits of code (known as instrumentation code) to record the execution of program events or to collect and record data. Inserting instrumentation code in a program is an effective technique for measuring many aspects of program performance. The instrumentation code can be added at any stage of the compilation process by system tools such as the compiler or linker or by external tools that are part of a measurement system. But no matter which method is chosen, the intrusion to the embedded application is in existence. Because of the real-time requirement of some embedded software, the instrument method should be taken into account carefully to reduce the intrusion to the embedded application during the design of the embedded testing tool.I got interest with embedded system several years ago and do some research job in area of embedded software testing and performance analysis. Then I implemented a simple performance analysis and coverage analysis tool on the embedded software development platform - DeltaSystem of CoreTek Systems, Inc. Based on these facts, the thesis demonstrates the architecture and internals of the profiling and coverage analysis tools on embedded systems.
- 【网络出版投稿人】 电子科技大学 【网络出版年期】2003年 04期
- 【分类号】TP311.52
- 【被引频次】13
- 【下载频次】586