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

README.md

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?

https://kunit.googlesource.com

Updating this repository

To update the documents in this repository, checkout https://kunit.googlesource.com/linux/+/kunit/alpha/master. Compile the kernel-docs, and copy them to the kernel-docs repo in this repository:

git clone https://github.com/google/kunit-docs.git
git clone https://kunit.googlesource.com/linux $PATH_TO_KUNIT_KERNEL
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.