[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: dbus unit tests and $DISPLAY
From:       Ted Gould <ted () gould ! cx>
Date:       2014-06-11 1:19:02
Message-ID: 1402449542.4101.3.camel () roku
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/alternative)]


On Tue, 2014-06-10 at 15:39 -0700, Colin Walters wrote:

> The current Fedora dbus package runs "make check" per request of Red
> Hat's QA team.  However, several unit tests in DBus require an active X
> server, which isn't available at package build time.  To solve that, I'm
> spawning an Xvfb, but at the moment it looks like something's falling
> over with that with:


Not directly with DBus but the script I've used for starting XVfb in
headless test suites is this one:

http://bazaar.launchpad.net/~dbusmenu-team/libdbusmenu/trunk.14.10/view/hea=
d:/tests/run-xvfb.sh

For newer stuff we've started using the Xorg dummy driver, specifically
with Google Test:

http://cgit.freedesktop.org/xorg/test/xorg-gtest/

It seems the dummy driver works with less hacks like that script. My
understanding is that it works with more features of X as well, but
that's not something I've needed.

Ted


[Attachment #7 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
On Tue, 2014-06-10 at 15:39 -0700, Colin Walters wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
The current Fedora dbus package runs &quot;make check&quot; per request of Red
Hat's QA team.  However, several unit tests in DBus require an active X
server, which isn't available at package build time.  To solve that, I'm
spawning an Xvfb, but at the moment it looks like something's falling
over with that with:
</PRE>
</BLOCKQUOTE>
<BR>
Not directly with DBus but the script I've used for starting XVfb in headless test \
suites is this one:<BR> <BR>
<A HREF="http://bazaar.launchpad.net/~dbusmenu-team/libdbusmenu/trunk.14.10/view/head: \
/tests/run-xvfb.sh">http://bazaar.launchpad.net/~dbusmenu-team/libdbusmenu/trunk.14.10/view/head:/tests/run-xvfb.sh</A><BR>
 <BR>
For newer stuff we've started using the Xorg dummy driver, specifically with Google \
Test:<BR> <BR>
<A HREF="http://cgit.freedesktop.org/xorg/test/xorg-gtest/">http://cgit.freedesktop.org/xorg/test/xorg-gtest/</A><BR>
 <BR>
It seems the dummy driver works with less hacks like that script. My understanding is \
that it works with more features of X as well, but that's not something I've \
needed.<BR> <BR>
Ted<BR>
<BR>
</BODY>
</HTML>


["signature.asc" (application/pgp-signature)]

_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic