在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):linux-test-project/ltp开源软件地址(OpenSource Url):https://github.com/linux-test-project/ltp开源编程语言(OpenSource Language):C 76.2%开源软件介绍(OpenSource Introduction):Linux Test ProjectLinux Test Project is a joint project started by SGI, OSDL and Bull developed and maintained by IBM, Cisco, Fujitsu, SUSE, Red Hat, Oracle and others. The project goal is to deliver tests to the open source community that validate the reliability, robustness, and stability of Linux. The LTP testsuite contains a collection of tools for testing the Linux kernel and related features. Our goal is to improve the Linux kernel and system libraries by bringing test automation to the testing effort. Interested open source contributors are encouraged to join. Project pages are located at: http://linux-test-project.github.io/ The latest image is always available at: https://github.com/linux-test-project/ltp/releases The discussion about the project happens at LTP mailing list: http://lists.linux.it/listinfo/ltp LTP mailing list is archived at: https://lore.kernel.org/ltp/ The git repository is located at GitHub at: https://github.com/linux-test-project/ltp The patchwork instance is at: https://patchwork.ozlabs.org/project/ltp/list/ Warning!Be careful with these tests! Don't run them on production systems. Growfiles, doio, and iogen in particular stress the I/O capabilities of systems and while they should not cause problems on properly functioning systems, they are intended to find (or cause) problems. Quick guide to running the testsIf you have git, autoconf, automake, m4, pkgconf / pkg-config, libc headers, linux kernel headers and other common development packages installed (see INSTALL and ci/*.sh), the chances are the following will work:
Now you can continue either with compiling and running a single test or with compiling and installing the whole testsuite. For optional library dependencies look into scripts for major distros in
Shortcut to running a single testIf you need to execute a single test you actually do not need to compile the whole LTP, if you want to run a syscall testcase following should work.
Shell testcases are a bit more complicated since these need a path to a shell library as well as to compiled binary helpers, but generally following should work.
Open Posix Testsuite has it's own build system which needs Makefiles to be generated first, then compilation should work in subdirectories as well.
Compiling and installing all testcases
This will install LTP to
Some tests will be disabled if the configure script can not find their build dependencies.
Running testsTo run all the test suites
Note that many test cases have to be executed as root. To run a particular test suite
To run all tests with
Also see
Test suites (e.g. syscalls) are defined in the runtest directory. Each file contains a list of test cases in a simple format, see doc/ltp-run-files.txt. Each test case has its own executable or script, these can be executed directly
Some have arguments
The vast majority of test cases accept the -h (help) switch
Many require certain environment variables to be set
Most commonly, the path variable needs to be set and also Note that all shell scripts need the For more info see Network testsNetwork tests require certain setup, described in Developers cornerBefore you start you should read following documents:
There is also a step-by-step tutorial:
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:
Although we accept GitHub pull requests, the preferred way is sending patches to our mailing list. It's a good idea to test patches on GitHub Actions before posting to mailing list. Our GitHub Actions setup covers various architectures and distributions in order to make sure LTP compiles cleanly on most common configurations. For testing you need to just push your changes to your own LTP fork on GitHub. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论