Increase the timeout for some GLib tests
[glib.git] / glib / tests / Makefile.am
blobb3983d3bd9a743d59d09a49359bed38606ef4dc7
1 include $(top_srcdir)/glib-tap.mk
3 if USE_SYSTEM_PCRE
4 pcre_lib = $(PCRE_LIBS)
5 pcre_inc = $(PCRE_CFLAGS)
6 else
7 pcre_lib = $(top_builddir)/glib/pcre/libpcre.la
8 pcre_inc = -DPCRE_STATIC
9 endif
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 # -----------------------------------------------------------------------------
26 dist_test_data = \
27         keyfiletest.ini                 \
28         pages.ini                       \
29         keyfile.c                       \
30         empty                           \
31         4096-random-bytes               \
32         $(NULL)
34 dist_test_extra_scripts = \
35         echo-script                     \
36         echo-script.bat                 \
37         $(NULL)
39 test_extra_programs = \
40         test-spawn-echo                 \
41         $(NULL)
43 test_programs = \
44         array-test                      \
45         asyncqueue                      \
46         base64                          \
47         bitlock                         \
48         bookmarkfile                    \
49         bytes                           \
50         cache                           \
51         checksum                        \
52         collate                         \
53         cond                            \
54         convert                         \
55         dataset                         \
56         date                            \
57         dir                             \
58         environment                     \
59         error                           \
60         fileutils                       \
61         gdatetime                       \
62         guuid                           \
63         gvariant                        \
64         hash                            \
65         hmac                            \
66         hook                            \
67         hostutils                       \
68         keyfile                         \
69         list                            \
70         logging                         \
71         mainloop                        \
72         mappedfile                      \
73         markup                          \
74         markup-parse                    \
75         markup-collect                  \
76         markup-escape                   \
77         markup-subparser                \
78         mem-overflow                    \
79         mutex                           \
80         node                            \
81         once                            \
82         option-context                  \
83         option-argv0                    \
84         overflow                        \
85         overflow-fallback               \
86         pattern                         \
87         private                         \
88         protocol                        \
89         queue                           \
90         rand                            \
91         rec-mutex                       \
92         regex                           \
93         rwlock                          \
94         scannerapi                      \
95         search-utils                    \
96         sequence                        \
97         shell                           \
98         slice                           \
99         slist                           \
100         sort                            \
101         spawn-multithreaded             \
102         spawn-singlethread              \
103         strfuncs                        \
104         string                          \
105         testing                         \
106         test-printf                     \
107         thread                          \
108         timeout                         \
109         timer                           \
110         tree                            \
111         utf8-performance                \
112         utf8-pointer                    \
113         utf8-validate                   \
114         utf8-misc                       \
115         utils                           \
116         unicode                         \
117         uri                             \
118         1bit-mutex                      \
119         642026                          \
120         $(NULL)
122 uninstalled_test_programs = \
123         $(NULL)
125 dist_test_data += \
126         bookmarks/fail-01.xbel \
127         bookmarks/fail-02.xbel \
128         bookmarks/fail-03.xbel \
129         bookmarks/fail-04.xbel \
130         bookmarks/fail-05.xbel \
131         bookmarks/fail-06.xbel \
132         bookmarks/fail-07.xbel \
133         bookmarks/fail-08.xbel \
134         bookmarks/fail-09.xbel \
135         bookmarks/fail-10.xbel \
136         bookmarks/fail-11.xbel \
137         bookmarks/fail-12.xbel \
138         bookmarks/fail-13.xbel \
139         bookmarks/fail-14.xbel \
140         bookmarks/fail-15.xbel \
141         bookmarks/fail-16.xbel \
142         bookmarks/fail-17.xbel \
143         bookmarks/valid-01.xbel \
144         bookmarks/valid-02.xbel \
145         bookmarks/valid-03.xbel \
146         $(NULL)
148 markup_tests = \
149         fail-1 fail-2 fail-3 fail-4 fail-5 \
150         fail-6 fail-7 fail-8 fail-9 fail-10 \
151         fail-11 fail-12 fail-13 fail-14 fail-15 \
152         fail-16 fail-17 fail-18 fail-19 fail-20 \
153         fail-21 fail-22 fail-23 fail-24 fail-25 \
154         fail-26 fail-27 fail-28 fail-29 fail-30 \
155         fail-31 fail-32 fail-33 fail-34 fail-35 \
156         fail-36 fail-37 fail-38 fail-39 fail-40 \
157         fail-41 fail-42 fail-43 fail-44 fail-45 \
158         fail-46 fail-47 fail-48 fail-49 \
159         valid-1 valid-2 valid-3 valid-4 valid-5 \
160         valid-6 valid-7 valid-8 valid-9 valid-10 \
161         valid-11 valid-12 valid-13 valid-14 valid-15 \
162         valid-16 \
163         $(NULL)
165 cdata_markup_tests = \
166         valid-8 valid-16 \
167         $(NULL)
169 dist_test_data += $(all_markup_data)
170 all_markup_data = \
171         $(addprefix markups/,$(markup_tests:=.gmarkup) $(markup_tests:=.expected)) \
172         $(addprefix markups/,$(cdata_markup_tests.=.cdata-as-text))
174 # -----------------------------------------------------------------------------
176 test_programs += atomic
177 atomic_CFLAGS  = $(AM_CFLAGS)
178 if HAVE_GCC
179 atomic_CFLAGS += -Wstrict-aliasing=2
180 endif
182 overflow_fallback_SOURCES = overflow.c
183 # FIXME: FLAGS?
184 overflow_fallback_FALGS = $(AM_CFLAGS) -D_GLIB_TEST_OVERFLOW_FALLBACK
186 test_programs += 642026-ec
187 642026_ec_SOURCES = 642026.c
188 642026_ec_CFLAGS = -DG_ERRORCHECK_MUTEXES
190 uninstalled_test_programs += 1bit-emufutex
191 1bit_emufutex_SOURCES  = 1bit-mutex.c
192 1bit_emufutex_CFLAGS = $(AM_CFLAGS) -DTEST_EMULATED_FUTEX
194 uninstalled_test_programs += gwakeup
195 gwakeup_SOURCES = gwakeuptest.c ../../glib/gwakeup.c
197 # -----------------------------------------------------------------------------
199 if OS_UNIX
200 test_programs += \
201         unix                            \
202         include                         \
203         $(NULL)
205 # some testing of gtester functionality
206 XMLLINT = xmllint
207 GTESTER = $(top_builddir)/glib/gtester
209 gtester-xmllint-check: # check testreport xml with xmllint if present
210         ${GTESTER} -k --quiet -o tmpsample.xml --test-arg=--gtester-selftest ${GTESTER}
211         ${XMLLINT} --version 2>/dev/null; test "$$?" != 0 || ${XMLLINT} --noout tmpsample.xml
213 CLEANFILES += tmpsample.xml
215 check-am: gtester-xmllint-check
217 private_LDFLAGS = @G_THREAD_LIBS@
218 thread_LDFLAGS = @G_THREAD_LIBS@
219 endif
221 if HAVE_GCC
222 test_programs += \
223         autoptr                         \
224         $(NULL)
225 endif
227 if OS_WIN32
228 test_programs += gpoll
229 endif
231 # -----------------------------------------------------------------------------
233 if HAVE_EVENTFD
234 uninstalled_test_programs += gwakeup-fallback
235 gwakeup_fallback_SOURCES = gwakeuptest.c ../../glib/gwakeup.c
236 gwakeup_fallback_CFLAGS = $(AM_CFLAGS) -DTEST_EVENTFD_FALLBACK
237 endif
239 # -----------------------------------------------------------------------------
241 EXTRA_DIST += bookmarks.xbel