LTP (Linux Test Project)
Linux Test Project is a project developed and maintained by SGI, OSDL, and Bull, developed and maintained jointly by IBM, Cisco, Fujitsu, SUSE, Red Hat, Oracle, and other companies. The goal of the project is to provide test cases to the open source community to verify the reliability, robustness, and stability of Linux.
The LTP test suite contains a toolset for testing the Linux kernel and related features. Our goal is to improve the Linux kernel and system libraries by introducing automated tests into the testing effort. Of course we encourage interested open source contributors to join.
- Project home page in: http://linux-test-project.github.io/
- Latest Version in: https://github.com/linux-test-project/ltp/releases
- Discussion of the project in the LTP mailing list: HTTP://LISTS.LINUX.IT/LISTINFO/LTP
- Git repository on GitHub: HTTPS://GITHUB.COM/LINUX-TEST-PROJECT/LTP
Other Notes
The earliest LTP source on the SourceForge: http://ltp.sourceforge.net/
Now, of course, it's on GitHub: HTTPS://GITHUB.COM/LINUX-TEST-PROJECT/LTP
Warning
Test must be careful
Do not run them on the production system. Growfiles, Doio, and Iogen can cause special stress to the I/O functions of the system, although they do not cause problems on a functioning system, but they are designed to find (or trigger) problems.
Quick test Method installation
If you have git, autoconf, Automake, M4, Linux headers, and generic development packages installed on your system, simply execute the commands below.
For example: I am currently testing the environment is CentOS 7.4, the installation of Kernel-headers and Kernel-devel package, as well as the installation principle is to report what depends on the error, directly install the corresponding RPM.
# git clone https://github.com/linux-test-project/ltp.git# cd ltp# make autotools# ./configure# make# make install
The default LTP is installed in the/OPT/LTP directory.
Test
Run all test Cases
# cd /opt/ltp# ./runltp
The root user needs to be executed because some test cases require root privileges.
Run a specific test suite
# ./runltp -f syscalls# ./runltp -f syscalls -s madvise
Of course, you can also see Help:
# ./runltp --help
Linux Test Project Testing Suite Description