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 …$ ./tools/testing/kunit/kunit.py run --kunitconfig=.kunit/ --kunitconfig=tools/testing/kunit/confi…
127 # Extract the coverage information from the build dir (.kunit/)
128 $ lcov -t "my_kunit_tests" -o coverage.info -c -d .kunit/
139 $ ./tools/testing/kunit/kunit.py run --make_options=CC=/usr/bin/gcc-6
140 $ lcov -t "my_kunit_tests" -o coverage.info -c -d .kunit/ --gcov-tool=/usr/bin/gcov-6
146 Running tests without using ``kunit.py run`` is also an important use case.
197 $ modprobe kunit-example-test
203 failed (as of 5.13). But ``kunit.py parse`` would, see below.
216 You can use ``kunit.py parse`` to parse dmesg for test output and print out
217 results in the same familiar format that ``kunit.py run`` does.
221 $ ./tools/testing/kunit/kunit.py parse /var/log/dmesg
237 ``/sys/kernel/debug/kunit/<suite>/results``.
242 $ modprobe kunit-example-test > /dev/null
243 $ cat /sys/kernel/debug/kunit/example/results
247 $ modprobe -r kunit-example-test
248 $ cat /sys/kernel/debug/kunit/example/results
249 /sys/kernel/debug/kunit/example/results: No such file or directory
264 $ modprobe kunit-example-test