Oracle's Kernel Test Framework Might Be Added To The Linux Kernel Tree
Written by Michael Larabel in Linux Kernel on 13 August 2019 at 08:12 AM EDT. 4 Comments
Knut Omang of Oracle is working on integrating the Kernel Test Framework into the Linux kernel source tree/repository.

The Kernel Test Framework is used for unit testing of the Linux kernel as well as different component testing of the code. Up to this point the Kernel Test Framework has been developed separate of the Linux kernel tree in order to allow for testing against arbitrary versions of the Linux kernel. Now, however, Oracle is wanting to get this kernel testing framework as part of the Linux kernel source tree.

The Kernel Test Framework isn't entirely self-contained but does depend upon Googletest as the test runner still among other components.

As for their motivation for getting it merged now, "An in-tree KTF allows test suites to be provided with the kernel, which makes it easy to use KTF based suites as part of the kernel selftests and driver test suites. Having the ability to still build and run the latest versions of test suites against older kernels should be of great value to stable maintainers, distributions and driver maintainers, who would want to have an easy path, with minimal backporting efforts to make sure that criterias implemented by new test logic is also valid for these kernels. Our definite goal moving forward is to try to satisfy both needs in a transparent way. The plan is to let the standalone KTF repository follow the in-kernel one, and to allow test suites to be maintained similarly, and to support maintenance by proper tooling."

More details on their KTF proposal for getting it in the mainline tree can be found via this kernel mailing list series. Those wanting to learn more about the Kernel Test Framework itself can do so at oracle/ktf on GitHub.
Related News
About The Author
Author picture

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter or contacted via

Popular News This Week