Lines Matching refs:kunit
7 Using ``kunit.py run`` ("kunit tool")
18 ( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run $@ )
22 Early versions of ``kunit.py`` (before 5.6) didn't work unless run from
28 ``kunit.py run`` accepts an optional glob argument to filter tests. The format
35 $ echo -e 'CONFIG_KUNIT=y\nCONFIG_KUNIT_ALL_TESTS=y' > .kunit/.kunitconfig
36 $ ./tools/testing/kunit/kunit.py run 'sysctl*'
42 $ echo -e 'CONFIG_KUNIT=y\nCONFIG_KUNIT_ALL_TESTS=y' > .kunit/.kunitconfig
43 $ ./tools/testing/kunit/kunit.py run 'sysctl*.*write*'
55 ``kunit.py run`` (along with ``build``, and ``config``) supports a
60 E.g. kunit has one for its tests:
64 $ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit/.kunitconfig
71 $ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit
86 One alternative would be to have kunit tool recursively combine configs
97 $ ./tools/testing/kunit/kunit.py run --kernel_args=param=42 --kernel_args=param2=false
126 …IG_DEBUG_INFO=y\nCONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y\nCONFIG_GCOV=y" >> .kunit/.kunitconfig
127 $ ./tools/testing/kunit/kunit.py run
128 # Extract the coverage information from the build dir (.kunit/)
129 $ lcov -t "my_kunit_tests" -o coverage.info -c -d .kunit/
140 $ ./tools/testing/kunit/kunit.py run --make_options=CC=/usr/bin/gcc-6
141 $ lcov -t "my_kunit_tests" -o coverage.info -c -d .kunit/ --gcov-tool=/usr/bin/gcov-6
147 Running tests without using ``kunit.py run`` is also an important use case.
198 $ modprobe kunit-example-test
204 failed (as of 5.13). But ``kunit.py parse`` would, see below.
217 You can use ``kunit.py parse`` to parse dmesg for test output and print out
218 results in the same familiar format that ``kunit.py run`` does.
222 $ ./tools/testing/kunit/kunit.py parse /var/log/dmesg
238 ``/sys/kernel/debug/kunit/<suite>/results``.
243 $ modprobe kunit-example-test > /dev/null
244 $ cat /sys/kernel/debug/kunit/example/results
248 $ modprobe -r kunit-example-test
249 $ cat /sys/kernel/debug/kunit/example/results
250 /sys/kernel/debug/kunit/example/results: No such file or directory
265 $ modprobe kunit-example-test