北京航空航天大学学报 ›› 2014, Vol. 40 ›› Issue (3): 394-400.doi: 10.13700/j.bh.1001-5965.2013.0260

• 论文 • 上一篇    下一篇

基于全数字仿真的嵌入式软件测试技术

刘辉, 金茂忠   

  1. 北京航空航天大学 计算机学院, 北京 100191
  • 收稿日期:2013-05-14 出版日期:2014-03-20 发布日期:2014-03-29

Embedded software testing technology based on all-digital simulation

Liu Hui, Jin Maozhong   

  1. School of Computer Science and Engineering, Beijing University of Aeronautics and Astronautics, Beijing 100191, China
  • Received:2013-05-14 Online:2014-03-20 Published:2014-03-29

摘要: 为了对实时嵌入式软件进行更好的测试,提出了一种基于全数字仿真的整体仿真技术.该项技术解决了现有软件测试环境中的两大功能性问题:通过将仿真时钟作为基准时间解决了断点影响实时信号处理的问题;通过提出的“动态桩”方法解决了单元测试时缺乏必要支持函数的问题.利用无损压缩原理对整个仿真测试平台进行优化,改变了仿真平台的低效问题,使这一技术走向实用化.整体仿真技术支持从单元测试到集成测试的整个软件测试过程,增强了在单元测试期间发现异常实时信号处理等方面软件问题的能力,显著提升集成测试的效率,并且实现了测试脚本的复用.该平台已经在某型号系列飞控软件的测试中得到应用.

Abstract: For the test of real-time embedded system, the integrated all-digital simulation technology was proposed, which can resolve two functional problems in current software testing environment: ①Taking the simulation clock as the time reference, the synchronization due to setting break points was resolved; ② the "dynamic stub" approach was designed to drive the unit-testing for the embedded program that may not be complete, i.e. lack of supporting functions, like library. Furthermore, by significantly reducing judgments in each clock cycle using the lossless compression, the efficiency problem of the simulation platform was resolved, which promotes the practicability of this technology. The integrated simulation technology supports the whole test process from unit test to the integrated test, which strengthens ability of finding software bugs in real-time signal exception processing, improves the efficiency of system-level software testing, and achieves the reuse of test scripts. The platform has been applied to the testing of flight control software.

中图分类号: 


版权所有 © 《北京航空航天大学学报》编辑部
通讯地址:北京市海淀区学院路37号 北京航空航天大学学报编辑部 邮编:100191 E-mail:jbuaa@buaa.edu.cn
本系统由北京玛格泰克科技发展有限公司设计开发