summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorTobin C. Harding2019-04-05 03:58:56 +0200
committerShuah Khan2019-04-09 00:44:20 +0200
commiteebf4dd452377921e3a2635f0f5df2042470faef (patch)
tree9eb88bbf91e67b97051ba1041110ddde67c7f946 /crypto
parentkselftest: Add test runner creation script (diff)
downloadkernel-qcow2-linux-eebf4dd452377921e3a2635f0f5df2042470faef.tar.gz
kernel-qcow2-linux-eebf4dd452377921e3a2635f0f5df2042470faef.tar.xz
kernel-qcow2-linux-eebf4dd452377921e3a2635f0f5df2042470faef.zip
kselftest: Add test module framework header
kselftest runs as a userspace process. Sometimes we need to test things from kernel space. One way of doing this is by creating a test module. Currently doing so requires developers to write a bunch of boiler plate in the module if kselftest is to be used to run the tests. This means we currently have a load of duplicate code to achieve these ends. If we have a uniform method for implementing test modules then we can reduce code duplication, ensure uniformity in the test framework, ease code maintenance, and reduce the work required to create tests. This all helps to encourage developers to write and run tests. Add a C header file that can be included in test modules. This provides a single point for common test functions/macros. Implement a few macros that make up the start of the test framework. Add documentation for new kselftest header to kselftest documentation. Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Tobin C. Harding <tobin@kernel.org> Signed-off-by: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions