From 6bc38c46e7f8a6bacea1953078a0c577489a230a Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Tue, 20 Nov 2007 15:00:50 +0000 Subject: [PATCH] tests/Makefile.am: execute test programs with gtester, add test: to check: svn path=/trunk/; revision=5902 --- glib/tests/Makefile.am | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/glib/tests/Makefile.am b/glib/tests/Makefile.am index 31b02a0..eb5da50 100644 --- a/glib/tests/Makefile.am +++ b/glib/tests/Makefile.am @@ -1,20 +1,18 @@ INCLUDES = -g -I$(top_srcdir) -I$(top_srcdir)/glib $(GLIB_DEBUG_FLAGS) -TESTS = -noinst_PROGRAMS = $(TESTS) +GTESTER = $(top_builddir)/glib/gtester + +TEST_PROGS = +noinst_PROGRAMS = $(TEST_PROGS) progs_ldadd = $(top_builddir)/glib/libglib-2.0.la -TESTS += testing +TEST_PROGS += testing testing_SOURCES = testing.c testing_LDADD = $(progs_ldadd) test: - @set -e \ - && for tst in ${TESTS} ; do \ - echo -n "TEST: ./$$tst... " ; \ - ./$$tst ; \ - echo "OK" ; \ - done + ${GTESTER} ${TEST_PROGS} .PHONY: test +check-local: test -- 2.7.4