how to run subsurface-test?

Pekka Paalanen ppaalanen at gmail.com
Mon Jun 24 03:00:30 PDT 2013


On Mon, 24 Jun 2013 09:43:54 +0000
"Wang, Quanxian" <quanxian.wang at intel.com> wrote:

> 
> 
> -----Original Message-----
> From:
> wayland-devel-bounces+quanxian.wang=intel.com at lists.freedesktop.org
> [mailto:wayland-devel-bounces+quanxian.wang=intel.com at lists.freedesktop.org]
> On Behalf Of Pekka Paalanen Sent: Monday, June 24, 2013 5:31 PM To:
> Wang, Quanxian Cc: wayland-devel at lists.freedesktop.org Subject: Re:
> how to run subsurface-test?
> 
> On Mon, 24 Jun 2013 07:10:53 +0000
> "Wang, Quanxian" <quanxian.wang at intel.com> wrote:
> 
> > Hi, Pq
> > 
> > Would you like to tell me how to run subsurface-test?
> > 
> > I have found the source code in weston/tests is not built out.
> > After checking with configure in Weston, there is no switch to
> > enable how to build subsurface-test object.
> > 
> > Any hint?
> 
> Hi,
> 
> when you build Weston, you should configure it with
> --with-cairo-glesv2 regardless of whether your Cairo actually has
> GLESv2 or not. Otherwise the new subsurfaces demo might not be built.
> It does not matter how your Cairo is built, so you do not need to
> rebuild Cairo. [Wang, Quanxian] Thanks.
> 
> For why, see:
> http://cgit.freedesktop.org/wayland/weston/commit/clients/subsurfaces.c?id=7ff7a80007fd27b2082e5219f4b4cb35948e3ed4
> 
> In short: this avoids a GL vs. GLES clash.
> 
> [Wang, Quanxian] By the way, I have checked the tests.xml for wayland
> test (http://wayland.freedesktop.org/testing.html), and there says I
> need to run 'make check' to run tests. Is there any way to run
> subsurface-test separately. For example, I built subsurface-test
> binary file, and put it into weston environment and run it. (However
> it failed, because it need wl_test interface, desktop shell doesn't
> have). Do you have some suggestion for that? Do I need to register
> wl_test interface into the shell(it is a little crazy for user to do
> that) or there is another shell manage to run tests?

Oh you really meant the tests, I thought you meant the subsurfaces demo.

You can do this:
$ cd tests
$ make check TESTS=subsurface-test

Indeed, the tests are only built for 'make check'.


Cheers,
pq


More information about the wayland-devel mailing list