Lines Matching refs:tests
25 Running a subset of tests
28 ``kunit.py run`` accepts an optional glob argument to filter tests. The format
31 Say that we wanted to run the sysctl tests, we could do so via:
38 We can filter down to just the "write" tests via:
45 We're paying the cost of building more tests than we need this way, but it's
49 However, if we wanted to define a set of tests in a less ad hoc way, the next
52 Defining a set of tests
56 ``--kunitconfig`` flag. So if you have a set of tests that you want to run on a
60 E.g. kunit has one for its tests:
82 files to make it possible to have a top-level config run tests from all
87 automagically, but tests could theoretically depend on incompatible
154 Running tests manually
157 Running tests without using ``kunit.py run`` is also an important use case.
161 As running the tests under UML is fairly straightforward (configure and compile
166 Running built-in tests
169 When setting tests to ``=y``, the tests will run as part of boot and print
170 results to dmesg in TAP format. So you just need to add your tests to your
192 Running tests as modules
195 Depending on the tests, you can build them as loadable modules.
218 work and thus some tests might break. Ideally tests would specify they
238 Regardless of how you're running your tests, you can enable
268 your tests as modules. That way you can isolate the coverage from tests from
332 When a user runs tests, attributes will be present in the raw kernel output (in
334 for all passing tests but the raw kernel output can be accessed using the
355 Additionally, users can output a full attribute report of tests with their
369 Users can filter tests using the ``--filter`` command line flag when running
370 tests. As an example:
384 This example will run all tests with speeds faster than slow. Note that the
399 Filtered tests will not run or show up in the test output. You can use the
400 ``--filter_action=skip`` flag to skip filtered tests instead. These tests will be
428 "slow", or "very_slow". The assumed default speed for tests is "normal". This
447 This attribute is automatically saved as a boolean and tests can also be