dbus unit tests and $DISPLAY
Colin Walters
walters at verbum.org
Wed Jun 11 05:03:20 PDT 2014
On Wed, Jun 11, 2014, at 03:03 AM, Simon McVittie wrote:
> On 10/06/14 23:39, Colin Walters wrote:
> > The current Fedora dbus package runs "make check" per request of Red
> > Hat's QA team.
>
> Note that if you re-./configure D-Bus with --enable-tests *in the same
> build directory*, you need to be really careful that you are not
> accidentally installing the version that has tests enabled,
Ah, yes, that is bad. Thanks.
> In Debian we do three out-of-tree builds: a "production build" with
> --enable-installed-tests --disable-embedded-tests --disable-verbose and
> installed to ${exec_prefix}, a "debug build" with all debug features
> enabled and installed to ${libdir}/dbus-1.0/debug-build, and a special
> minimal build for debian-installer with all optional features disabled.
> Other packages link against the production build, but developers can use
> LD_PRELOAD or LD_LIBRARY_PATH to pull in the debug build instead, e.g.
> to get better valgrind traces. We don't run "make check" while building
> the packages as noted above, but we do run the installed-tests via
> autopkgtest on ci.debian.net.
Ok, useful to know.
> I briefly tried to do "make check" on the buildds, but gave up when I
> hit <http://bugs.debian.org/630152> (Debian buildds run as a user whose
> "official" home directory in /etc/passwd does not exist, as a technical
> way to enforce the policy that package builds should not write to
> $HOME).
Debian's tools could use https://git.gnome.org/browse/linux-user-chroot
for this. It's intended for exactly this kind of purpose.
gnome-continuous
uses it to ensure that *only* the build directory is writable,
everything
else has a read-only bind mount. (It'd be even better if I could
completely
hide the home directory to ensure the build can't read e.g. your ~/.ssh,
but that's hard to do generically)
> Installed tests:
> http://anonscm.debian.org/gitweb/?p=pkg-utopia/dbus.git;a=tree;f=debian/tests
What's the current state of Debian ADT versus
https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests ?
I think last we talked you were amenable to DBus installing
InstalledTests .test
files? And someone was looking at building an automatic bridge from
InstalledTests to ADT, right?
More information about the dbus
mailing list