mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
Currently, kunit.py has many subcommands and options, making it difficult to remember them without checking the help message. Add --list-cmds and --list-opts to kunit.py to get available commands and options, use those outputs in kunit-completion.sh to show completion. This implementation is similar to perf and tools/perf/perf-completion.sh. Example output: $ source tools/testing/kunit/kunit-completion.sh $ ./tools/testing/kunit/kunit.py [TAB][TAB] build config exec parse run $ ./tools/testing/kunit/kunit.py run --k[TAB][TAB] --kconfig_add --kernel_args --kunitconfig Link: https://lore.kernel.org/r/20260117-kunit-completion-v2-1-cabd127d0801@gmail.com Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Ryota Sakamoto <sakamo.ryota@gmail.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| kunit | ||
| lkmm | ||
| autofdo.rst | ||
| checkpatch.rst | ||
| checkuapi.rst | ||
| clang-format.rst | ||
| coccinelle.rst | ||
| gcov.rst | ||
| gpio-sloppy-logic-analyzer.rst | ||
| index.rst | ||
| kasan.rst | ||
| kcov.rst | ||
| kcsan.rst | ||
| kfence.rst | ||
| kmemleak.rst | ||
| kmsan.rst | ||
| kselftest.rst | ||
| ktap.rst | ||
| propeller.rst | ||
| sparse.rst | ||
| testing-devices.rst | ||
| testing-overview.rst | ||
| ubsan.rst | ||