Weston test suite

Pekka Paalanen ppaalanen at gmail.com
Tue Aug 25 00:43:22 PDT 2015


On Tue, 25 Aug 2015 10:16:17 +0300
Pekka Paalanen <ppaalanen at gmail.com> wrote:

> Btw. I CC'd you on https://bugs.freedesktop.org/show_bug.cgi?id=83985
> where we have been talking about testing things. I wonder how you'd
> handle some tests being specific to a backend, and some tests being
> generic such that a user (the person doing 'make check') could run it
> against any backend he chooses? If we need such things... perhaps
> backend-specificity comes mostly from configuration and options, so
> maybe we might be able to unify the options so much that the
> differences don't matter.
> 
> And then screenshot-based tests are likely something we want to run
> once for each possible renderer for a chosen backend.
> 
> 
> Hmm... I just got an idea.
> 
> We've been adding renderer support to headless-backend.so so that we
> could run screenshot-based tests headless. What if... we kept headless
> backend without real renderers (only mocked renderer, one capable of
> initialising EGL_WL_bind_wayland_display though), ran Weston/wayland on
> top of Weston/headless, and test clients on the Weston/wayland instance?
> 
> It might require some work on the wayland-backend, but it would also
> leave all testing related mocks and hacks into the headless backend
> code, without leaking it into gl-renderer or such. And it would stress
> the wayland-backend which I imagine could use more use.
> 
> Well, that's just a wild idea, I'm not sure what it would entail. What
> do you all think?

Wait... using Weston/headless to host Weston/wayland would immediately
enable software GL rendering, wouldn't it? The EGL Wayland platform in
Mesa today supports software-GL on wl_shm. This means we should be able
to test Weston's gl-renderer on llvmpipe by just running it with the
wayland-backend on another Weston instace.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150825/aabc25a8/attachment-0001.sig>


More information about the wayland-devel mailing list