KUnit - Enable support for unit tests
modulename:  kunit.ko
configname: CONFIG_KUNIT
Linux Kernel Configuration
└─>Kernel hacking
└─>Kernel Testing and Coverage
└─>KUnit - Enable support for unit tests
In linux kernel since version 4.14.326 (release Date: 2023-09-23)
Enables support for kernel unit tests (KUnit), 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 when using UML. Can also be used on most other
architectures. For more information, please see
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 when using UML. Can also be used on most other
architectures. For more information, please see
source code:
is selected by
CONFIG_S390_MODULES_SANITY_TESTCONFIG_REGMAP_KUNIT
CONFIG_REGMAP_BUILD
CONFIG_VCAP_KUNIT_TEST
CONFIG_DRM_KUNIT_TEST
CONFIG_DRM_TTM_KUNIT_TEST
CONFIG_DRM_VC4_KUNIT_TEST
CONFIG_SND_SOC_TOPOLOGY_BUILD
CONFIG_CROS_KUNIT
CONFIG_KCSAN_KUNIT_TEST
CONFIG_KPROBES_SANITY_TEST
CONFIG_LINEAR_RANGES_TEST