Unit Testing and Mocking

*

One Line Summary

Discussion on the possible value of adding unit tests to the kernel.

Abstract

Currently most testing in the kernel is done on a booted kernel and is primarily driven by the userland. Some portions of the kernel may be well tested, but in practice many code paths in the kernel are not exercised before code is submitted. Unit testing and mocking is one possible way to make it much easier to exercise arbitrary code paths.

Tags

testing, automated builds

Speaker

  • Biography

    Brendan is currently a software engineer on the server software and hardware team, known as Platforms, and works primarily on BMC development and actively contributes to the OpenBMC project and the Linux kernel.

    His current focus is on interfacing to the BMC via IPMI, and MCTP. He is also interested in low speed peripherals such as SPI, LPC, eSPI and I2C.