mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
tests/Makefile.am: execute test programs with gtester, add test: to check:
svn path=/trunk/; revision=5902
This commit is contained in:
parent
f843b379d0
commit
6bc38c46e7
@ -1,20 +1,18 @@
|
|||||||
INCLUDES = -g -I$(top_srcdir) -I$(top_srcdir)/glib $(GLIB_DEBUG_FLAGS)
|
INCLUDES = -g -I$(top_srcdir) -I$(top_srcdir)/glib $(GLIB_DEBUG_FLAGS)
|
||||||
|
|
||||||
TESTS =
|
GTESTER = $(top_builddir)/glib/gtester
|
||||||
noinst_PROGRAMS = $(TESTS)
|
|
||||||
|
TEST_PROGS =
|
||||||
|
noinst_PROGRAMS = $(TEST_PROGS)
|
||||||
progs_ldadd = $(top_builddir)/glib/libglib-2.0.la
|
progs_ldadd = $(top_builddir)/glib/libglib-2.0.la
|
||||||
|
|
||||||
|
|
||||||
TESTS += testing
|
TEST_PROGS += testing
|
||||||
testing_SOURCES = testing.c
|
testing_SOURCES = testing.c
|
||||||
testing_LDADD = $(progs_ldadd)
|
testing_LDADD = $(progs_ldadd)
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@set -e \
|
${GTESTER} ${TEST_PROGS}
|
||||||
&& for tst in ${TESTS} ; do \
|
|
||||||
echo -n "TEST: ./$$tst... " ; \
|
|
||||||
./$$tst ; \
|
|
||||||
echo "OK" ; \
|
|
||||||
done
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
check-local: test
|
||||||
|
Loading…
Reference in New Issue
Block a user