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)
39 $ make -C tools/testing/selftests
43 $ make -C tools/testing/selftests run_tests
54 kernel src. This is applicable to "Running a subset of selftests" section
72 to "Running a subset of selftests" section below.
78 Running a subset of selftests
86 $ make -C tools/testing/selftests TARGETS=ptrace run_tests
105 $ make -C tools/testing/selftests SKIP_TARGETS=ptrace run_tests
116 See the top-level tools/testing/selftests/Makefile for the list of all
119 Running the full range hotplug selftests
124 $ make -C tools/testing/selftests hotplug
128 $ make -C tools/testing/selftests run_hotplug
133 Install selftests
137 tool) to install selftests in the default location (`tools/testing/selftests/kselftest_install`),
140 To install selftests in default location::
142 $ make -C tools/testing/selftests install
144 To install selftests in a user specified location::
146 $ make -C tools/testing/selftests install INSTALL_PATH=/some/other/path
148 Running installed selftests
171 Packaging selftests
175 different system. To package selftests, run::
177 $ make -C tools/testing/selftests gen_tar
184 $ make -C tools/testing/selftests gen_tar FORMAT=.xz
187 tests by using variables specified in `Running a subset of selftests`_
190 $ make -C tools/testing/selftests gen_tar TARGETS="bpf" FORMAT=.xz
197 In general, the rules for selftests are
247 e.g: tools/testing/selftests/android/config
252 * Add new test name in TARGETS in selftests/Makefile::
261 make -C tools/testing/selftests {all,install,clean,gen_tar}
262 make -C tools/testing/selftests {all,install,clean,gen_tar} O=abs_path
263 make -C tools/testing/selftests {all,install,clean,gen_tar} O=rel_path
275 - ``tools/testing/selftests/kselftest_module.h``
276 - ``tools/testing/selftests/kselftest/module.sh``
282 source. selftests which do not load modules typically should not taint the
295 e.g. ``tools/testing/selftests/lib/printf.sh``
297 3. Add line to config file e.g. ``tools/testing/selftests/lib/config``
299 4. Add test script to makefile e.g. ``tools/testing/selftests/lib/Makefile``
323 #include "../tools/testing/selftests/kselftest_module.h"
363 The tests from tools/testing/selftests/seccomp/seccomp_bpf.c can be used as
369 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
376 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
384 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
387 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h