Jonas Ådahl
9966c8717b
tests/kms: Run tests both using simple and atomic KMS
...
Two sanity checks to make sure the debug env vars still work are added
too.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2456 >
2022-07-28 23:59:24 +00:00
Bartłomiej Piotrowski
7a7fb863a2
tests/virtme-run: Expose two CPUs
...
We're multi threaded, so make things more like reality by exposing more
CPUs using the '-smp 2' qemu option.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2152 >
2022-03-28 16:17:21 +00:00
Bartłomiej Piotrowski
7435bfd0e5
tests/virtme-run: Disable pdcm
...
There are issues when running a nested KVM with Fedora 35 when pdcm is
enabled. Work around this for now by disabling it.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=2022075
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2152 >
2022-03-28 16:17:21 +00:00
Bartłomiej Piotrowski
4ce233b89e
tests/virtme-run: Create fake stdin
...
When running in CI, the stdin may be /dev/null, which causes issues
for qemu. Avoid this issue by creating our own fake stdin.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2152 >
2022-03-28 16:17:21 +00:00
Jonas Ådahl
31bc1c80ab
tests/kvm: Forward the test environment variables to the VM
...
This will help with finding the right libdefault.so and correctly setup
the GLib test framework.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2152 >
2022-03-28 16:17:21 +00:00
Jonas Ådahl
daa945175b
virtme-run: Forward some more environment variables
...
XDG_DATA_DIRS and LD_LIBRARY_PATH is needed to make sure non-system link
directories are respected, e.g. when using jhbuild.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2159 >
2022-01-25 15:47:03 +00:00
Jonas Ådahl
06eb27d503
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 >
2022-01-14 09:16:09 +00:00