摘要
介绍了一种基于仿真器的嵌入式软件测试方法,通过构造链接器分析目标文件,生成内存映像,加载到仿真器执行测试.该方法特别适合嵌入式软件的单元测试,支持对不完整的代码进行测试,同时引入了交互式脚本执行机制,支持采用高级脚本语言而不是嵌入式专用汇编语言设计桩函数和测试用例,降低了测试人员的培训代价.航天某院等单位的应用结果显示,该方法能有效提升嵌入式软件的单元测试效率,有较高的实际推广价值.
A unit testing method for embedded software was presented,which used customized linker to parse object files and generates memory image.The memory image can be loaded into a software simulator to generate testing results.This method is especially useful for the unit testing of embedded software,which can test incomplete code and support designing stub functions and test cases through advanced script programming language instead of embedded assembly programming language.Then the training cost of testing engineers can be reduced.The application result from one institute of China Aerospace Science and Industry Group shows that it can improve the efficiency of embedded software unit testing significantly.
出处
《北京航空航天大学学报》
EI
CAS
CSCD
北大核心
2012年第12期1686-1690,共5页
Journal of Beijing University of Aeronautics and Astronautics
基金
北京林业大学青年科技基金资助项目(2010BLX14)
国家自然科学基金资助项目(60573084)