Commit Graph

8 Commits

Author SHA1 Message Date
Philip Withnall
a05b64a0cb build: Use AM_TESTS_ENVIRONMENT rather than TESTS_ENVIRONMENT
TESTS_ENVIRONMENT is reserved for the user to be able to set when
running the tests. AM_TESTS_ENVIRONMENT is for the tests’ Makefile to
set itself.

https://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=782996
2017-05-23 13:29:40 +01:00
Philip Withnall
8f2d181858 build: Fix a misnamed variable in glib-tap.mk
This was causing anything listed in $(installed_test_extra_scripts) to
not be installed.

https://bugzilla.gnome.org/show_bug.cgi?id=766570
2016-05-17 18:09:58 +01:00
Matthias Clasen
71c9ea42f8 Use tap mode for installed tests too, when using tap 2014-01-04 21:09:18 -05:00
Matthias Clasen
a5d8209d75 Fix a typo 2013-12-21 15:44:51 -05:00
Matthias Clasen
d6e95cc5f5 Fix a !srcdir problem with installed tests
When installing scripts which are not generated in a
srcdir != builddir build, $< will have ../.. goo in it.
So we need to strip the directory parts before using
the filename to construct a new path.
2013-12-21 13:22:00 -05:00
Dan Winship
be231c6be0 glib-tap.mk: fix to actually use the TAP driver
The Makefile rules in glib-tap.mk were copied from an example that
assumed that all the test programs had names ending in ".test", so
they didn't actually have any effect for us and resulted in us still
using the standard automake test driver. Fix this so we actually do
use TAP now.

https://bugzilla.gnome.org/show_bug.cgi?id=711796
2013-11-23 00:43:54 -05:00
Matthias Clasen
739874c5da Set up test environment properly
To make the G_TEST_SRCDIR and G_TEST_BUILDDIR variables
reach our test binaries, we have to add it to the
TESTS_ENVIRONMENT variable.
2013-08-19 23:29:54 -04:00
Matthias Clasen
0e9f9867fa Start using TAP
Convert {glib,gobject,gio}/tests to use the automake TAP driver
and test harness instead of gtester. To do so, we add a glib-tap.mk
that provides the same interface as glib.mk, except for the
reporting and coverage testing functionality. Eventually, we may
want to replace glib.mk with it. I've not yet converted the
toplevel tests/ directory, since it mixes gtestutils tests with
other binaries.

https://bugzilla.gnome.org/show_bug.cgi?id=692125
2013-08-17 17:25:58 -04:00