Lines Matching +full:subset +full:- +full:of

5 The kernel contains a set of "self tests" under the tools/testing/selftests/
23 On some systems, hot-plug tests could hang forever waiting for cpu and
24 memory to be ready to be offlined. A special hot-plug target is created
25 to run the full range of hot-plug tests. In default mode, hot-plug tests run
26 in safe mode with a limited scope. In limited mode, cpu-hotplug test is
28 hotplug test is run on 2% of hotplug capable memory instead of 10%.
41 testing-devices
49 $ make -C tools/testing/selftests
53 $ make -C tools/testing/selftests run_tests
63 are supported. In both cases the working directory must be the root of the
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
92 single test to run, or a list of tests to run.
96 $ make -C tools/testing/selftests TARGETS=ptrace run_tests
115 $ make -C tools/testing/selftests SKIP_TARGETS=ptrace run_tests
121 You can also specify a restricted list of tests to run together with a
126 See the top-level tools/testing/selftests/Makefile for the list of all
134 $ make -C tools/testing/selftests hotplug
138 $ make -C tools/testing/selftests run_hotplug
146 You can use the "install" target of "make" (which calls the `kselftest_install.sh`
152 $ make -C tools/testing/selftests install
156 $ make -C tools/testing/selftests install INSTALL_PATH=/some/other/path
170 To see the list of available tests, the `-l` option can be used::
172 $ ./run_kselftest.sh -l
174 The `-c` option can be used to run all the tests from a test collection, or
175 the `-t` option for specific single tests. Either can be used multiple times::
177 $ ./run_kselftest.sh -c size -c seccomp -t timers:posix_timers -t timer:nanosleep
179 For other features see the script usage output, seen with the `-h` option.
184 Selftests are designed to be quick and so a default timeout is used of 45
193 use a greater or lower timeout on the command line as with the `-o` or
194 the `--override-timeout` argument. For example to use 165 seconds instead
197 $ ./run_kselftest.sh --override-timeout 165
209 $ make -C tools/testing/selftests gen_tar
211 This generates a tarball in the `INSTALL_PATH/kselftest-packages` directory. By
213 specifying a `FORMAT` make variable. Any value recognized by `tar's auto-compress`_
216 $ make -C tools/testing/selftests gen_tar FORMAT=.xz
218 `make gen_tar` invokes `make install` so you can use it to package a subset of
219 tests by using variables specified in `Running a subset of selftests`_
222 $ make -C tools/testing/selftests gen_tar TARGETS="size" FORMAT=.xz
224 .. _tar's auto-compress: https://www.gnu.org/software/tar/manual/html_node/gzip.html#auto_002dcompr…
237 * Don't cause the top-level "make run_tests" to fail if your feature is
240 * The output of tests must conform to the TAP standard to ensure high
250 * In your Makefile, use facilities from lib.mk by including it instead of
265 before the test starts. The variable will contain the name of the directory
287 * the part of paths below tools/testing/selftests/ is preserved when
290 TEST_INCLUDES is meant to list dependencies located in other directories of
313 kselftest-{all,install,clean,gen_tar}
314 kselftest-{all,install,clean,gen_tar} O=abo_path
315 kselftest-{all,install,clean,gen_tar} O=rel_path
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
324 testing from within the kernel, one method of doing this is to create a
330 - ``tools/testing/selftests/kselftest_module.h``
331 - ``tools/testing/selftests/kselftest/module.sh``
338 kernel, but in cases where a non-test module is loaded, TEST_TAINT can be
342 ----------
358 .. code-block:: sh
360 # Assumes you have booted a fresh build of this kernel tree
362 make kselftest-merge
368 --------------
372 .. code-block:: c
374 // SPDX-License-Identifier: GPL-2.0+
402 -------------------
404 .. code-block:: sh
407 # SPDX-License-Identifier: GPL-2.0+
422 -------
424 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
429 -------
431 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
437 ---------
439 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h
442 .. kernel-doc:: tools/testing/selftests/kselftest_harness.h