摘要: 为减小传统的通过编写大量代码来调用Linux内核及驱动接口进行测试的编程难度,缩短测试周期,采用将Lua脚本语言载入Linux内核并使用脚本语言进行内核及驱动测试的方法,设计并实现一种简易Linux内核驱动测试工具。实验结果表明,该工具所占用的Linux内核空间小,使用灵活方便,可对内核及驱动模块进行准确有效的测试。
关键词:
Lua脚本语言,
Linux内核测试,
驱动测试,
嵌入式系统
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
中图分类号:
张达运, 汪汉新. 基于Lua的Linux内核测试工具开发[J]. 计算机工程, 2011, 37(11): 283-284.
ZHANG Da-Yun, HONG Han-Xin. Development of Linux Kernel Test Tool Based on Lua[J]. Computer Engineering, 2011, 37(11): 283-284.