~ubuntu-branches/ubuntu/precise/telepathy-glib/precise-201111172307

« back to all changes in this revision

Viewing changes to tests/dbus/Makefile.am

  • Committer: Ken VanDine
  • Date: 2011-11-17 20:53:21 UTC
  • mfrom: (1.6.34 upstream)
  • Revision ID: ken.vandine@canonical.com-20111117205321-l704j7kr1zgw5v9h
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
noinst_PROGRAMS = \
 
1
tests_list = \
2
2
    test-account \
3
3
    test-account-channel-request \
4
4
    test-account-manager \
26
26
    test-connection-interests \
27
27
    test-connection-getinterfaces-failure \
28
28
    test-contact-lists \
 
29
    test-contact-list-client \
29
30
    test-contacts \
30
31
    test-contacts-bug-19101 \
31
32
    test-contacts-mixin \
59
60
    test-text-respawn \
60
61
    test-unsupported-interface
61
62
 
62
 
TESTS = $(noinst_PROGRAMS)
 
63
if ENABLE_INSTALLED_TESTS
 
64
managersdir = @tpglibtestsdir@/telepathy/managers/
 
65
managers_DATA = \
 
66
        telepathy/managers/spurious.manager \
 
67
        telepathy/managers/test_manager_file_invalid.manager \
 
68
        telepathy/managers/test_manager_file.manager \
 
69
        $(NULL)
 
70
 
 
71
testsdir = @tpglibtestsdir@
 
72
tests_PROGRAMS = $(tests_list)
 
73
tests_SCRIPTS = run-test.sh
 
74
tests_DATA = tpglib-dbus-tests.list
 
75
else
 
76
noinst_PROGRAMS = $(tests_list)
 
77
endif
 
78
 
 
79
TESTS = $(tests_list)
 
80
 
 
81
tpglib-dbus-tests.list:
 
82
        $(AM_V_GEN)echo $(tests_list) > $@
63
83
 
64
84
LDADD = \
65
85
    $(top_builddir)/tests/lib/libtp-glib-tests.la \
116
136
    $(LDADD) \
117
137
    $(top_builddir)/examples/cm/contactlist/libexample-cm-contactlist.la
118
138
 
 
139
test_contact_list_client_SOURCES = contact-list-client.c
 
140
test_contact_list_client_LDADD = \
 
141
    $(LDADD) \
 
142
    $(top_builddir)/examples/cm/contactlist/libexample-cm-contactlist.la
 
143
 
119
144
test_connection_balance_SOURCES = connection-balance.c
120
145
 
121
146
test_connection_bug_18845_SOURCES = connection-bug-18845.c
250
275
    G_DEBUG=fatal_warnings,fatal_criticals$(maybe_gc_friendly) \
251
276
    $(top_srcdir)/tools/test-wrapper.sh \
252
277
    sh $(top_srcdir)/tools/with-session-bus.sh \
253
 
        --config-file=dbus-1/session.conf -- \
 
278
        --config-file=dbus-uninstalled/session.conf -- \
254
279
    $(EXTRA_TESTS_ENVIRONMENT)
255
280
 
256
281
EXTRA_TESTS_ENVIRONMENT =
269
294
    $(VALGRIND) --suppressions=$(top_srcdir)/tests/tests.supp $(VALGRIND_FLAGS)
270
295
 
271
296
BUILT_SOURCES = \
272
 
        dbus-1/session.conf \
 
297
        dbus-installed/session.conf \
 
298
        dbus-uninstalled/session.conf \
273
299
        _gen/errors-check.h \
274
300
        _gen/svc.h \
275
 
        _gen/svc.c
 
301
        _gen/svc.c \
 
302
        run-test.sh \
 
303
        $(NULL)
276
304
 
277
305
CLEANFILES = \
278
306
    $(BUILT_SOURCES)
282
310
        rm -rf _gen
283
311
 
284
312
EXTRA_DIST = \
285
 
    dbus-1/session.conf.in \
286
 
    dbus-1/services/spurious.service \
 
313
    dbus-installed/session.conf.in \
 
314
    dbus-installed/services/spurious.service \
 
315
    dbus-uninstalled/session.conf.in \
 
316
    dbus-uninstalled/services/spurious.service \
287
317
    telepathy/managers/spurious.manager \
288
318
    telepathy/managers/test_manager_file.manager \
289
319
    telepathy/managers/test_manager_file_invalid.manager \
290
 
    with-properties.xml
291
 
 
292
 
dbus-1/%.conf: $(srcdir)/dbus-1/%.conf.in
293
 
        $(AM_V_at)$(mkdir_p) dbus-1
 
320
    with-properties.xml \
 
321
    run-test.sh.in \
 
322
    $(NULL)
 
323
 
 
324
run-test.sh: run-test.sh.in
 
325
        $(AM_V_GEN)sed \
 
326
                -e "s|[@]tpglibtestsdir[@]|@tpglibtestsdir@|g" \
 
327
                -e "s|[@]libexec[@]|${libexecdir}|g" \
 
328
                $< > $@
 
329
        @chmod +x $@
 
330
 
 
331
dbus-uninstalled/%.conf: $(srcdir)/dbus-uninstalled/%.conf.in
 
332
        $(AM_V_at)$(mkdir_p) dbus-uninstalled
294
333
        $(AM_V_GEN)sed -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" $< > $@
295
334
 
 
335
dbus-installed/%.conf: $(srcdir)/dbus-installed/%.conf.in
 
336
        $(AM_V_at)$(mkdir_p) dbus-installed
 
337
        $(AM_V_GEN)sed -e "s|[@]tpglibtestsdir[@]|@tpglibtestsdir@|g" $< > $@
 
338
 
 
339
service_files = dbus-installed/services/spurious.service
 
340
conf_in_files = dbus-installed/session.conf.in
 
341
conf_files = $(conf_in_files:.conf.in=.conf)
 
342
 
 
343
if ENABLE_INSTALLED_TESTS
 
344
dbusservicedir = @tpglibtestsdir@/dbus-installed/services
 
345
dbusservice_DATA = $(service_files)
 
346
 
 
347
dbusconfigdir = @tpglibtestsdir@/dbus-installed
 
348
dbusconfig_DATA = $(conf_files)
 
349
endif
 
350
 
296
351
_gen/svc.c _gen/svc.h: with-properties.xml \
297
352
        $(top_srcdir)/tools/glib-ginterface-gen.py \
298
353
        Makefile.am