diff options
author | Alan Maguire <alan.maguire@oracle.com> | 2020-03-26 14:25:07 +0000 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-03-26 14:07:18 -0600 |
commit | e2219db280e3fe52e5cc242e4225dd2685af3c56 (patch) | |
tree | da1d0dc3234bec3e5dfcb5eee5ff6fec4715b914 /lib/kunit/Makefile | |
parent | 0d5792c9bc458774a3bfdf4b194f1903fe558231 (diff) | |
download | linux-e2219db280e3fe52e5cc242e4225dd2685af3c56.tar.gz linux-e2219db280e3fe52e5cc242e4225dd2685af3c56.tar.bz2 linux-e2219db280e3fe52e5cc242e4225dd2685af3c56.zip |
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/Makefile')
-rw-r--r-- | lib/kunit/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kunit/Makefile b/lib/kunit/Makefile index fab55649b69a..724b94311ca3 100644 --- a/lib/kunit/Makefile +++ b/lib/kunit/Makefile @@ -5,6 +5,10 @@ kunit-objs += test.o \ assert.o \ try-catch.o +ifeq ($(CONFIG_KUNIT_DEBUGFS),y) +kunit-objs += debugfs.o +endif + obj-$(CONFIG_KUNIT_TEST) += kunit-test.o # string-stream-test compiles built-in only. |