Show Your Support: Did you know that the hundreds of articles written on Phoronix each month are mostly authored by one individual? Phoronix.com doesn't have a whole news room with unlimited resources and relies upon people reading our content without blocking ads and alternatively by people subscribing to Phoronix Premium for our ad-free service with other extra features.
Google's KUnit Moving Forward As A Solid Unit Testing Framework For The Linux Kernel
Brendan Higgins sent out the formal "v1" series today for this lightweight unit testing and mocking framework. Higgins provided a refresher on the design of KUnit, "Unlike Autotest and kselftest, KUnit is a true unit testing framework; it does not require installing the kernel on a test machine or in a VM and does not require tests to be written in userspace running on a host kernel. Additionally, KUnit is fast: From invocation to completion KUnit can run several dozen tests in under a second. Currently, the entire KUnit test suite for KUnit runs in under a second from the initial invocation (build time excluded)."
KUnit is complementary to the other in-tree testing solutions. Over recent months KUnit has continued to be revised compared to the original "request for comments" patches from last year.
Those wanting to learn more about the current state of KUnit can do so from this patch series.