~ubuntu-branches/ubuntu/wily/telepathy-glib/wily

« back to all changes in this revision

Viewing changes to tests/dbus/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2009-03-24 22:06:52 UTC
  • mfrom: (1.3.1 upstream) (17.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20090324220652-c8dvom0nsqomp23d
Tags: 0.7.28-1
* New upstream version (ABI, API added)
* Put the -dbg package in section debug, as per recent archive changes
* Remove obsolete Conflicts/Replaces with libtelepathy-glib-static-dev, which
  was never in a stable release (and probably never in Debian at all)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
noinst_PROGRAMS = \
2
2
    test-call-cancellation \
 
3
    test-callable-example \
3
4
    test-channel-introspect \
 
5
    test-cli-group \
 
6
    test-cm \
4
7
    test-connection \
 
8
    test-connection-bug-18845 \
 
9
    test-connection-error \
 
10
    test-connection-handles \
5
11
    test-connection-inject-bug16307 \
6
12
    test-connection-getinterfaces-failure \
 
13
    test-contacts \
 
14
    test-contacts-bug-19101 \
 
15
    test-contacts-mixin \
7
16
    test-dbus \
8
17
    test-disconnection \
 
18
    test-error-enum \
9
19
    test-example-no-protocols \
10
20
    test-finalized-in-invalidated-handler \
 
21
    test-group-mixin \
11
22
    test-handle-set \
12
23
    test-invalidated-while-invoking-signals \
 
24
    test-message-mixin \
13
25
    test-properties \
 
26
    test-self-handle \
 
27
    test-self-presence \
 
28
    test-text-mixin \
 
29
    test-text-respawn \
14
30
    test-unsupported-interface
15
31
 
16
32
TESTS = $(noinst_PROGRAMS)
17
33
 
18
 
test_call_cancellation_LDADD = \
19
 
    $(TP_GLIB_LIBS) \
20
 
    ../lib/libtp-glib-tests.la
21
 
 
22
 
test_channel_introspect_LDADD = \
23
 
    $(TP_GLIB_LIBS) \
24
 
    ../lib/libtp-glib-tests.la
 
34
LDADD = \
 
35
    $(top_builddir)/telepathy-glib/libtelepathy-glib.la \
 
36
    $(top_builddir)/tests/lib/libtp-glib-tests.la
 
37
 
 
38
test_call_cancellation_SOURCES = call-cancellation.c
 
39
 
25
40
test_channel_introspect_SOURCES = channel-introspect.c
26
41
 
27
 
test_connection_LDADD = \
28
 
    $(TP_GLIB_LIBS) \
29
 
    ../lib/libtp-glib-tests.la
 
42
test_callable_example_SOURCES = callable-example.c
 
43
test_callable_example_LDADD = \
 
44
    $(LDADD) \
 
45
    $(top_builddir)/examples/cm/callable/libexample-cm-callable.la
 
46
 
 
47
test_cli_group_SOURCES = cli-group.c
 
48
 
 
49
test_cm_SOURCES = cm.c
 
50
test_cm_LDADD = \
 
51
    $(LDADD) \
 
52
    $(top_builddir)/examples/cm/echo/libexample-cm-echo.la
 
53
 
30
54
test_connection_SOURCES = connection.c
31
55
 
32
 
test_connection_inject_bug16307_LDADD = \
33
 
    $(TP_GLIB_LIBS) \
34
 
    ../lib/libtp-glib-tests.la
 
56
test_connection_bug_18845_SOURCES = connection-bug-18845.c
 
57
 
 
58
test_connection_handles_SOURCES = connection-handles.c
 
59
 
 
60
test_connection_error_SOURCES = connection-error.c
 
61
 
35
62
test_connection_inject_bug16307_SOURCES = connection-inject-bug16307.c
36
63
 
37
 
test_connection_getinterfaces_failure_LDADD = \
38
 
    $(TP_GLIB_LIBS) \
39
 
    ../lib/libtp-glib-tests.la
40
64
test_connection_getinterfaces_failure_SOURCES = \
41
65
    connection-getinterfaces-failure.c
42
66
 
43
 
test_dbus_LDADD = $(TP_GLIB_LIBS)
44
 
test_disconnection_LDADD = \
45
 
    $(TP_GLIB_LIBS) \
46
 
    ../lib/libtp-glib-tests.la
47
 
test_example_no_protocols_LDADD = $(TP_GLIB_LIBS)
 
67
test_contacts_SOURCES = contacts.c
 
68
 
 
69
test_contacts_bug_19101_SOURCES = contacts-bug-19101.c
 
70
 
 
71
test_contacts_mixin_SOURCES = contacts-mixin.c
 
72
 
 
73
test_dbus_SOURCES = dbus.c
 
74
 
 
75
test_disconnection_SOURCES = disconnection.c
 
76
 
 
77
test_error_enum_SOURCES = error-enum.c
 
78
nodist_test_error_enum_SOURCES = _gen/errors-check.h
 
79
 
 
80
test_example_no_protocols_SOURCES = example-no-protocols.c
48
81
 
49
82
test_finalized_in_invalidated_handler_SOURCES = \
50
83
    finalized-in-invalidated-handler.c
51
 
test_finalized_in_invalidated_handler_LDADD = \
52
 
    $(TP_GLIB_LIBS) \
53
 
    ../lib/libtp-glib-tests.la
 
84
 
 
85
test_group_mixin_SOURCES = group-mixin.c
54
86
 
55
87
test_handle_set_SOURCES = handle-set.c
56
 
test_handle_set_LDADD = $(TP_GLIB_LIBS)
57
88
 
58
 
test_invalidated_while_invoking_signals_LDADD = \
59
 
    $(TP_GLIB_LIBS) \
60
 
    ../lib/libtp-glib-tests.la
61
89
test_invalidated_while_invoking_signals_SOURCES = \
62
90
    invalidated-while-invoking-signals.c
63
91
 
64
 
test_properties_LDADD = $(TP_GLIB_LIBS)
65
 
test_properties_SOURCES = \
66
 
    properties.c \
 
92
test_message_mixin_LDADD = \
 
93
    $(LDADD) \
 
94
    $(top_builddir)/examples/cm/echo-message-parts/libexample-cm-echo-2.la
 
95
test_message_mixin_SOURCES = \
 
96
    message-mixin.c
 
97
 
 
98
test_properties_SOURCES = properties.c
 
99
nodist_test_properties_SOURCES = \
67
100
    _gen/svc.h \
68
101
    _gen/svc.c
69
102
 
70
 
test_unsupported_interface_LDADD = $(TP_GLIB_LIBS)
 
103
test_self_handle_SOURCES = self-handle.c
 
104
 
 
105
test_self_presence_SOURCES = self-presence.c
 
106
 
 
107
test_text_mixin_LDADD = \
 
108
    $(LDADD) \
 
109
    $(top_builddir)/examples/cm/echo/libexample-cm-echo.la
 
110
test_text_mixin_SOURCES = text-mixin.c
 
111
 
 
112
test_text_respawn_LDADD = \
 
113
    $(LDADD) \
 
114
    $(top_builddir)/examples/cm/echo/libexample-cm-echo.la
 
115
test_text_respawn_SOURCES = text-respawn.c
 
116
 
71
117
test_unsupported_interface_SOURCES = unsupported-interface.c
72
118
 
73
119
check_c_sources = *.c
80
126
    $(GLIB_CFLAGS) \
81
127
    $(TP_GLIB_CFLAGS)
82
128
 
83
 
TESTS_ENV = \
 
129
TESTS_ENVIRONMENT = \
84
130
    abs_top_builddir=@abs_top_builddir@ \
85
131
    XDG_DATA_HOME=@abs_builddir@ \
86
132
    XDG_DATA_DIRS=@abs_srcdir@ \
87
133
    G_DEBUG=fatal_warnings,fatal_criticals
88
134
 
89
 
TESTS_ENVIRONMENT = \
90
 
    $(TESTS_ENV) \
91
 
    sh $(top_srcdir)/tools/with-session-bus.sh --session --
92
 
 
93
135
check-valgrind:
94
136
        $(MAKE) check-TESTS \
95
 
                TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)" \
96
 
                TESTS="$(TESTS:%=.libs/%)"
 
137
                TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)"
97
138
 
98
139
VALGRIND_TESTS_ENVIRONMENT = \
99
140
    G_SLICE=always-malloc \
100
 
    $(TESTS_ENV) \
101
 
    $(top_builddir)/tools/telepathy-glib-env \
102
 
    sh $(top_srcdir)/tools/with-session-bus.sh --session -- \
 
141
    $(TESTS_ENVIRONMENT) \
 
142
    $(top_builddir)/libtool --mode=execute \
103
143
    valgrind --tool=memcheck --leak-check=full --show-reachable=yes \
104
144
        --suppressions=$(top_srcdir)/examples/tp-glib-examples.supp \
105
145
        --child-silent-after-fork=yes --num-callers=20 --error-exitcode=42 \
107
147
        $(VALGRIND_FLAGS)
108
148
 
109
149
BUILT_SOURCES = \
 
150
        _gen/errors-check.h \
110
151
        _gen/svc.h \
111
152
        _gen/svc.c
112
153
 
116
157
distclean-local:
117
158
        rm -rf _gen
118
159
 
119
 
EXTRA_DIST = with-properties.xml
 
160
EXTRA_DIST = \
 
161
    dbus-1/services/spurious.service \
 
162
    telepathy/managers/spurious.manager \
 
163
    telepathy/managers/test_manager_file.manager \
 
164
    telepathy/managers/test_manager_file_invalid.manager \
 
165
    with-properties.xml
120
166
 
121
167
_gen/svc.c _gen/svc.h: with-properties.xml \
122
168
        $(top_srcdir)/tools/glib-ginterface-gen.py \
126
172
                --filename=_gen/svc \
127
173
                --signal-marshal-prefix=NOT_NEEDED \
128
174
                $< Test_Svc_
 
175
 
 
176
_gen/errors-check.h: $(top_srcdir)/spec/errors.xml \
 
177
        $(top_srcdir)/tools/glib-errors-check-gen.py
 
178
        $(mkdir_p) _gen
 
179
        $(PYTHON) $(top_srcdir)/tools/glib-errors-check-gen.py $< > $@