Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nojekyll Add .nojekyll config Aug 29, 2018 Added doc boilerplate and README Aug 29, 2018
LICENSE Added doc boilerplate and README Aug 29, 2018 Updated make docs instructions in Jun 15, 2019

KUnit Documentation

KUnit is a lightweight unit testing and mocking framework for the Linux kernel. These tests are able to be run locally on a developer’s workstation without a VM or special hardware.

KUnit is heavily inspired by JUnit, Python’s unittest.mock, and Googletest/Googlemock for C++. KUnit defines a way to mock out C style classes and functions and create expectations on methods called within the code under test.

This is a repository to host KUnit project documentation.

Where is the code?

Updating this repository

To update the documents in this repository, checkout Compile the kernel-docs, and copy them to the kernel-docs repo in this repository:

git clone
make -C $PATH_TO_KUNIT_KERNEL htmldocs SPHINXDIRS=dev-tools/kunit
cd kunit-docs
rm -rf third_party/kernel/*
cp -r $PATH_TO_KUNIT_KERNEL/LICENSES/ third_party/kernel/
cp -r $PATH_TO_KUNIT_KERNEL/Documentation/output/dev-tools/kunit/ third_party/kernel/docs/
You can’t perform that action at this time.