UAPI testing with KUnit
summary
Proposes building UAPI usertests as kernel userprogs that are embedded into the kernel image and executed under KUnit, reusing KUnit’s runner and preserving kselftests’ TAP output by nesting TAP inside KUnit. Uses nolibc so cross-arch binaries compile with the kernel toolchain, produces ~400 lines of glue, builds in ~1 minute and runs tests in ~1.5s. Works for single standalone test executables and can be modules; open issues include libgcc shims, multiple ABI support and complex multi-binary tests.
AI-written summary · about
chapters (8)
- 0:00Introduction and motivation
- 1:44KUnit integration idea
- 3:32Embedding user space tests
- 6:04Implementation details
- 8:13Demo and results
- 9:37Current status and challenges
- 12:04Discussion with audience
- 19:12Conclusion and thanks
related talks
45mKUnit: Past, Present, and Future
44mKUnit - Unit Testing for the Linux Kernel
30mKernel Testing with KUnit: Bridging the Gap
45m"KUnit: Past, Present, and Future"
19mChecking your work: Linux kernel testing and CI
28mTesting Drivers with KUnit (Does hardware have to be hard?)
19mHow to introduce KUnit to physical...
18mKUnit: Function Redirection and More
