26f6d37acfc534adf785496778be8a57a0c559e7
[platform/upstream/glib.git] / glib / tests / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 INCLUDES = -g -I$(top_srcdir) -I$(top_srcdir)/glib $(GLIB_DEBUG_FLAGS)
4
5 noinst_PROGRAMS = $(TEST_PROGS)
6 progs_ldadd     = $(top_builddir)/glib/libglib-2.0.la 
7
8
9 TEST_PROGS       += testing
10 testing_SOURCES   = testing.c
11 testing_LDADD     = $(progs_ldadd)
12
13 TEST_PROGS               += option-context
14 option_context_SOURCES    = option-context.c
15 option_context_LDADD      = $(progs_ldadd)
16
17 # some testing of gtester funcitonality
18 XMLLINT=xmllint
19 gtester-xmllint-check: # check testreport xml with xmllint if present
20         ${GTESTER} -k --quiet -o tmpsample.xml --test-arg=--gtester-selftest ${GTESTER}
21         ${XMLLINT} --version 2>/dev/null; test "$$?" != 0 || ${XMLLINT} --noout tmpsample.xml
22 check-am: gtester-xmllint-check
23
24 CLEANFILES = \
25         tmpsample.xml