]> www.infradead.org Git - users/dwmw2/linux.git/commit
kunit: Introduce autorun option
authorStanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Mon, 28 Oct 2024 21:54:52 +0000 (21:54 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 15 Jan 2025 16:04:06 +0000 (09:04 -0700)
commit31691914c392675bdc65d1e72dd8d129a1f0014f
treea85aa8ad226c4969aed1af14cf9411680a7331e7
parent220374e70b0b9d44ab5ec1106bc16caf20f94d80
kunit: Introduce autorun option

The new option controls tests run on boot or module load. With the new
debugfs "run" dentry allowing to run tests on demand, an ability to disable
automatic tests run becomes a useful option in case of intrusive tests.

The option is set to true by default to preserve the existent behavior. It
can be overridden by either the corresponding module option or by the
corresponding config build option.

Link: https://lore.kernel.org/r/173015245931.4747.16419517391658830640.stgit@skinsburskii-cloud-desktop.internal.cloudapp.net
Signed-off-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reviewed-by: Rae Moar <rmoar@google.com>
Acked-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h
lib/kunit/Kconfig
lib/kunit/debugfs.c
lib/kunit/executor.c
lib/kunit/test.c