From 03ca2deb910c68b7f6dd1e8ffa32f86ab9c1376f Mon Sep 17 00:00:00 2001 From: Joe Fradley Date: Tue, 10 May 2022 20:29:27 +0000 Subject: [PATCH] ANDROID: GKI: Document GKI KUnit differences Added details for the new kernel parameter, kunit.enable, and added a deviation warning at the top-level of the KUnit documentaion. Bug: 231160619 Signed-off-by: Joe Fradley Change-Id: Ia608bda8cd8c4a8a2d7ba84d02ea5c8fd6a6a99c --- Documentation/admin-guide/kernel-parameters.txt | 4 ++++ Documentation/dev-tools/kunit/index.rst | 9 +++++++++ 2 files changed, 13 insertions(+) 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