gitlab-ci: compile Linux image with support to VGEM
Add VGEM to the Linux image that runs in the CI. There are tests that we plan to add in the future that need this. This brings a complication, as we already have VKMS in the image. The order in which DRM devices are loaded is not always the same, so the node they receive is non-deterministic. Until now we were sure that VKMS (the virtual device we use to run the DRM-backend tests in the CI) would be in "/dev/dri/card0", but now we can't be sure. To deal with this problem we find the node of each device using a one-liner shell script. This commit also updates the documentation section that describes specificities of DRM-backend tests in our test suite. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
committed by
Daniel Stone
parent
ce8ead4bf7
commit
08dbd29e33
@@ -218,10 +218,19 @@ DRM-backend tests
|
||||
|
||||
DRM-backend tests require a DRM device, so they are a special case. To select a
|
||||
device the test suite will simply look at the environment variable
|
||||
``WESTON_TEST_SUITE_DRM_DEVICE``. So the first thing the user has to do in order
|
||||
to run DRM-backend tests is to set this environment variable with the card that
|
||||
should run the tests. For instance, in order to run DRM-backend tests with
|
||||
``card0`` we need to run ``export WESTON_TEST_SUITE_DRM_DEVICE=card0``.
|
||||
``WESTON_TEST_SUITE_DRM_DEVICE``. In Weston's CI, we set this variable to the
|
||||
DRM node that VKMS takes (``cardX`` - X can change across each bot, as the order
|
||||
in which devices are loaded is not predictable).
|
||||
|
||||
**IMPORTANT**: our DRM-backend tests are written specifically to run on top of
|
||||
VKMS (KMS driver created to be used by headless machines in test suites, so it
|
||||
aims to be more configurable and predictable than real hardware). We don't
|
||||
guarantee that these tests will work on real hardware.
|
||||
|
||||
But if users want to run DRM-backend tests using real hardware anyway, the first
|
||||
thing they need to do is to set this environment variable with the DRM node of
|
||||
the card that should run the tests. For instance, in order to run DRM-backend
|
||||
tests with ``card0`` we need to run ``export WESTON_TEST_SUITE_DRM_DEVICE=card0``.
|
||||
|
||||
Note that the card should not be in use by a desktop environment (or any other
|
||||
program that requires master status), as there can only be one user at a time
|
||||
|
||||
Reference in New Issue
Block a user