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