mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 16:40:41 -05:00
06eb27d503
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> |
||
---|---|---|
.. | ||
build-linux.sh | ||
kernel-version.txt | ||
meson.build | ||
README.md | ||
run-kvm-test.sh | ||
virtme-run.sh |
High level description of the files in this directory.
build-linux.sh
Builds a Linux kernel image meant to be launched using qemu. Doesn't make any assumptions about configuration other than that. It uses the drm kernel tree. It's used from meson.build.
kernel-version.txt
Describes the version of the Linux kernel to use; usually a tag. It's a separate file so that changing the version will make meson build a new kernel image.
virtme-run.sh
A helper script that uses 'virtme' to launch a qemu virtual machine with the host filesystem exposed inside the virtual machine.
run-kvm-test.sh
Runs the passed test executable in a mocked environment using 'meta-dbus-runner.py' (which uses python-dbusmock to create a mocked system environment.
meson.build
Contains one rule for building the Linux kernel image, and meson test cases that launches tests inside virtual machines.