KUnit - Unit Testing for the Linux Kernel
summary
KUnit is a lightweight in-kernel unit test framework that is merged upstream for 5.5 and already provides ~100 test cases across about seven suites and has uncovered several real bugs. Tests run in usermode Linux by default and the tooling builds and executes suites automatically, with module support landing for later releases; a resource-management API exists and mocking/faking is planned. The goal is very fast, hermetic unit tests—suites that can run in under 100 ms—and integration into kernel CI.
AI-written summary · about
chapters (7)
- 0:00Start
- 5:27What's unit testing?
- 6:15Types of Testing
- 11:57KUnit Example
- 22:33What are KUnit's current challenges?
- 25:01Where does KUnit fit into the kernel's test paradigm?
- 32:47What we are planning on doing in the future?
related talks
45mKUnit: Past, Present, and Future
45m"KUnit: Past, Present, and Future"
30mKernel Testing with KUnit: Bridging the Gap
28mTesting Drivers with KUnit (Does hardware have to be hard?)
24mKUnit Testing Insufficiencies
16mHow do we make KUnit work for us?
18mKUnit: Function Redirection and More
21mUAPI testing with KUnit
