diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index cadc56b92c02..d790e227f177 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -1706,6 +1706,10 @@ between unregistering the boot console and initializing the real console. + kunit.enable= [KUNIT] Enable executing KUnit tests in modules on load. + Requires CONFIG_KUNIT to be enabled. + Default is 0 (disabled) + i2c_bus= [HW] Override the default board specific I2C bus speed or register an additional I2C bus that is not registered from board initialization code. diff --git a/Documentation/dev-tools/kunit/index.rst b/Documentation/dev-tools/kunit/index.rst index 595205348d2d..3c4653b7bcf1 100644 --- a/Documentation/dev-tools/kunit/index.rst +++ b/Documentation/dev-tools/kunit/index.rst @@ -20,6 +20,15 @@ KUnit - Linux Kernel Unit Testing tips running_tips +.. warning:: + AOSP only supports running tests loaded with modules. Built-in + test execution support has been disabled. In addition, in order + to fully enable running module loaded tests both CONFIG_KUNIT + needs to be enabled and kernel command line argument + `kunit.enable` needs to be set to 1. + + The remaining KUnit documentation has been left as-is. + This section details the kernel unit testing framework. Introduction