summaryrefslogtreecommitdiff
path: root/tools/testing/kunit/configs
diff options
context:
space:
mode:
authorDavid Gow <davidgow@google.com>2022-07-08 19:27:11 +0300
committerShuah Khan <skhan@linuxfoundation.org>2022-07-08 20:22:29 +0300
commit6fc3a8636a7b0f7dbd6d0a4e450e765dc17518d4 (patch)
treefdded0f2b9207972ffbf99be837ec0ee5307c801 /tools/testing/kunit/configs
parent53b466219f89782b5c3d96d21f8765d1eadcce4e (diff)
downloadlinux-6fc3a8636a7b0f7dbd6d0a4e450e765dc17518d4.tar.xz
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>
Diffstat (limited to 'tools/testing/kunit/configs')
-rw-r--r--tools/testing/kunit/configs/arch_uml.config5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/kunit/configs/arch_uml.config b/tools/testing/kunit/configs/arch_uml.config
new file mode 100644
index 000000000000..e824ce43b05a
--- /dev/null
+++ b/tools/testing/kunit/configs/arch_uml.config
@@ -0,0 +1,5 @@
+# Config options which are added to UML builds by default
+
+# Enable virtio/pci, as a lot of tests require it.
+CONFIG_VIRTIO_UML=y
+CONFIG_UML_PCI_OVER_VIRTIO=y