]> www.infradead.org Git - users/hch/misc.git/commit
kunit: tool: Implement listing of available architectures
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 15 Apr 2025 07:03:06 +0000 (09:03 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 15 Apr 2025 16:54:50 +0000 (10:54 -0600)
commit6cf6b0a6f204e8b10e2b69e74953f029ea83a8a9
tree0208fa1edbcf6d9f445637a7e11fa1d676b1020a
parent9aa08e761b67e3d8b5ca2ff1e9194a73d3000cce
kunit: tool: Implement listing of available architectures

To implement custom scripting around kunit.py it is useful to get a list of
available architectures. While it is possible to manually inspect
tools/testing/kunit/qemu_configs/, this is annoying to implement and
introduces a dependency on a kunit.py implementation detail.

Introduce 'kunit.py run --arch help' which lists all known architectures
in an easy to parse list. This is equivalent on how QEMU implements
listing of possible argument values.

Link: https://lore.kernel.org/r/20250415-kunit-list-v2-1-aa452cd317ae@linutronix.de
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Documentation/dev-tools/kunit/run_wrapper.rst
tools/testing/kunit/kunit_kernel.py