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)
commitd20a6ba5e3be5f8d9002c6c5a5d4dfecc5dc48f9
tree7798e5606a8ada2099d00eea123b5305d61da342
parenta15cfa39e8cf9bb20d755978c2f25a9c427bf7b2
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