How is testing done in kernels? Is there unit testing, integration, end to end? I'm unfamiliar, but curious.
Basically there is a system called KUnit for writing white box unit tests and there is code coverage to determine coverage as you would expect, then there are systems for static analysis and verifying assertions.
https://kunit.dev/ - unit tests for kernel
https://docs.kernel.org/dev-tools/testing-overview.html - entire testing overview.