Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2011, Vol. 37 ›› Issue (11): 283-284. doi: 10.3969/j.issn.1000-3428.2011.11.098

• Networks and Communications • Previous Articles     Next Articles

Development of Linux Kernel Test Tool Based on Lua

ZHANG Da-yun, WANG Han-xin   

  1. (College of Electronics and Information Engineering, South-central University for Nationalities, Wuhan 430074, China)
  • Received:2010-11-25 Online:2011-06-05 Published:2011-06-05

基于Lua的Linux内核测试工具开发

张达运,汪汉新   

  1. (中南民族大学电子信息工程学院,武汉 430074)
  • 作者简介:张达运(1987-),女,硕士研究生,主研方向:嵌入式系统;汪汉新,副教授
  • 基金资助:
    国家自然科学基金资助项目(61072075);国家民委自然科学基金资助项目(10ZN08);湖北省自然科学基金资助重点项目(2009 CDA139)

Abstract: In order to shorten the test cycle and reduce the programming complexity of conventional test methods by calling the interfaces of Linux kernel and drivers directly, this paper presents a scheme that Lua script language is embedded into Linux kernel to test kernel and drivers. Moreover, the simple Linux kernel test tool is designed and implemented. Experimental results show that this tool only spends a little of Linux kernel space, and it is flexible and convenient. It can accurately and effectively complete the test for kernel and drivers.

Key words: Lua script language, Linux kernel test, drivers test, embedded system

摘要: 为减小传统的通过编写大量代码来调用Linux内核及驱动接口进行测试的编程难度,缩短测试周期,采用将Lua脚本语言载入Linux内核并使用脚本语言进行内核及驱动测试的方法,设计并实现一种简易Linux内核驱动测试工具。实验结果表明,该工具所占用的Linux内核空间小,使用灵活方便,可对内核及驱动模块进行准确有效的测试。

关键词: Lua脚本语言, Linux内核测试, 驱动测试, 嵌入式系统

CLC Number: