kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display
authorAlan Maguire <alan.maguire@oracle.com>
Thu, 26 Mar 2020 14:25:07 +0000 (14:25 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 26 Mar 2020 20:07:18 +0000 (14:07 -0600)
commite2219db280e3fe52e5cc242e4225dd2685af3c56
treeda1d0dc3234bec3e5dfcb5eee5ff6fec4715b914
parent0d5792c9bc458774a3bfdf4b194f1903fe558231
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>
include/kunit/test.h
lib/kunit/Kconfig
lib/kunit/Makefile
lib/kunit/debugfs.c [new file with mode: 0644]
lib/kunit/debugfs.h [new file with mode: 0644]
lib/kunit/kunit-test.c
lib/kunit/test.c