Bug 539770 - migrate gstrfunc unit tests to gtest
[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 TEST_PROGS        += fileutils
18 fileutils_SOURCES   = fileutils.c
19 fileutils_LDADD    = $(progs_ldadd)
20
21 TEST_PROGS        += strfuncs
22 strfuncs_SOURCES   = strfuncs.c
23 strfuncs_LDADD     = $(progs_ldadd) -lm
24
25 # some testing of gtester funcitonality
26 XMLLINT=xmllint
27 gtester-xmllint-check: # check testreport xml with xmllint if present
28         ${GTESTER} -k --quiet -o tmpsample.xml --test-arg=--gtester-selftest ${GTESTER}
29         ${XMLLINT} --version 2>/dev/null; test "$$?" != 0 || ${XMLLINT} --noout tmpsample.xml
30 check-am: gtester-xmllint-check
31
32 CLEANFILES = \
33         tmpsample.xml