Lines Matching refs:selftests

5 The kernel contains a set of "self tests" under the tools/testing/selftests/
43 Running the selftests (hotplug tests are run in limited mode)
49 $ make -C tools/testing/selftests
53 $ make -C tools/testing/selftests run_tests
64 kernel src. This is applicable to "Running a subset of selftests" section
82 to "Running a subset of selftests" section below.
88 Running a subset of selftests
96 $ make -C tools/testing/selftests TARGETS=ptrace run_tests
115 $ make -C tools/testing/selftests SKIP_TARGETS=ptrace run_tests
126 See the top-level tools/testing/selftests/Makefile for the list of all
129 Running the full range hotplug selftests
134 $ make -C tools/testing/selftests hotplug
138 $ make -C tools/testing/selftests run_hotplug
143 Install selftests
147 tool) to install selftests in the default location (`tools/testing/selftests/kselftest_install`),
150 To install selftests in default location::
152 $ make -C tools/testing/selftests install
154 To install selftests in a user specified location::
156 $ make -C tools/testing/selftests install INSTALL_PATH=/some/other/path
158 Running installed selftests
181 Timeout for selftests
188 the timeout with a value higher than 45 seconds, selftests strives to keep
189 it that way. Timeouts in selftests are not considered fatal because the
203 Packaging selftests
207 different system. To package selftests, run::
209 $ make -C tools/testing/selftests gen_tar
216 $ make -C tools/testing/selftests gen_tar FORMAT=.xz
219 tests by using variables specified in `Running a subset of selftests`_
222 $ make -C tools/testing/selftests gen_tar TARGETS="size" FORMAT=.xz
229 In general, the rules for selftests are
287 * the part of paths below tools/testing/selftests/ is preserved when
291 the selftests hierarchy.
302 e.g: tools/testing/selftests/android/config
307 * Add new test name in TARGETS in selftests/Makefile::
316 make -C tools/testing/selftests {all,install,clean,gen_tar}
317 make -C tools/testing/selftests {all,install,clean,gen_tar} O=abs_path
318 make -C tools/testing/selftests {all,install,clean,gen_tar} O=rel_path
330 - ``tools/testing/selftests/kselftest_module.h``
331 - ``tools/testing/selftests/kselftest/module.sh``
337 source. selftests which do not load modules typically should not taint the
350 e.g. ``tools/testing/selftests/lib/bitmap.sh``
352 3. Add line to config file e.g. ``tools/testing/selftests/lib/config``
354 4. Add test script to makefile e.g. ``tools/testing/selftests/lib/Makefile``
378 #include "../tools/testing/selftests/kselftest_module.h"
418 The tests from tools/testing/selftests/seccomp/seccomp_bpf.c can be used as
424 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
431 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
439 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
442 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h