How linux-test-project/ltp works
Linux Test Project (LTP) is a collection of tests and supporting libraries for checking Linux kernel reliability, robustness, and stability. The principal workflow is an operator running a test suite, which exercises a kernel or system interface and reports a result. The graph preserves major test domains and shared runtime support, including the indexed core modules. Source excerpts are limited, so most suite-to-kernel links reflect the README’s documented purpose; subsystem internals not evidenced by excerpts or indexed references are not connected.
Main entry points: async_handler.c Realtime tests · controllers Controller tests · containers Container tests · fs Filesystem tests
Components 24
Kernel test suites
- Container tests
testcases/kernel/containers - Controller tests
testcases/kernel/controllers - Filesystem tests
testcases/kernel/fs - Device tests
testcases/kernel/device-drivers - Crypto tests
testcases/kernel/crypto - Network tests
testcases/network - CVE tests
testcases/cve/sctphantom.c - POSIX tests
testcases/open_posix_testsuite - Realtime tests
testcases/realtime/func/async_handler/async_handler.c
Test framework
- Test API
include/tst_test_macros.h - Safe syscalls
include/old/tso_safe_macros.h - Fuzzy synchronization
include/tst_fuzzy_sync.h - LIO operations
lib/tlibio.c - Controller helpers
testcases/kernel/controllers/libcontrollers/libcontrollers.c - Safe macro functions
include/safe_macros_fn.h
Specialized libraries
- Realtime support
testcases/realtime/lib/librttest.c - Latency statistics
testcases/realtime/include/libstats.h - Signal wait library
libs/sigwait/tse_sigwait.c - JSON reader
libs/ujson/ujson_reader.c - JSON writer
libs/ujson/ujson_writer.c
Supporting utilities
- Network variables
testcases/lib/tst_net_vars.c - Test metadata
metadata/metaparse.c
Other components
- Test operator
- Linux kernel
Connections 24
- Test operator → Container tests: runs tests
- Test operator → Controller tests: runs tests
- Test operator → Filesystem tests: runs tests
- Test operator → Device tests: runs tests
- Test operator → Crypto tests: runs tests
- Test operator → Network tests: runs tests
- Test operator → CVE tests: runs tests
- Test operator → POSIX tests: runs tests
- Test operator → Realtime tests: runs tests
- Container tests → Linux kernel: validates behavior
- Controller tests → Linux kernel: validates behavior
- Filesystem tests → Linux kernel: validates behavior
- Device tests → Linux kernel: validates behavior
- Crypto tests → Linux kernel: validates behavior
- Network tests → Linux kernel: validates behavior
- CVE tests → Linux kernel: validates behavior
- POSIX tests → Linux kernel: validates behavior
- Realtime tests → Linux kernel: validates behavior
- Controller tests → Controller helpers: uses helpers
testcases/kernel/controllers/libcontrollers/libcontrollers.c - Realtime tests → Realtime support: uses support
testcases/realtime/func/async_handler/async_handler.c - Realtime tests → Latency statistics: uses statistics
testcases/realtime/func/async_handler/async_handler.c - Realtime tests → Fuzzy synchronization: uses synchronization
- Realtime tests → Test API: uses test API
- Safe syscalls → Safe macro functions: wraps calls
include/old/tso_safe_macros.h