Lines Matching refs:selftests
5 The kernel contains a set of "self tests" under the tools/testing/selftests/
34 Running the selftests (hotplug tests are run in limited mode)
40 $ make -C tools/testing/selftests
44 $ make -C tools/testing/selftests run_tests
55 kernel src. This is applicable to "Running a subset of selftests" section
73 to "Running a subset of selftests" section below.
79 Running a subset of selftests
87 $ make -C tools/testing/selftests TARGETS=ptrace run_tests
106 $ make -C tools/testing/selftests SKIP_TARGETS=ptrace run_tests
117 See the top-level tools/testing/selftests/Makefile for the list of all
120 Running the full range hotplug selftests
125 $ make -C tools/testing/selftests hotplug
129 $ make -C tools/testing/selftests run_hotplug
134 Install selftests
138 tool) to install selftests in the default location (`tools/testing/selftests/kselftest_install`),
141 To install selftests in default location::
143 $ make -C tools/testing/selftests install
145 To install selftests in a user specified location::
147 $ make -C tools/testing/selftests install INSTALL_PATH=/some/other/path
149 Running installed selftests
172 Timeout for selftests
179 the timeout with a value higher than 45 seconds, selftests strives to keep
180 it that way. Timeouts in selftests are not considered fatal because the
194 Packaging selftests
198 different system. To package selftests, run::
200 $ make -C tools/testing/selftests gen_tar
207 $ make -C tools/testing/selftests gen_tar FORMAT=.xz
210 tests by using variables specified in `Running a subset of selftests`_
213 $ make -C tools/testing/selftests gen_tar TARGETS="size" FORMAT=.xz
220 In general, the rules for selftests are
278 * the part of paths below tools/testing/selftests/ is preserved when
282 the selftests hierarchy.
293 e.g: tools/testing/selftests/android/config
298 * Add new test name in TARGETS in selftests/Makefile::
307 make -C tools/testing/selftests {all,install,clean,gen_tar}
308 make -C tools/testing/selftests {all,install,clean,gen_tar} O=abs_path
309 make -C tools/testing/selftests {all,install,clean,gen_tar} O=rel_path
321 - ``tools/testing/selftests/kselftest_module.h``
322 - ``tools/testing/selftests/kselftest/module.sh``
328 source. selftests which do not load modules typically should not taint the
341 e.g. ``tools/testing/selftests/lib/printf.sh``
343 3. Add line to config file e.g. ``tools/testing/selftests/lib/config``
345 4. Add test script to makefile e.g. ``tools/testing/selftests/lib/Makefile``
369 #include "../tools/testing/selftests/kselftest_module.h"
409 The tests from tools/testing/selftests/seccomp/seccomp_bpf.c can be used as
415 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
422 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
430 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
433 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h