Add --enable-installed-tests configure option

Desktop / GNOME / GLib - Colin Walters [verbum.org] - 16 May 2013 07:51 UTC

See https://live.gnome.org/GnomeGoals/InstalledTests for more information.

The tests now support being run both uninstalled and installed, so 'make check' works for those who want it. For tests which need data files, the way this works is they look in the compiled in value of SRCDIR by default, and the generated tests use "env G_TEST_DATA=" to override that.

This patch only converts glib/tests for now; if this patch looks good, I'll do the rest of the tests.

https://bugzilla.gnome.org/show_bug.cgi?id=699079

ad7959c Add --enable-installed-tests configure option
.gitignore | 1 +
configure.ac | 7 ++++++-
glib/tests/Makefile.am | 49 ++++++++++++++++++++++++++++++++++++++-------
glib/tests/bookmarkfile.c | 11 ++++++++--
glib/tests/keyfile.c | 19 +++++++++++++++---
glib/tests/mappedfile.c | 26 +++++++++++++++++++-----
glib/tests/markup-parse.c | 12 +++++++++--
glib/tests/protocol.c | 8 ++++++--
8 files changed, 111 insertions(+), 22 deletions(-)

Upstream: git.gnome.org


  • Share