1 include $(top_srcdir)/glib-tap.mk
4 pcre_lib = $(PCRE_LIBS)
5 pcre_inc = $(PCRE_CFLAGS)
7 pcre_lib = $(top_builddir)/glib/pcre/libpcre.la
8 pcre_inc = -DPCRE_STATIC
11 LDADD = $(top_builddir)/glib/libglib-2.0.la -lm
12 AM_CPPFLAGS = -g $(glib_INCLUDES) $(GLIB_DEBUG_FLAGS)
13 DEFS = -DG_LOG_DOMAIN=\"GLib\" -DEXEEXT=\"$(EXEEXT)\"
14 AM_CFLAGS = $(GLIB_WARN_CFLAGS) $(pcre_inc)
16 # The regex test uses pcre_version()
17 regex_LDADD = $(LDADD) $(pcre_lib)
19 # These tests corrupt the gcov bookkeeping, so we
20 # skip them. See bug 682133
21 spawn_singlethread_LDFLAGS = $(patsubst -lgcov,,$(LDFLAGS))
22 spawn_multithreaded_LDFLAGS = $(patsubst -lgcov,,$(LDFLAGS))
24 # -----------------------------------------------------------------------------
34 dist_test_extra_scripts = \
39 test_extra_programs = \
104 spawn-multithreaded \
125 uninstalled_test_programs = \
129 bookmarks/fail-01.xbel \
130 bookmarks/fail-02.xbel \
131 bookmarks/fail-03.xbel \
132 bookmarks/fail-04.xbel \
133 bookmarks/fail-05.xbel \
134 bookmarks/fail-06.xbel \
135 bookmarks/fail-07.xbel \
136 bookmarks/fail-08.xbel \
137 bookmarks/fail-09.xbel \
138 bookmarks/fail-10.xbel \
139 bookmarks/fail-11.xbel \
140 bookmarks/fail-12.xbel \
141 bookmarks/fail-13.xbel \
142 bookmarks/fail-14.xbel \
143 bookmarks/fail-15.xbel \
144 bookmarks/fail-16.xbel \
145 bookmarks/fail-17.xbel \
146 bookmarks/fail-18.xbel \
147 bookmarks/fail-19.xbel \
148 bookmarks/fail-20.xbel \
149 bookmarks/fail-21.xbel \
150 bookmarks/fail-22.xbel \
151 bookmarks/fail-23.xbel \
152 bookmarks/fail-24.xbel \
153 bookmarks/fail-25.xbel \
154 bookmarks/fail-26.xbel \
155 bookmarks/fail-27.xbel \
156 bookmarks/fail-28.xbel \
157 bookmarks/fail-29.xbel \
158 bookmarks/fail-30.xbel \
159 bookmarks/fail-31.xbel \
160 bookmarks/fail-32.xbel \
161 bookmarks/fail-33.xbel \
162 bookmarks/fail-34.xbel \
163 bookmarks/fail-35.xbel \
164 bookmarks/fail-36.xbel \
165 bookmarks/fail-37.xbel \
166 bookmarks/fail-38.xbel \
167 bookmarks/fail-39.xbel \
168 bookmarks/valid-01.xbel \
169 bookmarks/valid-02.xbel \
170 bookmarks/valid-03.xbel \
174 fail-1 fail-2 fail-3 fail-4 fail-5 \
175 fail-6 fail-7 fail-8 fail-9 fail-10 \
176 fail-11 fail-12 fail-13 fail-14 fail-15 \
177 fail-16 fail-17 fail-18 fail-19 fail-20 \
178 fail-21 fail-22 fail-23 fail-24 fail-25 \
179 fail-26 fail-27 fail-28 fail-29 fail-30 \
180 fail-31 fail-32 fail-33 fail-34 fail-35 \
181 fail-36 fail-37 fail-38 fail-39 fail-40 \
182 fail-41 fail-42 fail-43 fail-44 fail-45 \
183 fail-46 fail-47 fail-48 fail-49 fail-50 \
185 valid-1 valid-2 valid-3 valid-4 valid-5 \
186 valid-6 valid-7 valid-8 valid-9 valid-10 \
187 valid-11 valid-12 valid-13 valid-14 valid-15 \
191 cdata_markup_tests = \
195 dist_test_data += $(all_markup_data)
197 $(addprefix markups/,$(markup_tests:=.gmarkup) $(markup_tests:=.expected)) \
198 $(addprefix markups/,$(cdata_markup_tests.=.cdata-as-text))
200 # -----------------------------------------------------------------------------
202 test_programs += atomic
203 atomic_CFLAGS = $(AM_CFLAGS)
205 atomic_CFLAGS += -Wstrict-aliasing=2
208 overflow_fallback_SOURCES = overflow.c
210 overflow_fallback_FALGS = $(AM_CFLAGS) -D_GLIB_TEST_OVERFLOW_FALLBACK
212 test_programs += 642026-ec
213 642026_ec_SOURCES = 642026.c
214 642026_ec_CFLAGS = -DG_ERRORCHECK_MUTEXES
216 uninstalled_test_programs += 1bit-emufutex
217 1bit_emufutex_SOURCES = 1bit-mutex.c
218 1bit_emufutex_CFLAGS = $(AM_CFLAGS) -DTEST_EMULATED_FUTEX
220 uninstalled_test_programs += gwakeup
221 gwakeup_SOURCES = gwakeuptest.c ../../glib/gwakeup.c
223 # -----------------------------------------------------------------------------
231 # some testing of gtester functionality
233 GTESTER = $(top_builddir)/glib/gtester
235 gtester-xmllint-check: # check testreport xml with xmllint if present
236 ${GTESTER} -k --quiet -o tmpsample.xml --test-arg=--gtester-selftest ${GTESTER}
237 ${XMLLINT} --version 2>/dev/null; test "$$?" != 0 || ${XMLLINT} --noout tmpsample.xml
239 CLEANFILES += tmpsample.xml
241 check-am: gtester-xmllint-check
243 private_LDFLAGS = @G_THREAD_LIBS@
244 thread_LDFLAGS = @G_THREAD_LIBS@
254 test_programs += gpoll
257 # -----------------------------------------------------------------------------
260 uninstalled_test_programs += gwakeup-fallback
261 gwakeup_fallback_SOURCES = gwakeuptest.c ../../glib/gwakeup.c
262 gwakeup_fallback_CFLAGS = $(AM_CFLAGS) -DTEST_EVENTFD_FALLBACK
265 # -----------------------------------------------------------------------------
267 EXTRA_DIST += bookmarks.xbel