]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: add kunit.enable to enable/disable KUnit test
authorJoe Fradley <joefradley@google.com>
Tue, 23 Aug 2022 14:24:54 +0000 (07:24 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 30 Sep 2022 19:17:39 +0000 (13:17 -0600)
commita9794430fa0c50e247ec9d6b668e00756ca787ee
tree7798e5606a8ada2099d00eea123b5305d61da342
parent3ec1ed80941b77117ca488be04255a1cde9e001e
kunit: add kunit.enable to enable/disable KUnit test

This patch adds the kunit.enable module parameter that will need to be
set to true in addition to KUNIT being enabled for KUnit tests to run.
The default value is true giving backwards compatibility. However, for
the production+testing use case the new config option
KUNIT_DEFAULT_ENABLED can be set to N requiring the tester to opt-in
by passing kunit.enable=1 to the kernel.

Signed-off-by: Joe Fradley <joefradley@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Documentation/admin-guide/kernel-parameters.txt
include/kunit/test.h
lib/kunit/Kconfig
lib/kunit/executor.c
lib/kunit/test.c
tools/testing/kunit/kunit_kernel.py