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