]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: tool: Enable virtio/PCI by default on UML
authorDavid Gow <davidgow@google.com>
Fri, 8 Jul 2022 16:27:11 +0000 (16:27 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 8 Jul 2022 17:22:29 +0000 (11:22 -0600)
commit385451d81c1f8a4068dba77394eb8ec0bd1e52c9
treefdded0f2b9207972ffbf99be837ec0ee5307c801
parente025c4d9380e429830cf6040117e892b817c3074
kunit: tool: Enable virtio/PCI by default on UML

There are several tests which depend on PCI, and hence need a bunch of
extra options to run under UML. This makes it awkward to give
configuration instructions (whether in documentation, or as part of a
.kunitconfig file), as two separate, incompatible sets of config options
are required for UML and "most other architectures".

For non-UML architectures, it's possible to add default kconfig options
via the qemu_config python files, but there's no equivalent for UML. Add
a new tools/testing/kunit/configs/arch_uml.config file containing extra
kconfig options to use on UML.

Tested-by: José Expósito <jose.exposito89@gmail.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/configs/arch_uml.config [new file with mode: 0644]
tools/testing/kunit/kunit_kernel.py
tools/testing/kunit/kunit_tool_test.py