Conceptual
Login

Running KUnit Tests for the Kernel You Built

KUnit comes with a runner that configures, builds and boots a small kernel purely to execute tests, then prints a pass-or-fail list. You can run everything or narrow it to one suite while you work on it. Because it boots a throwaway kernel, running tests never puts your machine at risk. It turns kernel testing into something you can do in the middle of writing code.

Questions this Concept answers

  • Why is running these tests safe for your development machine?