linux/Documentation/dev-tools
Tobin C. Harding eebf4dd452 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>
2019-04-08 16:44:20 -06:00
..
coccinelle.rst doc:process: add links where missing 2018-12-06 10:21:19 -07:00
conf.py doc-rst: make dev-tools folder buildable stand-alone 2016-10-26 17:24:54 -06:00
gcov.rst Documentation/dev-tools: use code-block with proper language 2016-11-03 12:39:06 +02:00
gdb-kernel-debugging.rst docs: disable KASLR when debugging kernel 2017-07-17 14:49:01 -06:00
index.rst Documentation: dev-tools: Fix typos in index.rst 2018-11-25 12:27:05 -07:00
kasan.rst kasan: update documentation 2018-12-28 12:11:44 -08:00
kcov.rst Documentation/dev-tools: Use gcc version number instead svn revision number 2019-01-14 17:25:41 -07:00
kgdb.rst docs: disable KASLR when debugging kernel 2017-07-17 14:40:40 -06:00
kmemleak.rst docs: Remove remaining references to metag 2018-02-22 11:07:37 +00:00
kselftest.rst kselftest: Add test module framework header 2019-04-08 16:44:20 -06:00
sparse.rst Documentation/sparse: fix typo 2018-03-21 09:17:56 -06:00
ubsan.rst docs: sphinxify ubsan.txt and move it to dev-tools 2016-08-18 17:41:51 -06:00