tests: properly select renderer for DRM-backend
authorLeandro Ribeiro <leandro.ribeiro@collabora.com>
Tue, 5 May 2020 21:14:25 +0000 (18:14 -0300)
committerPekka Paalanen <pq@iki.fi>
Tue, 2 Jun 2020 13:47:15 +0000 (13:47 +0000)
commit7b37b4d3d723da2c041053472812748465c3ae27
tree940d3f2e6356de77773e2771d881b8579e9af21d
parente8033e3dd166449ef1a91941fe0d6f8a2e59da45
tests: properly select renderer for DRM-backend

The test suite is dealing only with headless-backend tests.
In order to make it able to run DRM-backend tests, we have
to properly select the renderer that it will use.

This patch add the command line option --use-pixman if the test
defines the DRM-backend renderer as RENDERER_PIXMAN, and it will
add nothing to the command line if it defines RENDERER_GL (the
DRM-backend default renderer is already GL). Also, if the user
defines the DRM-backend renderer as RENDERER_NOOP, the test will
fail (as it should, since DRM-backend does not implement it).

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
tests/weston-test-fixture-compositor.c