Lines Matching refs:tests
5 The kernel contains a set of "self tests" under the tools/testing/selftests/
6 directory. These are intended to be small tests to exercise individual code
10 Kselftest from mainline can be run on older stable kernels. Running tests
19 write new tests using the framework on Kselftest wiki:
23 On some systems, hot-plug tests could hang forever waiting for cpu and
25 to run the full range of hot-plug tests. In default mode, hot-plug tests run
34 Running the selftests (hotplug tests are run in limited mode)
37 To build the tests::
42 To run the tests::
46 To build and run the tests with a single command, use::
50 Note that some tests will require root privileges.
53 running tests. To locate output files in a separate directory two syntaxes
69 The above commands by default run the tests and print full pass/fail report.
83 single test to run, or a list of tests to run.
85 To run only tests targeted for a single subsystem::
89 You can specify multiple tests to build and run::
104 To run all tests but a single subsystem::
108 You can specify multiple tests to skip::
112 You can also specify a restricted list of tests to run together with a
123 To build the hotplug tests::
127 To run the hotplug tests::
131 Note that some tests will require root privileges.
153 is a script named `run_kselftest.sh` to run the tests.
156 note some tests will require root privileges::
161 To see the list of available tests, the `-l` option can be used::
165 The `-c` option can be used to run all the tests from a test collection, or
166 the `-t` option for specific single tests. Either can be used multiple times::
178 configured a desired upper timeout for the test. Only a few tests override
183 which will run the tests you can configure a test runner on those systems to
197 In some cases packaging is desired, such as when tests need to run on a
210 tests by using variables specified in `Running a subset of selftests`_
217 Contributing new tests
231 * The output of tests must conform to the TAP standard to ensure high
238 Contributing new tests (details)
255 TEST_GEN_MODS_DIR should be used by tests that require modules to be built
259 TEST_CUSTOM_PROGS should be used by tests that require custom build
274 included when exporting or installing the tests, with the following
314 Kselftest tests the kernel from userspace. Sometimes things need
405 The kselftest_harness.h file contains useful helpers to build tests. The
409 The tests from tools/testing/selftests/seccomp/seccomp_bpf.c can be used as