Lines Matching refs:tests
9 There are three sorts of tests:
11 - The KUnit tests.
12 - The ``#[test]`` tests.
15 The KUnit tests
18 These are the tests that come from the examples in the Rust documentation. They
19 get transformed into KUnit tests.
24 These tests can be run via KUnit. For example via ``kunit_tool`` (``kunit.py``)
37 Kernel hacking -> Kernel Testing and Coverage -> KUnit - Enable support for unit tests
43 KUnit tests are documentation tests
46 These documentation tests are typically examples of usage of any item (e.g.
63 In userspace, the tests are collected and run via ``rustdoc``. Using the tool
68 For the kernel, however, these tests get transformed into KUnit test suites.
104 The tests are also compiled with Clippy under ``CLIPPY=1``, just like normal
114 Rust tests appear to assert using the usual ``assert!`` and ``assert_eq!``
126 The ``#[test]`` tests
129 Additionally, there are the ``#[test]`` tests. These can be run using the
134 This requires the kernel ``.config``. It runs the ``#[test]`` tests on the host
135 (currently) and thus is fairly limited in what these tests can test.
142 The kernel config options required for the tests are listed in the
152 tests can be compiled and executed using the following command::