1 include $(top_srcdir)/glib-tap.mk
3 LDADD = $(top_builddir)/glib/libglib-2.0.la -lm
4 AM_CPPFLAGS = -g $(glib_INCLUDES) $(GLIB_DEBUG_FLAGS)
5 DEFS = -DG_LOG_DOMAIN=\"GLib\" -DEXEEXT=\"$(EXEEXT)\"
6 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
8 # These tests corrupt the gcov bookkeeping, so we
9 # skip them. See bug 682133
10 spawn_singlethread_LDFLAGS = $(patsubst -lgcov,,$(LDFLAGS))
11 spawn_multithreaded_LDFLAGS = $(patsubst -lgcov,,$(LDFLAGS))
13 # -----------------------------------------------------------------------------
23 dist_test_extra_scripts = \
28 test_extra_programs = \
109 uninstalled_test_programs = \
113 bookmarks/fail-01.xbel \
114 bookmarks/fail-02.xbel \
115 bookmarks/fail-03.xbel \
116 bookmarks/fail-04.xbel \
117 bookmarks/fail-05.xbel \
118 bookmarks/fail-06.xbel \
119 bookmarks/fail-07.xbel \
120 bookmarks/fail-08.xbel \
121 bookmarks/fail-09.xbel \
122 bookmarks/fail-10.xbel \
123 bookmarks/fail-11.xbel \
124 bookmarks/fail-12.xbel \
125 bookmarks/fail-13.xbel \
126 bookmarks/fail-14.xbel \
127 bookmarks/fail-15.xbel \
128 bookmarks/fail-16.xbel \
129 bookmarks/fail-17.xbel \
130 bookmarks/valid-01.xbel \
131 bookmarks/valid-02.xbel \
132 bookmarks/valid-03.xbel \
136 fail-1 fail-2 fail-3 fail-4 fail-5 \
137 fail-6 fail-7 fail-8 fail-9 fail-10 \
138 fail-11 fail-12 fail-13 fail-14 fail-15 \
139 fail-16 fail-17 fail-18 fail-19 fail-20 \
140 fail-21 fail-22 fail-23 fail-24 fail-25 \
141 fail-26 fail-27 fail-28 fail-29 fail-30 \
142 fail-31 fail-32 fail-33 fail-34 fail-35 \
143 fail-36 fail-37 fail-38 fail-39 fail-40 \
144 fail-41 fail-42 fail-43 fail-44 fail-45 \
145 fail-46 fail-47 fail-48 fail-49 \
146 valid-1 valid-2 valid-3 valid-4 valid-5 \
147 valid-6 valid-7 valid-8 valid-9 valid-10 \
148 valid-11 valid-12 valid-13 valid-14 valid-15 \
152 cdata_markup_tests = \
156 dist_test_data += $(all_markup_data)
158 $(addprefix markups/,$(markup_tests:=.gmarkup) $(markup_tests:=.expected)) \
159 $(addprefix markups/,$(cdata_markup_tests.=.cdata-as-text))
161 # -----------------------------------------------------------------------------
163 test_programs += atomic
164 atomic_CFLAGS = $(AM_CFLAGS)
166 atomic_CFLAGS += -Wstrict-aliasing=2
169 test_programs += 642026-ec
170 642026_ec_SOURCES = 642026.c
171 642026_ec_CFLAGS = -DG_ERRORCHECK_MUTEXES
173 uninstalled_test_programs += 1bit-emufutex
174 1bit_emufutex_SOURCES = 1bit-mutex.c
175 1bit_emufutex_CFLAGS = $(AM_CFLAGS) -DTEST_EMULATED_FUTEX
177 uninstalled_test_programs += gwakeup
178 gwakeup_SOURCES = gwakeuptest.c ../../glib/gwakeup.c
180 # -----------------------------------------------------------------------------
188 # some testing of gtester functionality
190 GTESTER = $(top_builddir)/glib/gtester
192 gtester-xmllint-check: # check testreport xml with xmllint if present
193 ${GTESTER} -k --quiet -o tmpsample.xml --test-arg=--gtester-selftest ${GTESTER}
194 ${XMLLINT} --version 2>/dev/null; test "$$?" != 0 || ${XMLLINT} --noout tmpsample.xml
196 CLEANFILES += tmpsample.xml key_file_* out.xbel
198 check-am: gtester-xmllint-check
200 private_LDFLAGS = @G_THREAD_LIBS@
203 # -----------------------------------------------------------------------------
206 uninstalled_test_programs += gwakeup-fallback
207 gwakeup_fallback_SOURCES = gwakeuptest.c ../../glib/gwakeup.c
208 gwakeup_fallback_CFLAGS = $(AM_CFLAGS) -DTEST_EVENTFD_FALLBACK
211 # -----------------------------------------------------------------------------
213 EXTRA_DIST += bookmarks.xbel