~/talk

How do we make KUnit work for us?

links:none on file
slides:none on file

KUnit converts a slow, hard-to-run binder selftest into a fast suite that compiles and runs in ~25s on UML and ~35s on QEMU and exercises 75,000 combinations, but kernel unit testing hits three real barriers: function redirection currently forces source changes and ugly macros, Android’s module‑loaded tests prevent early‑init or build‑time compiler workarounds, and pervasive shared global state breaks isolation. The options are add careful KUnit features, refactor code for testability (costing memory or modularity), or run out‑of‑tree simulators like Clocknet Sim or kfuz with maintenance tradeoffs.

AI-written summary · about

  1. 0:00Introduction to KUnit
  2. 1:26Strengths and weaknesses of unit testing
  3. 3:58Why KUnit is useful in practice
  4. 6:28Challenges of kernel unit testing
  5. 9:17Solutions to testing challenges
  6. 11:45Is KUnit the right tool?
  7. 13:12KUnit in Android CTS and production
  8. 14:38Q&A on KUnit and testing strategies
~/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.