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_DRM_XE
CONFIG_DRM_XE_KUNIT_TEST
CONFIG_DRM_VC4_KUNIT_TEST
CONFIG_SND_CORE_TEST
CONFIG_SND_HDA_CIRRUS_SCODEC_KUNIT_TEST
CONFIG_SND_SOC_TOPOLOGY_BUILD
CONFIG_SND_SOC_CS_AMP_LIB_TEST
CONFIG_CROS_KUNIT_EC_PROTO_TEST
CONFIG_IIO_GTS_KUNIT_TEST
CONFIG_MCTP_TEST
CONFIG_KCSAN_KUNIT_TEST
CONFIG_KPROBES_SANITY_TEST
CONFIG_LINEAR_RANGES_TEST