~/talk

KUnit Testing Insufficiencies

Talkat Linux Plumbers Conference 2025 · 2025-12-11..12-13· [testing]
links:none on file
slides:none on file

Argues that KUnit lacks scalability and mocking: KUnit embeds tests in the kernel, so tests require full kernel builds and boots, forcing multiple kernel binaries once test counts grow into the thousands and hurting fidelity; demo shows a tiny isolated test still takes about 143 seconds to run. Claims mocking currently needs source patches or config ifdefs—mocking requires kernel patches—and code‑coverage instrumentation reduces available kernel space. Prototypes using CMK compile code out‑of‑tree and run in user space with automatic dependency mocking, cutting runtime at the cost of harder initial setup.

AI-written summary · about

  1. 0:00Introduction to KUnit issues
  2. 2:14KUnit testing limitations
  3. 4:48Demo of tightly coupled test
  4. 9:22Building kernel tests at scale
  5. 10:45Execution and system state challenges
  6. 13:55Problems without solutions
  7. 16:00Kernel testing vs tool limitations
  8. 20:12Alternative testing framework demo
  9. 23:43Real-world testing trade-offs
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.