5e65c08e223d38f20c5369999eeb28f5c1087e9a
[platform/upstream/glib.git] / gio / tests / Makefile.am
1 NULL =
2
3 include $(top_srcdir)/Makefile.decl
4
5 INCLUDES =                      \
6         -g                      \
7         $(gio_INCLUDES)         \
8         $(GLIB_DEBUG_FLAGS)     \
9         -DSRCDIR=\""$(srcdir)"\"
10
11 noinst_PROGRAMS = $(TEST_PROGS) $(SAMPLE_PROGS)
12 noinst_DATA = $(MISC_STUFF)
13
14 progs_ldadd     =                                       \
15         $(top_builddir)/glib/libglib-2.0.la             \
16         $(top_builddir)/gthread/libgthread-2.0.la       \
17         $(top_builddir)/gobject/libgobject-2.0.la       \
18         $(top_builddir)/gio/libgio-2.0.la
19
20 TEST_PROGS +=                   \
21         actions                 \
22         memory-input-stream     \
23         memory-output-stream    \
24         readwrite               \
25         g-file                  \
26         g-file-info             \
27         converter-stream        \
28         data-input-stream       \
29         data-output-stream      \
30         g-icon                  \
31         buffered-input-stream   \
32         buffered-output-stream  \
33         sleepy-stream           \
34         filter-streams          \
35         volumemonitor           \
36         simple-async-result     \
37         srvtarget               \
38         contexts                \
39         gsettings               \
40         gschema-compile         \
41         async-close-output-stream \
42         gdbus-addresses         \
43         network-address         \
44         gdbus-message           \
45         socket                  \
46         $(NULL)
47
48 if OS_UNIX
49 TEST_PROGS +=                   \
50         gdbus-connection        \
51         gdbus-connection-slow   \
52         gdbus-names             \
53         gdbus-proxy             \
54         gdbus-proxy-well-known-name \
55         gdbus-introspection     \
56         gdbus-threading         \
57         gdbus-export            \
58         gdbus-error             \
59         gdbus-peer              \
60         gdbus-exit-on-close     \
61         gdbus-non-socket        \
62         gdbus-bz627724          \
63         appinfo                 \
64         contenttype             \
65         file                    \
66         $(NULL)
67 endif
68
69 SAMPLE_PROGS =                          \
70         resolver                        \
71         socket-server                   \
72         socket-client                   \
73         echo-server                     \
74         httpd                           \
75         send-data                       \
76         filter-cat                      \
77         gdbus-example-export            \
78         gdbus-example-own-name          \
79         gdbus-example-watch-name        \
80         gdbus-example-watch-proxy       \
81         gdbus-example-server            \
82         gdbus-example-subtree           \
83         gdbus-example-peer              \
84         gdbus-example-proxy-subclass    \
85         gdbus-connection-flush-helper   \
86         appinfo-test                    \
87         proxy                           \
88         gapplication-example-open       \
89         gapplication-example-cmdline    \
90         gapplication-example-cmdline2   \
91         gapplication-example-actions    \
92         $(NULL)
93
94
95 if OS_UNIX
96 TEST_PROGS += live-g-file desktop-app-info unix-fd unix-streams gapplication
97 SAMPLE_PROGS += gdbus-example-unix-fd-client
98 endif
99
100 if OS_WIN32
101 TEST_PROGS += win32-streams
102 endif
103
104 actions_LDADD     = $(progs_ldadd)
105
106 memory_input_stream_SOURCES       = memory-input-stream.c
107 memory_input_stream_LDADD         = $(progs_ldadd)
108
109 memory_output_stream_SOURCES      = memory-output-stream.c
110 memory_output_stream_LDADD        = $(progs_ldadd)
111
112 g_file_SOURCES    = g-file.c
113 g_file_LDADD      = $(progs_ldadd)
114
115 readwrite_SOURCES         = readwrite.c
116 readwrite_LDADD   = $(progs_ldadd)
117
118 g_file_info_SOURCES     = g-file-info.c
119 g_file_info_LDADD       = $(progs_ldadd)
120
121 converter_stream_SOURCES        = converter-stream.c
122 converter_stream_LDADD          = $(progs_ldadd)
123
124 data_input_stream_SOURCES       = data-input-stream.c
125 data_input_stream_LDADD         = $(progs_ldadd)
126
127 data_output_stream_SOURCES      = data-output-stream.c
128 data_output_stream_LDADD        = $(progs_ldadd)
129
130 async_close_output_stream_SOURCES       = async-close-output-stream.c
131 async_close_output_stream_LDADD         = $(progs_ldadd)
132
133 filter_cat_SOURCES      = filter-cat.c
134 filter_cat_LDADD        = $(progs_ldadd)
135
136 g_icon_SOURCES  = g-icon.c
137 g_icon_LDADD    = $(progs_ldadd)
138
139 buffered_input_stream_SOURCES   = buffered-input-stream.c
140 buffered_input_stream_LDADD     = $(progs_ldadd)
141
142 buffered_output_stream_SOURCES  = buffered-output-stream.c
143 buffered_output_stream_LDADD    = $(progs_ldadd)
144
145 live_g_file_SOURCES       = live-g-file.c
146 live_g_file_LDADD         = $(progs_ldadd)
147
148 desktop_app_info_SOURCES  = desktop-app-info.c
149 desktop_app_info_LDADD    = $(progs_ldadd)
150
151 unix_streams_SOURCES      = unix-streams.c
152 unix_streams_LDADD        = $(progs_ldadd) \
153         $(top_builddir)/gthread/libgthread-2.0.la
154
155 win32_streams_SOURCES     = win32-streams.c
156 win32_streams_LDADD       = $(progs_ldadd) \
157         $(top_builddir)/gthread/libgthread-2.0.la
158
159 unix_fd_SOURCES   = unix-fd.c
160 unix_fd_LDADD     = $(progs_ldadd)
161
162 simple_async_result_SOURCES     = simple-async-result.c
163 simple_async_result_LDADD       = $(progs_ldadd)
164
165 sleepy_stream_SOURCES           = sleepy-stream.c
166 sleepy_stream_LDADD             = $(progs_ldadd)
167
168 filter_streams_SOURCES          = filter-streams.c
169 filter_streams_LDADD            = $(progs_ldadd)
170
171 volumemonitor_SOURCES           = volumemonitor.c
172 volumemonitor_LDADD             = $(progs_ldadd)
173
174 resolver_SOURCES          = resolver.c
175 resolver_LDADD            = $(progs_ldadd) \
176         $(top_builddir)/gthread/libgthread-2.0.la
177
178 socket_server_SOURCES     = socket-server.c
179 socket_server_LDADD       = $(progs_ldadd) \
180         $(top_builddir)/gthread/libgthread-2.0.la
181
182 socket_client_SOURCES     = socket-client.c
183 socket_client_LDADD       = $(progs_ldadd) \
184         $(top_builddir)/gthread/libgthread-2.0.la
185
186 echo_server_SOURCES       = echo-server.c
187 echo_server_LDADD         = $(progs_ldadd) \
188         $(top_builddir)/gthread/libgthread-2.0.la
189
190 httpd_SOURCES             = httpd.c
191 httpd_LDADD               = $(progs_ldadd) \
192         $(top_builddir)/gthread/libgthread-2.0.la
193
194 send_data_SOURCES         = send-data.c
195 send_data_LDADD           = $(progs_ldadd) \
196         $(top_builddir)/gthread/libgthread-2.0.la
197
198 srvtarget_SOURCES         = srvtarget.c
199 srvtarget_LDADD           = $(progs_ldadd)
200
201 network_address_SOURCE    = network-address.c
202 network_address_LDADD     = $(progs_ldadd)
203
204 socket_SOURCE             = socket.c
205 socket_LDADD              = $(progs_ldadd)
206
207 contexts_SOURCES          = contexts.c
208 contexts_LDADD            = $(progs_ldadd) \
209         $(top_builddir)/gthread/libgthread-2.0.la
210
211 gsettings_SOURCES         = gsettings.c
212 gsettings_LDADD           = $(progs_ldadd)
213
214 gschema_compile_SOURCES   = gschema-compile.c
215 gschema_compile_LDADD     = $(progs_ldadd)
216
217 if HAVE_DBUS1
218 TEST_PROGS += gdbus-serialization
219 gdbus_serialization_SOURCES = gdbus-serialization.c gdbus-tests.h gdbus-tests.c
220 gdbus_serialization_CFLAGS = $(DBUS1_CFLAGS)
221 gdbus_serialization_LDADD = $(progs_ldadd) $(DBUS1_LIBS)
222 endif
223
224 gdbus_addresses_SOURCES = gdbus-addresses.c
225 gdbus_addresses_LDADD = $(progs_ldadd)
226
227 gdbus_bz627724_SOURCES = gdbus-bz627724.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
228 gdbus_bz627724_LDADD = $(progs_ldadd)
229
230 gdbus_connection_SOURCES = gdbus-connection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
231 gdbus_connection_LDADD = $(progs_ldadd)
232
233 gdbus_connection_slow_SOURCES = gdbus-connection-slow.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
234 gdbus_connection_slow_LDADD = $(progs_ldadd)
235
236 gdbus_message_SOURCES = gdbus-message.c
237 gdbus_message_LDADD = $(progs_ldadd)
238
239 gdbus_names_SOURCES = gdbus-names.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
240 gdbus_names_LDADD = $(progs_ldadd)
241
242 gdbus_proxy_SOURCES = gdbus-proxy.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
243 gdbus_proxy_LDADD = $(progs_ldadd)
244
245 gdbus_proxy_well_known_name_SOURCES = gdbus-proxy-well-known-name.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
246 gdbus_proxy_well_known_name_LDADD = $(progs_ldadd)
247
248 gdbus_introspection_SOURCES = gdbus-introspection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
249 gdbus_introspection_LDADD = $(progs_ldadd)
250
251 gdbus_threading_SOURCES = gdbus-threading.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
252 gdbus_threading_LDADD = $(progs_ldadd)
253
254 gdbus_export_SOURCES = gdbus-export.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
255 gdbus_export_LDADD = $(progs_ldadd)
256
257 gdbus_error_SOURCES = gdbus-error.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
258 gdbus_error_LDADD = $(progs_ldadd)
259
260 gdbus_peer_SOURCES = gdbus-peer.c gdbus-tests.h gdbus-tests.c
261 gdbus_peer_LDADD = $(progs_ldadd)
262
263 gdbus_non_socket_SOURCES = gdbus-non-socket.c gdbus-tests.h gdbus-tests.c
264 gdbus_non_socket_LDADD = $(progs_ldadd)
265
266 gdbus_exit_on_close_SOURCES = gdbus-exit-on-close.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
267 gdbus_exit_on_close_LDADD = $(progs_ldadd)
268
269 gdbus_example_watch_name_SOURCES = gdbus-example-watch-name.c
270 gdbus_example_watch_name_LDADD   = $(progs_ldadd)
271
272 gdbus_example_watch_proxy_SOURCES = gdbus-example-watch-proxy.c
273 gdbus_example_watch_proxy_LDADD   = $(progs_ldadd)
274
275 gdbus_example_own_name_SOURCES = gdbus-example-own-name.c
276 gdbus_example_own_name_LDADD   = $(progs_ldadd)
277
278 gdbus_example_server_SOURCES = gdbus-example-server.c
279 gdbus_example_server_LDADD   = $(progs_ldadd)
280
281 gdbus_example_unix_fd_client_SOURCES = gdbus-example-unix-fd-client.c
282 gdbus_example_unix_fd_client_LDADD   = $(progs_ldadd)
283
284 gdbus_example_subtree_SOURCES = gdbus-example-subtree.c
285 gdbus_example_subtree_LDADD   = $(progs_ldadd)
286
287 gdbus_example_peer_SOURCES = gdbus-example-peer.c
288 gdbus_example_peer_LDADD   = $(progs_ldadd)
289
290 gdbus_example_proxy_subclass_SOURCES = gdbus-example-proxy-subclass.c
291 gdbus_example_proxy_subclass_LDADD   = $(progs_ldadd)
292
293 gdbus_example_export_SOURCES = gdbus-example-export.c
294 gdbus_example_export_LDADD   = $(progs_ldadd)
295
296 gdbus_connection_flush_helper_SOURCES = gdbus-connection-flush-helper.c
297 gdbus_connection_flush_helper_LDADD = $(progs_ldadd)
298
299 appinfo_SOURCES = appinfo.c
300 appinfo_LDADD   = $(progs_ldadd)
301
302 appinfo_test_SOURCES = appinfo-test.c
303 appinfo_test_LDADD   = $(progs_ldadd)
304
305 contenttype_SOURCES = contenttype.c
306 contenttype_LDADD   = $(progs_ldadd)
307
308 file_SOURCES = file.c
309 file_LDADD   = $(progs_ldadd)
310
311 gapplication_SOURCES = gapplication.c gdbus-sessionbus.c
312 gapplication_LDADD = $(progs_ldadd)
313
314 gapplication_example_open_SOURCES = gapplication-example-open.c
315 gapplication_example_open_LDADD   = $(progs_ldadd)
316
317 gapplication_example_cmdline_SOURCES = gapplication-example-cmdline.c
318 gapplication_example_cmdline_LDADD   = $(progs_ldadd)
319
320 gapplication_example_cmdline2_SOURCES = gapplication-example-cmdline2.c
321 gapplication_example_cmdline2_LDADD   = $(progs_ldadd)
322
323 gapplication_example_actions_SOURCES = gapplication-example-actions.c
324 gapplication_example_actions_LDADD   = $(progs_ldadd)
325
326 schema_tests = \
327         schema-tests/array-default-not-in-choices.gschema.xml           \
328         schema-tests/bad-choice.gschema.xml                             \
329         schema-tests/bad-key.gschema.xml                                \
330         schema-tests/bad-key2.gschema.xml                               \
331         schema-tests/bad-key3.gschema.xml                               \
332         schema-tests/bad-key4.gschema.xml                               \
333         schema-tests/bad-type.gschema.xml                               \
334         schema-tests/bare-alias.gschema.xml                             \
335         schema-tests/choice-alias.gschema.xml                           \
336         schema-tests/choice-bad.gschema.xml                             \
337         schema-tests/choice-badtype.gschema.xml                         \
338         schema-tests/choice-invalid-alias.gschema.xml                   \
339         schema-tests/choice-missing-value.gschema.xml                   \
340         schema-tests/choice-shadowed-alias.gschema.xml                  \
341         schema-tests/choice-upside-down.gschema.xml                     \
342         schema-tests/choice.gschema.xml                                 \
343         schema-tests/choices-wrong-type.gschema.xml                     \
344         schema-tests/default-in-aliases.gschema.xml                     \
345         schema-tests/default-not-in-choices.gschema.xml                 \
346         schema-tests/default-out-of-range.gschema.xml                   \
347         schema-tests/empty-key.gschema.xml                              \
348         schema-tests/enum-with-aliases.gschema.xml                      \
349         schema-tests/enum-with-bad-default.gschema.xml                  \
350         schema-tests/enum-with-chained-alias.gschema.xml                \
351         schema-tests/enum-with-choice.gschema.xml                       \
352         schema-tests/enum-with-invalid-alias.gschema.xml                \
353         schema-tests/enum-with-repeated-alias.gschema.xml               \
354         schema-tests/enum-with-repeated-nick.gschema.xml                \
355         schema-tests/enum-with-repeated-value.gschema.xml               \
356         schema-tests/enum-with-shadow-alias.gschema.xml                 \
357         schema-tests/enum.gschema.xml                                   \
358         schema-tests/flags-aliased-default.gschema.xml                  \
359         schema-tests/flags-bad-default.gschema.xml                      \
360         schema-tests/flags-more-than-one-bit.gschema.xml                \
361         schema-tests/flags-with-enum-attr.gschema.xml                   \
362         schema-tests/flags-with-enum-tag.gschema.xml                    \
363         schema-tests/extend-and-shadow-indirect.gschema.xml             \
364         schema-tests/extend-and-shadow.gschema.xml                      \
365         schema-tests/extend-missing.gschema.xml                         \
366         schema-tests/extend-nonlist.gschema.xml                         \
367         schema-tests/extend-self.gschema.xml                            \
368         schema-tests/extend-wrong-list-indirect.gschema.xml             \
369         schema-tests/extend-wrong-list.gschema.xml                      \
370         schema-tests/extending.gschema.xml                              \
371         schema-tests/from-docs.gschema.xml                              \
372         schema-tests/incomplete-list.gschema.xml                        \
373         schema-tests/invalid-path.gschema.xml                           \
374         schema-tests/key-in-list-indirect.gschema.xml                   \
375         schema-tests/key-in-list.gschema.xml                            \
376         schema-tests/list-of-missing.gschema.xml                        \
377         schema-tests/missing-quotes.gschema.xml                         \
378         schema-tests/no-default.gschema.xml                             \
379         schema-tests/overflow.gschema.xml                               \
380         schema-tests/override-missing.gschema.xml                       \
381         schema-tests/override-range-error.gschema.xml                   \
382         schema-tests/override-then-key.gschema.xml                      \
383         schema-tests/override-twice.gschema.xml                         \
384         schema-tests/override-type-error.gschema.xml                    \
385         schema-tests/override.gschema.xml                               \
386         schema-tests/range-badtype.gschema.xml                          \
387         schema-tests/range-default-high.gschema.xml                     \
388         schema-tests/range-default-low.gschema.xml                      \
389         schema-tests/range-high-default.gschema.xml                     \
390         schema-tests/range-low-default.gschema.xml                      \
391         schema-tests/range-missing-max.gschema.xml                      \
392         schema-tests/range-missing-min.gschema.xml                      \
393         schema-tests/range-parse-error.gschema.xml                      \
394         schema-tests/range-wrong-type.gschema.xml                       \
395         schema-tests/range.gschema.xml                                  \
396         schema-tests/wrong-category.gschema.xml
397
398 proxy_SOURCES = proxy.c
399 proxy_LDADD   = $(progs_ldadd) \
400         $(top_builddir)/gthread/libgthread-2.0.la
401
402 EXTRA_DIST += \
403         socket-common.c                 \
404         org.gtk.test.gschema            \
405         org.gtk.test.gschema.xml        \
406         testenum.h                      \
407         enums.xml.template              \
408         de.po                           \
409         $(schema_tests)                 \
410         appinfo-test.desktop            \
411         appinfo-test2.desktop           \
412         appinfo-test-gnome.desktop      \
413         appinfo-test-notgnome.desktop   \
414         gdbus-testserver.py
415
416 MISC_STUFF = test.mo
417
418 test.mo: de.po
419         $(MSGFMT) -o test.mo $(srcdir)/de.po; \
420         $(MKDIR_P) de/LC_MESSAGES; \
421         cp -f test.mo de/LC_MESSAGES
422
423 DISTCLEANFILES = \
424         applications/mimeinfo.cache     \
425         org.gtk.test.enums.xml          \
426         de/LC_MESSAGES/test.mo          \
427         test.mo                         \
428         gsettings.store                 \
429         gschemas.compiled