summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2021-12-10 23:49:48 +0100
committerMarge Bot <marge-bot@gnome.org>2022-01-14 09:16:09 +0000
commit06eb27d50324223ef2d3a7f9cd0addaa721841de (patch)
tree010b28e6f42a7434901fcf1d40512d212c3507c2 /meson_options.txt
parentb5284e5cccc3ae2898462b05cf89c917f022dd56 (diff)
downloadmutter-06eb27d50324223ef2d3a7f9cd0addaa721841de.tar.gz
tests: Run KMS tests inside a QEMU virtual machine
This commit makes it possible to run test executables in a test environment constructed of a virtual machine running the Linux kernel with the virtual KMS driver enabled, and a mocked system environment using meta-dbus-runner.py/python-dbusmock. The qemu machine is configured to use 256M of memory, as the default 128M was not enough for the tests to pass. Using qemu is also only made possible on x86_64; more changes are needed for it to be runnable on aarch64, so add a warning if it was enabled on any other architecture. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2151>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 6609e4332..12457d261 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -141,6 +141,18 @@ option('tests',
description: 'Enable tests globally. Specific test suites can be controlled with core_tests, clutter_tests, and cogl_tests'
)
+option('kvm_tests',
+ type: 'boolean',
+ value: false,
+ description: 'Enable running certain tests in a virtual machine with a custom built kernel'
+)
+
+option('kvm_kernel_image',
+ type: 'string',
+ value: '',
+ description: 'Path to a Linux kernel image to be used for KVM testing'
+)
+
option('profiler',
type: 'boolean',
value: true,