diff options
author | Alan Maguire <alan.maguire@oracle.com> | 2020-03-26 17:25:07 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-03-26 23:07:18 +0300 |
commit | e2219db280e3fe52e5cc242e4225dd2685af3c56 (patch) | |
tree | da1d0dc3234bec3e5dfcb5eee5ff6fec4715b914 /lib/kunit/Kconfig | |
parent | 0d5792c9bc458774a3bfdf4b194f1903fe558231 (diff) | |
download | linux-e2219db280e3fe52e5cc242e4225dd2685af3c56.tar.xz |
kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display
add debugfs support for displaying kunit test suite results; this is
especially useful for module-loaded tests to allow disentangling of
test result display from other dmesg events. debugfs support is
provided if CONFIG_KUNIT_DEBUGFS=y.
As well as printk()ing messages, we append them to a per-test log.
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/kunit/Kconfig')
-rw-r--r-- | lib/kunit/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/kunit/Kconfig b/lib/kunit/Kconfig index 065aa16f448b..95d12e3d6d95 100644 --- a/lib/kunit/Kconfig +++ b/lib/kunit/Kconfig @@ -14,6 +14,14 @@ menuconfig KUNIT if KUNIT +config KUNIT_DEBUGFS + bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" + help + Enable debugfs representation for kunit. Currently this consists + of /sys/kernel/debug/kunit/<test_suite>/results files for each + test suite, which allow users to see results of the last test suite + run that occurred. + config KUNIT_TEST tristate "KUnit test for KUnit" help |