Section #8. Linux Test Project
Linux Test Project (LTP), hosted at http://ltp.sourceforge.net/, is a suite consisting of approximately 3,000 tests designed to exercise different parts of the kernel. Most tests run without user intervention. Others, such as networking and storage media tests, need some manual configuration.
Linux测试项目(LTP)由http://ltp.sourceforge.net/托管,是一个由大约3,000个测试组成的套件,旨在运行内核的不同部分。大多数测试在没有用户干预的情况下运行。有一些测试需要手动配置,例如网络和存储介质测试,。
Download the source tar ball from the LTP home page, run make, and invoke the wrapper script runltp from the root of the source tree to start the tests. To capture the results in logfile in the results/ directory, do this:
从LTP主页下载源tar包,运行make,进入目录,运行runltp以启动测试。在results/目录中的logfile中检查结果,请执行以下操作:
bash> runltp –p –l logfile
Some errors generated by LTP are “expected.” The LTP website documents the list of expected errors for various kernel versions. Also in the website is an interesting analysis of LTP’s code coverage (overall coverage, lines in path, and distinct lines hit) for a few kernel versions, split across directories in the kernel tree.
LTP生成的一些错误是“预期的”.LTP网站记录了各种内核版本的预期错误列表。此外,网站对一些内核版本的LTP代码覆盖率(整体覆盖率,路径中的行和不同的行命中)进行了有趣的分析,并分析了内核树中的目录。