Rework the build system for a new tests approach
authorRyan Lortie <desrt@desrt.ca>
Thu, 30 May 2013 04:07:32 +0000 (00:07 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sat, 1 Jun 2013 03:12:15 +0000 (23:12 -0400)
commitf9eb9eed10b7123ef000e49be1290755b2d6ae8f
treedffb3fdb91e25915ca5f67d9af508b541b1d720c
parent210b1f8b4230b881d1c2e4a9e7dac571c967e091
Rework the build system for a new tests approach

Perform a substantial cleanup of the build system with respect to
building and installing testcases.

First, Makefile.decl has been renamed glib.mk and substantially
expanded.  We intend to add more stuff here in the future, like canned
rules for mkenums, marshallers, resources, etc.

By default, tests are no longer compiled as part of 'make'.  They will
be built when 'make check' is run.  The old behaviour can be obtained
with --enable-always-build-tests.

--disable-modular-tests is gone (because tests are no longer built by
default).  There is no longer any way to cause 'make check' to be a
no-op, but that's not very useful anyway.

A new glibtests.m4 file is introduced.  Along with glib.mk, this
provides for consistent handling of --enable-installed-tests and
--enable-always-build-tests (mentioned above).

Port our various test-installing Makefiles to the new framework.

This patch substantially improves the situation in the toplevel tests/
directory.  Things are now somewhat under control there.  There were
some tests being built that weren't even being run and we run those now.
The long-running GObject performance tests in this directory have been
removed from 'make check' because they take too long.

As an experiment, 'make check' now runs the testcases on win32 builds,
by default.  We can't run them under gtester (since it uses a pipe to
communicate with the subprocess) so just toss them in TESTS.  Most of
them are passing on win32.

Things are not quite done here, but this patch is already a substantial
improvement.  More to come.
38 files changed:
Makefile.am
Makefile.decl [deleted file]
configure.ac
gio/Makefile.am
gio/fam/Makefile.am
gio/fen/Makefile.am
gio/gdbus-2.0/codegen/Makefile.am
gio/glib-compile-schemas.c
gio/inotify/Makefile.am
gio/kqueue/Makefile.am
gio/tests/Makefile.am
gio/tests/appinfo.c
gio/tests/file.c
gio/tests/gdbus-example-objectmanager-client.c
gio/tests/gdbus-example-objectmanager-server.c
gio/tests/gdbus-object-manager-example/Makefile.am
gio/tests/gdbus-peer.c
gio/tests/gdbus-test-fixture.c
gio/tests/gschema-compile.c
gio/tests/gsettings.c
gio/win32/Makefile.am
gio/xdgmime/Makefile.am
glib.mk [new file with mode: 0644]
glib/Makefile.am
glib/gnulib/Makefile.am
glib/libcharset/Makefile.am
glib/pcre/Makefile.am
glib/tests/Makefile.am
glib/update-pcre/Makefile.am
gmodule/Makefile.am
gobject/Makefile.am
gobject/tests/Makefile.am
gthread/Makefile.am
m4macros/Makefile.am
m4macros/glibtests.m4 [new file with mode: 0644]
tests/Makefile.am
tests/gobject/Makefile.am
tests/refcount/Makefile.am