nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | include $(top_srcdir)/glib-tap.mk |
2 | |||
3 | dist_uninstalled_test_data = |
||
4 | test_ltlibraries = |
||
5 | |||
6 | SUBDIRS = gdbus-object-manager-example services modules |
||
7 | |||
8 | LDADD = \ |
||
9 | $(top_builddir)/gio/libgio-2.0.la \ |
||
10 | $(top_builddir)/gobject/libgobject-2.0.la \ |
||
11 | $(top_builddir)/gmodule/libgmodule-2.0.la \ |
||
12 | $(top_builddir)/glib/libglib-2.0.la \ |
||
13 | $(NULL) |
||
14 | |||
15 | AM_CPPFLAGS = $(gio_INCLUDES) $(GLIB_DEBUG_FLAGS) -I$(top_builddir)/gio -I$(top_srcdir)/gio |
||
16 | DEFS = -DG_LOG_DOMAIN=\"GLib-GIO\" -DTEST_SERVICES=\""$(abs_top_builddir)/gio/tests/services"\" |
||
17 | AM_CFLAGS = $(GLIB_WARN_CFLAGS) |
||
18 | |||
19 | # ----------------------------------------------------------------------------- |
||
20 | # Test programs buildable on all platforms |
||
21 | |||
22 | test_programs = \ |
||
23 | appmonitor \ |
||
24 | async-close-output-stream \ |
||
25 | async-splice-output-stream \ |
||
26 | buffered-input-stream \ |
||
27 | buffered-output-stream \ |
||
28 | cancellable \ |
||
29 | contexts \ |
||
30 | contenttype \ |
||
31 | converter-stream \ |
||
32 | credentials \ |
||
33 | data-input-stream \ |
||
34 | data-output-stream \ |
||
35 | defaultvalue \ |
||
36 | fileattributematcher \ |
||
37 | filter-streams \ |
||
38 | giomodule \ |
||
39 | gsubprocess \ |
||
40 | g-file \ |
||
41 | g-file-info \ |
||
42 | g-icon \ |
||
43 | gdbus-addresses \ |
||
44 | gdbus-message \ |
||
45 | inet-address \ |
||
46 | io-stream \ |
||
47 | memory-input-stream \ |
||
48 | memory-output-stream \ |
||
49 | monitor \ |
||
50 | network-address \ |
||
51 | network-monitor \ |
||
52 | permission \ |
||
53 | pollable \ |
||
54 | proxy-test \ |
||
55 | readwrite \ |
||
56 | simple-async-result \ |
||
57 | simple-proxy \ |
||
58 | sleepy-stream \ |
||
59 | socket \ |
||
60 | socket-listener \ |
||
61 | socket-service \ |
||
62 | srvtarget \ |
||
63 | task \ |
||
64 | tls-interaction \ |
||
65 | vfs \ |
||
66 | volumemonitor \ |
||
67 | glistmodel \ |
||
68 | testfilemonitor \ |
||
69 | $(NULL) |
||
70 | |||
71 | uninstalled_test_programs = \ |
||
72 | $(NULL) |
||
73 | |||
74 | dist_test_data = \ |
||
75 | contexts.c \ |
||
76 | g-icon.c \ |
||
77 | $(NULL) |
||
78 | |||
79 | test_data = \ |
||
80 | $(NULL) |
||
81 | |||
82 | uninstalled_test_extra_programs = \ |
||
83 | gio-du \ |
||
84 | echo-server \ |
||
85 | filter-cat \ |
||
86 | gapplication-example-actions \ |
||
87 | gapplication-example-cmdline \ |
||
88 | gapplication-example-cmdline2 \ |
||
89 | gapplication-example-cmdline3 \ |
||
90 | gapplication-example-dbushooks \ |
||
91 | gapplication-example-open \ |
||
92 | gdbus-example-export \ |
||
93 | gdbus-example-own-name \ |
||
94 | gdbus-example-peer \ |
||
95 | gdbus-example-proxy-subclass \ |
||
96 | gdbus-example-server \ |
||
97 | gdbus-example-subtree \ |
||
98 | gdbus-example-watch-name \ |
||
99 | gdbus-example-watch-proxy \ |
||
100 | gsubprocess-testprog \ |
||
101 | httpd \ |
||
102 | proxy \ |
||
103 | resolver \ |
||
104 | send-data \ |
||
105 | socket-server \ |
||
106 | $(NULL) |
||
107 | |||
108 | test_extra_programs = \ |
||
109 | gdbus-connection-flush-helper \ |
||
110 | gdbus-testserver \ |
||
111 | $(NULL) |
||
112 | |||
113 | dist_uninstalled_test_data += $(addprefix schema-tests/,$(schema_tests)) |
||
114 | schema_tests = \ |
||
115 | array-default-not-in-choices.gschema.xml \ |
||
116 | bad-choice.gschema.xml \ |
||
117 | bad-key.gschema.xml \ |
||
118 | bad-key2.gschema.xml \ |
||
119 | bad-key3.gschema.xml \ |
||
120 | bad-key4.gschema.xml \ |
||
121 | bad-type.gschema.xml \ |
||
122 | bare-alias.gschema.xml \ |
||
123 | choice-alias.gschema.xml \ |
||
124 | choice-bad.gschema.xml \ |
||
125 | choice-badtype.gschema.xml \ |
||
126 | choice-invalid-alias.gschema.xml \ |
||
127 | choice-missing-value.gschema.xml \ |
||
128 | choice-shadowed-alias.gschema.xml \ |
||
129 | choice-upside-down.gschema.xml \ |
||
130 | choice.gschema.xml \ |
||
131 | choices-wrong-type.gschema.xml \ |
||
132 | default-in-aliases.gschema.xml \ |
||
133 | default-not-in-choices.gschema.xml \ |
||
134 | default-out-of-range.gschema.xml \ |
||
135 | description-xmllang.gschema.xml \ |
||
136 | empty-key.gschema.xml \ |
||
137 | enum-with-aliases.gschema.xml \ |
||
138 | enum-with-bad-default.gschema.xml \ |
||
139 | enum-with-chained-alias.gschema.xml \ |
||
140 | enum-with-choice.gschema.xml \ |
||
141 | enum-with-invalid-alias.gschema.xml \ |
||
142 | enum-with-repeated-alias.gschema.xml \ |
||
143 | enum-with-repeated-nick.gschema.xml \ |
||
144 | enum-with-repeated-value.gschema.xml \ |
||
145 | enum-with-shadow-alias.gschema.xml \ |
||
146 | enum.gschema.xml \ |
||
147 | extend-and-shadow-indirect.gschema.xml \ |
||
148 | extend-and-shadow.gschema.xml \ |
||
149 | extend-missing.gschema.xml \ |
||
150 | extend-nonlist.gschema.xml \ |
||
151 | extend-self.gschema.xml \ |
||
152 | extend-wrong-list-indirect.gschema.xml \ |
||
153 | extend-wrong-list.gschema.xml \ |
||
154 | extending.gschema.xml \ |
||
155 | flags-aliased-default.gschema.xml \ |
||
156 | flags-bad-default.gschema.xml \ |
||
157 | flags-more-than-one-bit.gschema.xml \ |
||
158 | flags-with-enum-attr.gschema.xml \ |
||
159 | flags-with-enum-tag.gschema.xml \ |
||
160 | from-docs.gschema.xml \ |
||
161 | incomplete-list.gschema.xml \ |
||
162 | inherit-gettext-domain.gschema.xml \ |
||
163 | invalid-path.gschema.xml \ |
||
164 | key-in-list-indirect.gschema.xml \ |
||
165 | key-in-list.gschema.xml \ |
||
166 | list-of-missing.gschema.xml \ |
||
167 | missing-quotes.gschema.xml \ |
||
168 | no-default.gschema.xml \ |
||
169 | overflow.gschema.xml \ |
||
170 | override-missing.gschema.xml \ |
||
171 | override-range-error.gschema.xml \ |
||
172 | override-then-key.gschema.xml \ |
||
173 | override-twice.gschema.xml \ |
||
174 | override-type-error.gschema.xml \ |
||
175 | override.gschema.xml \ |
||
176 | range-badtype.gschema.xml \ |
||
177 | range-default-high.gschema.xml \ |
||
178 | range-default-low.gschema.xml \ |
||
179 | range-high-default.gschema.xml \ |
||
180 | range-low-default.gschema.xml \ |
||
181 | range-missing-max.gschema.xml \ |
||
182 | range-missing-min.gschema.xml \ |
||
183 | range-parse-error.gschema.xml \ |
||
184 | range-wrong-type.gschema.xml \ |
||
185 | range.gschema.xml \ |
||
186 | summary-xmllang.gschema.xml \ |
||
187 | summary-xmllang-and-attrs.gschema.xml \ |
||
188 | wrong-category.gschema.xml \ |
||
189 | $(NULL) |
||
190 | |||
191 | test_programs += thumbnail-verification |
||
192 | dist_test_data += $(thumbnail_data_files) |
||
193 | thumbnail_data_files = $(addprefix thumbnails/,$(thumbnail_tests)) |
||
194 | thumbnail_tests = \ |
||
195 | bad-header.png \ |
||
196 | empty-key.png \ |
||
197 | header-and-chunk-size.png \ |
||
198 | header-only.png \ |
||
199 | huge-chunk-size.png \ |
||
200 | mtime-zero.png \ |
||
201 | no-text-data.png \ |
||
202 | overlong-value.png \ |
||
203 | uri-mismatch.png \ |
||
204 | valid.png \ |
||
205 | valid-no-size.png \ |
||
206 | $(NULL) |
||
207 | |||
208 | test_programs += tls-certificate |
||
209 | tls_certificate_SOURCES = \ |
||
210 | tls-certificate.c \ |
||
211 | gtesttlsbackend.c \ |
||
212 | gtesttlsbackend.h |
||
213 | dist_test_data += $(cert_data_files) |
||
214 | cert_data_files = $(addprefix cert-tests/,$(cert_tests)) |
||
215 | cert_tests = \ |
||
216 | cert1.pem \ |
||
217 | cert2.pem \ |
||
218 | cert3.pem \ |
||
219 | cert-key.pem \ |
||
220 | cert-list.pem \ |
||
221 | key8.pem \ |
||
222 | key-cert.pem \ |
||
223 | key.pem \ |
||
224 | nothing.pem \ |
||
225 | $(NULL) |
||
226 | |||
227 | uninstalled_test_extra_programs += socket-client |
||
228 | socket_client_SOURCES = \ |
||
229 | socket-client.c \ |
||
230 | gtlsconsoleinteraction.c \ |
||
231 | gtlsconsoleinteraction.h |
||
232 | EXTRA_DIST += socket-common.c |
||
233 | |||
234 | uninstalled_test_extra_programs += gdbus-daemon |
||
235 | nodist_gdbus_daemon_SOURCES = \ |
||
236 | $(top_builddir)/gio/gdbus-daemon-generated.c |
||
237 | gdbus_daemon_SOURCES = \ |
||
238 | gdbus-daemon.c \ |
||
239 | $(top_srcdir)/gio/gdbusdaemon.c |
||
240 | |||
241 | # ----------------------------------------------------------------------------- |
||
242 | # Test programs buildable on UNIX only |
||
243 | |||
244 | if OS_UNIX |
||
245 | test_programs += \ |
||
246 | file \ |
||
247 | gdbus-peer-object-manager \ |
||
248 | gdbus-unix-addresses \ |
||
249 | live-g-file \ |
||
250 | socket-address \ |
||
251 | stream-rw_all \ |
||
252 | unix-fd \ |
||
253 | unix-streams \ |
||
254 | $(NULL) |
||
255 | |||
256 | test_extra_programs += \ |
||
257 | basic-application \ |
||
258 | dbus-launch \ |
||
259 | $(NULL) |
||
260 | |||
261 | # Uninstalled because of the check-for-executable logic in DesktopAppInfo unable to find the installed executable |
||
262 | uninstalled_test_programs += \ |
||
263 | appinfo \ |
||
264 | desktop-app-info \ |
||
265 | $(NULL) |
||
266 | |||
267 | home_desktop_files = \ |
||
268 | epiphany-weather-for-toronto-island-9c6a4e022b17686306243dada811d550d25eb1fb.desktop \ |
||
269 | eog.desktop |
||
270 | |||
271 | usr_desktop_files = \ |
||
272 | baobab.desktop \ |
||
273 | cheese.desktop \ |
||
274 | dconf-editor.desktop \ |
||
275 | eog.desktop \ |
||
276 | evince-previewer.desktop \ |
||
277 | evince.desktop \ |
||
278 | file-roller.desktop \ |
||
279 | gcr-prompter.desktop \ |
||
280 | gcr-viewer.desktop \ |
||
281 | gedit.desktop \ |
||
282 | glade.desktop \ |
||
283 | gnome-clocks.desktop \ |
||
284 | gnome-contacts.desktop \ |
||
285 | gnome-font-viewer.desktop \ |
||
286 | gnome-music.desktop \ |
||
287 | gnome-terminal.desktop \ |
||
288 | gucharmap.desktop \ |
||
289 | kde4/dolphin.desktop \ |
||
290 | kde4/kate.desktop \ |
||
291 | kde4/konqbrowser.desktop \ |
||
292 | kde4/okular.desktop \ |
||
293 | mimeinfo.cache \ |
||
294 | nautilus-autorun-software.desktop \ |
||
295 | nautilus-classic.desktop \ |
||
296 | nautilus-connect-server.desktop \ |
||
297 | nautilus.desktop \ |
||
298 | totem.desktop \ |
||
299 | yelp.desktop |
||
300 | |||
301 | dist_test_data += \ |
||
302 | $(addprefix desktop-files/usr/applications/,$(usr_desktop_files)) \ |
||
303 | $(addprefix desktop-files/home/applications/,$(home_desktop_files)) |
||
304 | |||
305 | dist_test_data += \ |
||
306 | appinfo-test-actions.desktop \ |
||
307 | appinfo-test-gnome.desktop \ |
||
308 | appinfo-test-notgnome.desktop \ |
||
309 | appinfo-test.desktop \ |
||
310 | appinfo-test2.desktop \ |
||
311 | file.c \ |
||
312 | org.gtk.test.dbusappinfo.desktop \ |
||
313 | x-content/image-dcf/DCIM/Camera/20130831_203925.jpg \ |
||
314 | x-content/image-dcf/DCIM/Camera/20130831_203928.jpg \ |
||
315 | x-content/unix-software/autorun.sh \ |
||
316 | x-content/win32-software/autorun.exe \ |
||
317 | $(NULL) |
||
318 | |||
319 | test_extra_programs += \ |
||
320 | appinfo-test \ |
||
321 | apps \ |
||
322 | $(NULL) |
||
323 | |||
324 | uninstalled_test_extra_programs += \ |
||
325 | gdbus-example-unix-fd-client \ |
||
326 | $(NULL) |
||
327 | |||
328 | test_programs += mimeapps |
||
329 | clean-local: clean-mimeapps |
||
330 | clean-mimeapps: |
||
331 | rm -rf xdgdatadir xdgdatahome xdgconfighome |
||
332 | |||
333 | uninstalled_test_programs += gsettings gschema-compile |
||
334 | gsettings_DEPENDENCIES = test.mo |
||
335 | CLEANFILES += test.mo de/LC_MESSAGES/test.mo keyfile/gsettings.store |
||
336 | gsettings_CFLAGS = $(AM_CFLAGS) -DSRCDIR=\"$(abs_srcdir)\" |
||
337 | test.mo: de.po |
||
338 | $(AM_V_GEN) $(MSGFMT) -o test.mo $(srcdir)/de.po; \ |
||
339 | $(MKDIR_P) de/LC_MESSAGES; \ |
||
340 | cp -f test.mo de/LC_MESSAGES |
||
341 | EXTRA_DIST += de.po |
||
342 | dist_uninstalled_test_data += \ |
||
343 | org.gtk.test.gschema.xml.orig \ |
||
344 | org.gtk.schemasourcecheck.gschema.xml \ |
||
345 | testenum.h \ |
||
346 | enums.xml.template |
||
347 | # Generated while running the testcase itself... |
||
348 | CLEANFILES += \ |
||
349 | org.gtk.test.gschema.xml \ |
||
350 | org.gtk.test.enums.xml \ |
||
351 | gsettings.store \ |
||
352 | gschemas.compiled \ |
||
353 | schema-source/gschemas.compiled |
||
354 | |||
355 | test_programs += gdbus-connection-flush |
||
356 | gdbus_connection_flush_SOURCES = \ |
||
357 | gdbus-connection-flush.c \ |
||
358 | test-io-stream.c \ |
||
359 | test-io-stream.h \ |
||
360 | test-pipe-unix.c \ |
||
361 | test-pipe-unix.h |
||
362 | |||
363 | test_programs += gdbus-non-socket |
||
364 | gdbus_non_socket_SOURCES = \ |
||
365 | gdbus-non-socket.c \ |
||
366 | gdbus-tests.c \ |
||
367 | gdbus-tests.h \ |
||
368 | test-io-stream.c \ |
||
369 | test-io-stream.h \ |
||
370 | test-pipe-unix.c \ |
||
371 | test-pipe-unix.h |
||
372 | |||
373 | # These three are manual-run tests because they need a session bus but don't bring one up themselves |
||
374 | uninstalled_test_extra_programs += gdbus-example-objectmanager-client |
||
375 | gdbus_example_objectmanager_client_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD) |
||
376 | |||
377 | uninstalled_test_extra_programs += gdbus-example-objectmanager-server |
||
378 | gdbus_example_objectmanager_server_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD) |
||
379 | |||
380 | test_extra_programs += gsubprocess-testprog |
||
381 | |||
382 | uninstalled_test_extra_programs += gdbus-test-fixture |
||
383 | gdbus_test_fixture_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD) |
||
384 | |||
385 | # This is peer to peer so it doesn't need a session bus (so we can run it normally) |
||
386 | test_programs += gdbus-peer |
||
387 | gdbus_peer_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD) |
||
388 | |||
389 | # This test is currently unreliable |
||
390 | test_extra_programs += gdbus-overflow |
||
391 | |||
392 | # ----------------------------------------------------------------------------- |
||
393 | # Test programs that need to bring up a session bus (requires dbus-daemon) |
||
394 | |||
395 | if HAVE_DBUS_DAEMON |
||
396 | gdbus_sessionbus_sources = gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c |
||
397 | |||
398 | test_programs += \ |
||
399 | actions \ |
||
400 | dbus-appinfo \ |
||
401 | gapplication \ |
||
402 | gdbus-auth \ |
||
403 | gdbus-bz627724 \ |
||
404 | gdbus-close-pending \ |
||
405 | gdbus-connection \ |
||
406 | gdbus-connection-loss \ |
||
407 | gdbus-connection-slow \ |
||
408 | gdbus-error \ |
||
409 | gdbus-exit-on-close \ |
||
410 | gdbus-export \ |
||
411 | gdbus-introspection \ |
||
412 | gdbus-names \ |
||
413 | gdbus-proxy \ |
||
414 | gdbus-proxy-threads \ |
||
415 | gdbus-proxy-well-known-name \ |
||
416 | gdbus-test-codegen \ |
||
417 | gdbus-test-codegen-old \ |
||
418 | gdbus-threading \ |
||
419 | gmenumodel \ |
||
420 | gnotification \ |
||
421 | $(NULL) |
||
422 | |||
423 | gdbus_proxy_threads_CFLAGS = $(AM_CFLAGS) $(DBUS1_CFLAGS) |
||
424 | actions_SOURCES = $(gdbus_sessionbus_sources) actions.c |
||
425 | dbus_appinfo_SOURCES = $(gdbus_sessionbus_sources) dbus-appinfo.c |
||
426 | gapplication_SOURCES = $(gdbus_sessionbus_sources) gapplication.c |
||
427 | gdbus_auth_SOURCES = $(gdbus_sessionbus_sources) gdbus-auth.c |
||
428 | gdbus_bz627724_SOURCES = $(gdbus_sessionbus_sources) gdbus-bz627724.c |
||
429 | gdbus_close_pending_SOURCES = $(gdbus_sessionbus_sources) gdbus-close-pending.c |
||
430 | gdbus_connection_SOURCES = $(gdbus_sessionbus_sources) gdbus-connection.c |
||
431 | gdbus_connection_loss_SOURCES = $(gdbus_sessionbus_sources) gdbus-connection-loss.c |
||
432 | gdbus_connection_slow_SOURCES = $(gdbus_sessionbus_sources) gdbus-connection-slow.c |
||
433 | gdbus_error_SOURCES = $(gdbus_sessionbus_sources) gdbus-error.c |
||
434 | gdbus_exit_on_close_SOURCES = $(gdbus_sessionbus_sources) gdbus-exit-on-close.c |
||
435 | gdbus_export_SOURCES = $(gdbus_sessionbus_sources) gdbus-export.c |
||
436 | gdbus_introspection_SOURCES = $(gdbus_sessionbus_sources) gdbus-introspection.c |
||
437 | gdbus_names_SOURCES = $(gdbus_sessionbus_sources) gdbus-names.c |
||
438 | gdbus_proxy_SOURCES = $(gdbus_sessionbus_sources) gdbus-proxy.c |
||
439 | gdbus_proxy_threads_SOURCES = $(gdbus_sessionbus_sources) gdbus-proxy-threads.c |
||
440 | gdbus_proxy_well_known_name_SOURCES = $(gdbus_sessionbus_sources) gdbus-proxy-well-known-name.c |
||
441 | gdbus_test_codegen_SOURCES = $(gdbus_sessionbus_sources) gdbus-test-codegen.c |
||
442 | nodist_gdbus_test_codegen_SOURCES = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h |
||
443 | gdbus_test_codegen_old_SOURCES = $(gdbus_sessionbus_sources) gdbus-test-codegen.c |
||
444 | nodist_gdbus_test_codegen_old_SOURCES = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h |
||
445 | gdbus_test_codegen_old_CPPFLAGS = $(AM_CPPFLAGS) -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36 |
||
446 | gdbus_threading_SOURCES = $(gdbus_sessionbus_sources) gdbus-threading.c |
||
447 | gmenumodel_SOURCES = $(gdbus_sessionbus_sources) gmenumodel.c |
||
448 | gnotification_SOURCES = $(gdbus_sessionbus_sources) gnotification.c gnotification-server.h gnotification-server.c |
||
449 | |||
450 | BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h |
||
451 | gdbus-test-codegen.o: gdbus-test-codegen-generated.h |
||
452 | gdbus-test-codegen-generated.h: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
||
453 | $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
||
454 | UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
||
455 | $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
||
456 | --interface-prefix org.project. \ |
||
457 | --generate-c-code gdbus-test-codegen-generated \ |
||
458 | --c-generate-object-manager \ |
||
459 | --c-namespace Foo_iGen \ |
||
460 | --generate-docbook gdbus-test-codegen-generated-doc \ |
||
461 | --annotate "org.project.Bar" Key1 Value1 \ |
||
462 | --annotate "org.project.Bar" org.gtk.GDBus.Internal Value2 \ |
||
463 | --annotate "org.project.Bar.HelloWorld()" Key3 Value3 \ |
||
464 | --annotate "org.project.Bar::TestSignal" Key4 Value4 \ |
||
465 | --annotate "org.project.Bar:ay" Key5 Value5 \ |
||
466 | --annotate "org.project.Bar.TestPrimitiveTypes()[val_int32]" Key6 Value6 \ |
||
467 | --annotate "org.project.Bar.TestPrimitiveTypes()[ret_uint32]" Key7 Value7 \ |
||
468 | --annotate "org.project.Bar::TestSignal[array_of_strings]" Key8 Value8 \ |
||
469 | $(srcdir)/test-codegen.xml \ |
||
470 | $(NULL) |
||
471 | gdbus-test-codegen-generated.c: gdbus-test-codegen-generated.h |
||
472 | @: # Generated as side-effect of .h |
||
473 | |||
474 | EXTRA_DIST += test-codegen.xml |
||
475 | CLEANFILES += gdbus-test-codegen-generated.[ch] gdbus-test-codegen-generated-doc-*.xml |
||
476 | endif # OS_UNIX |
||
477 | endif # HAVE_DBUS_DAEMON |
||
478 | |||
479 | tls_interaction_SOURCES = tls-interaction.c gtesttlsbackend.c gtesttlsbackend.h |
||
480 | |||
481 | # ----------------------------------------------------------------------------- |
||
482 | |||
483 | if OS_WIN32 |
||
484 | test_programs += win32-streams |
||
485 | endif |
||
486 | |||
487 | if PLATFORM_WIN32 |
||
488 | no_undefined = -no-undefined |
||
489 | endif |
||
490 | |||
491 | if HAVE_DBUS1 |
||
492 | test_programs += gdbus-serialization |
||
493 | gdbus_serialization_CFLAGS = $(AM_CFLAGS) $(DBUS1_CFLAGS) |
||
494 | gdbus_serialization_LDADD = $(LDADD) $(DBUS1_LIBS) |
||
495 | gdbus_serialization_SOURCES = \ |
||
496 | gdbus-serialization.c \ |
||
497 | gdbus-tests.h \ |
||
498 | gdbus-tests.c |
||
499 | endif |
||
500 | |||
501 | if HAVE_GCC |
||
502 | test_programs += \ |
||
503 | autoptr \ |
||
504 | $(NULL) |
||
505 | endif |
||
506 | |||
507 | # ----------------------------------------------------------------------------- |
||
508 | # The resources test is a bit more complicated, and we cannot build it when |
||
509 | # cross-compiling GIO because it requires running a binary... |
||
510 | |||
511 | if !CROSS_COMPILING |
||
512 | test_programs += resources |
||
513 | resources_SOURCES = resources.c |
||
514 | nodist_resources_SOURCES = test_resources.c test_resources2.c test_resources2.h |
||
515 | resources_DEPENDENCIES = test.gresource |
||
516 | |||
517 | test_ltlibraries += libresourceplugin.la |
||
518 | libresourceplugin_la_SOURCES = resourceplugin.c plugin_resources.c |
||
519 | libresourceplugin_la_LDFLAGS = -avoid-version -module -export-dynamic $(no_undefined) |
||
520 | libresourceplugin_la_LIBADD = $(LDADD) |
||
521 | |||
522 | test_data += test.gresource |
||
523 | |||
524 | # libtool contains a bug whereby the created .la file doesn't contain the correct dlname='' in the case that |
||
525 | # you're building a library but not installing it. This is apparently because the only considered use for an |
||
526 | # uninstalled library is as a convenience library for linking (despite the fact that we give -module). The lack |
||
527 | # of dlname='' in the .la trips up libltdl and GModule as well. We can trick libtool into believing that we |
||
528 | # will install the module by giving it a bogus -rpath for the uninstalled cases. |
||
529 | # |
||
530 | # See http://lists.gnu.org/archive/html/bug-libtool/2013-05/msg00009.html |
||
531 | if !ENABLE_INSTALLED_TESTS |
||
532 | libresourceplugin_la_LDFLAGS += -rpath / |
||
533 | endif |
||
534 | |||
535 | glib_compile_resources=$(top_builddir)/gio/glib-compile-resources |
||
536 | |||
537 | resources.o: test_resources2.h |
||
538 | test_resources.c: test2.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test2.gresource.xml) |
||
539 | $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_test1 $< |
||
540 | |||
541 | test_resources2.h test_resources2.c: test3.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test3.gresource.xml) |
||
542 | $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate --c-name _g_test2 --manual-register $< |
||
543 | |||
544 | plugin_resources.c: test4.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test4.gresource.xml) |
||
545 | $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_plugin $< |
||
546 | |||
547 | test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test.gresource.xml) |
||
548 | $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) $< |
||
549 | |||
550 | EXTRA_DIST += test.gresource.xml test1.txt test2.gresource.xml test2.txt test3.gresource.xml test3.txt test4.gresource.xml |
||
551 | CLEANFILES += test_resources.c test_resources2.[ch] plugin_resources.c test.gresource |
||
552 | endif # !CROSS_COMPILING |
||
553 | |||
554 | BUILT_SOURCES += giotypefuncs.c |
||
555 | |||
556 | giotypefuncs.c: Makefile |
||
557 | $(AM_V_GEN) echo '#include <gio/gio.h>' > xgen-giosrc.c && \ |
||
558 | echo "G_GNUC_BEGIN_IGNORE_DEPRECATIONS" > xgen-gio && \ |
||
559 | ${CPP} $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-giosrc.c | \ |
||
560 | $(GREP) -o '\bg_[A-Za-z0-9_]*_get_type\b' | \ |
||
561 | $(GREP) -v 'g_io_extension_get_type\|g_variant_get_type' | \ |
||
562 | LC_ALL=C sort | uniq | \ |
||
563 | $(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \ |
||
564 | cp xgen-gio $@ # && rm -f xgen-gio xgen-giosrc.c |
||
565 | |||
566 | CLEANFILES += xgen-giosrc.c xgen-gio giotypefuncs.c |
||
567 | |||
568 | if ENABLE_INSTALLED_TESTS |
||
569 | if OS_UNIX |
||
570 | install-data-hook: |
||
571 | $(AM_V_at) chmod a+x $(DESTDIR)$(installed_testdir)/x-content/win32-software/autorun.exe |
||
572 | endif |
||
573 | endif |