Simple DRM-backend test
Hello! This series adds a very simple DRM-backend test: simple-drm-backend-test.c
. The modifications in the test suite will be useful to add more complex DRM-backend test cases. For now, it only works locally, as the CI does not always have a DRM device available. The plan is to run the tests in the CI using VKMS in the future. See #305 for more information.
To run the DRM-backend tests, the user has to set the environment variable WESTON_TEST_SUITE_DRM_DEVICE
with the card that is going to be used to run the tests. For instance, export WESTON_TEST_SUITE_DRM_DEVICE=card0
.
Also, the tests will run in the non-default seat seat-weston-test
. This is good to avoid opening input devices unnecessarily. As this differs from the default seat (seat0
) of users's session, logind
complains and so we rely on launcher-direct for DRM-backend tests.