aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/dev-tools
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2017-10-02 19:44:17 -0400
committerJonathan Corbet <corbet@lwn.net>2017-10-12 13:01:40 -0400
commitd5cdbb875f5c450bf9ee950008a2865343c1775c (patch)
treee9eed6369f5ab544ef80ba89a9050186bec00c09 /Documentation/dev-tools
parent58e7cb9e935d53c64414361fba3f95ed261f9110 (diff)
doc: dev-tools: kselftest.rst: update to include make O=dir support
Update to include details on make O=dir support and other changes improve test results output. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> [jc: Tweaked RST formatting slightly ] Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/dev-tools')
-rw-r--r--Documentation/dev-tools/kselftest.rst34
1 files changed, 32 insertions, 2 deletions
diff --git a/Documentation/dev-tools/kselftest.rst b/Documentation/dev-tools/kselftest.rst
index ebd03d11d2c2..e80850eefe13 100644
--- a/Documentation/dev-tools/kselftest.rst
+++ b/Documentation/dev-tools/kselftest.rst
@@ -31,6 +31,17 @@ To build and run the tests with a single command, use::
31 31
32Note that some tests will require root privileges. 32Note that some tests will require root privileges.
33 33
34Build and run from user specific object directory (make O=dir)::
35
36 $ make O=/tmp/kselftest kselftest
37
38Build and run KBUILD_OUTPUT directory (make KBUILD_OUTPUT=)::
39
40 $ make KBUILD_OUTPUT=/tmp/kselftest kselftest
41
42The above commands run the tests and print pass/fail summary to make it
43easier to understand the test results. Please find the detailed individual
44test results for each test in /tmp/testname file(s).
34 45
35Running a subset of selftests 46Running a subset of selftests
36============================= 47=============================
@@ -46,10 +57,21 @@ You can specify multiple tests to build and run::
46 57
47 $ make TARGETS="size timers" kselftest 58 $ make TARGETS="size timers" kselftest
48 59
60Build and run from user specific object directory (make O=dir)::
61
62 $ make O=/tmp/kselftest TARGETS="size timers" kselftest
63
64Build and run KBUILD_OUTPUT directory (make KBUILD_OUTPUT=)::
65
66 $ make KBUILD_OUTPUT=/tmp/kselftest TARGETS="size timers" kselftest
67
68The above commands run the tests and print pass/fail summary to make it
69easier to understand the test results. Please find the detailed individual
70test results for each test in /tmp/testname file(s).
71
49See the top-level tools/testing/selftests/Makefile for the list of all 72See the top-level tools/testing/selftests/Makefile for the list of all
50possible targets. 73possible targets.
51 74
52
53Running the full range hotplug selftests 75Running the full range hotplug selftests
54======================================== 76========================================
55 77
@@ -113,9 +135,17 @@ Contributing new tests (details)
113 * Use TEST_GEN_XXX if such binaries or files are generated during 135 * Use TEST_GEN_XXX if such binaries or files are generated during
114 compiling. 136 compiling.
115 137
116 TEST_PROGS, TEST_GEN_PROGS mean it is the excutable tested by 138 TEST_PROGS, TEST_GEN_PROGS mean it is the executable tested by
117 default. 139 default.
118 140
141 TEST_CUSTOM_PROGS should be used by tests that require custom build
142 rule and prevent common build rule use.
143
144 TEST_PROGS are for test shell scripts. Please ensure shell script has
145 its exec bit set. Otherwise, lib.mk run_tests will generate a warning.
146
147 TEST_CUSTOM_PROGS and TEST_PROGS will be run by common run_tests.
148
119 TEST_PROGS_EXTENDED, TEST_GEN_PROGS_EXTENDED mean it is the 149 TEST_PROGS_EXTENDED, TEST_GEN_PROGS_EXTENDED mean it is the
120 executable which is not tested by default. 150 executable which is not tested by default.
121 TEST_FILES, TEST_GEN_FILES mean it is the file which is used by 151 TEST_FILES, TEST_GEN_FILES mean it is the file which is used by