LTP(Linux Test Project)学习(一)——LTP介绍

LTP(Linux Test Project)开源项目由SGI发起,IBM维护, 贡献者包括IBM, Cisco, Fujitsu, SUSE, Red Hat, Oracle公司等。

LTP特点:
1. LTP作为linux kernel系统调用和libc库测试工具,拥有大量的内核基本特性的测试用例,同时仓库由世界各地内核参与者维护开发,保证了用例的质量。
个人认为LTP仓库用例对于内核功能点测试覆盖非常充分,同时代码精练不冗余,但是作为基本功能用例,缺少针对性压力测试用例(虽然包括了stress用例,但是从压力测试角度分析是远远不够);
2. LTP用例短小而精练,各个用例解耦,符合功能测试的特色,使用C语言和Shell语言,对于初学者非常友好,适合学习从而形成良好的写作习惯;
3. LTP不仅用例优美,而且框架合理,使用方便,层次性好,容易理解(可以移植直接使用哦);
4. 最重要的,LTP有良好的社区氛围,代码存放github(https://github.com/linux-test-project/ltp),参与者通过邮件列表([email protected])与社区maintainer或其他开发者交流。社区活跃,每天均有大量回复和提交(当然比不过linux,但是更方便查看,不会天天收件箱被刷爆);
5. 在对内核知识点学习过程中,如果感觉没有练手的地方,可以试着写写用例,加深理解,同时熟悉社区运作模式;

LTP github: https://github.com/linux-test-project/ltp
LTP 邮件列表: [email protected]
LTP README:https://github.com/linux-test-project/ltp/blob/master/README.md

LTP 开发者/贡献者学习(非常重要):
Before you start you should read following documents:
• doc/test-writing-guidelines.txt
• doc/build-system-guide.txt
There is also a step-by-step tutorial:
• doc/c-test-tutorial-simple.txt
If something is not covered there don’t hesitate to ask on the LTP mailing list. Also note that these documents are available online at:
https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines https://github.com/linux-test-project/ltp/wiki/BuildSystem https://github.com/linux-test-project/ltp/wiki/C-Test-Case-Tutorial
这里写图片描述

猜你喜欢

转载自blog.csdn.net/cui841923894/article/details/81463029