~/talk

KUnit: Past, Present, and Future

Talkat linux.conf.au 2021 · 2021-01-23..01-25· [testing]
slides:none on file

KUnit is an in-kernel unit test framework merged in Linux 5.5 that runs small C tests built into the kernel or as modules, and outputs KTAP. It provides resource cleanup, parameterized tests, integration with KASAN, and a KUnit.py tool that builds UML kernels and parses results. Module support and an executor fix counting and runtime issues; many subsystems (crypto, ext4, KASAN/KCSAN) add tests and CI integration is underway.

AI-written summary · about

  1. 0:00Intro
  2. 1:48What is KUnit?
  3. 6:51How are tests structured?
  4. 8:11Example: list_test
  5. 9:36Example: suites
  6. 10:25Running tests (with kunit_tool)
  7. 12:29Results (TAP format)
  8. 13:54Results (kunit_tool)
  9. 15:02Other neat tricks
  10. 18:59Module Support
  11. 21:10Named resources
  12. 22:31Improved TAP output / executor
  13. 23:30KASAN integration
  14. 26:17Parameterised Testing
  15. 29:28Continuous Integration
  16. 33:55Tooling updates
  17. 37:03New tests
  18. 38:16Mocking and Hardware Testing
  19. 41:05Skippable test support
  20. 41:43Bugfixes and tooling improvements
~/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.