2
2
test-call-cancellation \
3
test-callable-example \
3
4
test-channel-introspect \
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 \
14
test-contacts-bug-19101 \
8
17
test-disconnection \
9
19
test-example-no-protocols \
10
20
test-finalized-in-invalidated-handler \
12
23
test-invalidated-while-invoking-signals \
14
30
test-unsupported-interface
16
32
TESTS = $(noinst_PROGRAMS)
18
test_call_cancellation_LDADD = \
20
../lib/libtp-glib-tests.la
22
test_channel_introspect_LDADD = \
24
../lib/libtp-glib-tests.la
35
$(top_builddir)/telepathy-glib/libtelepathy-glib.la \
36
$(top_builddir)/tests/lib/libtp-glib-tests.la
38
test_call_cancellation_SOURCES = call-cancellation.c
25
40
test_channel_introspect_SOURCES = channel-introspect.c
27
test_connection_LDADD = \
29
../lib/libtp-glib-tests.la
42
test_callable_example_SOURCES = callable-example.c
43
test_callable_example_LDADD = \
45
$(top_builddir)/examples/cm/callable/libexample-cm-callable.la
47
test_cli_group_SOURCES = cli-group.c
49
test_cm_SOURCES = cm.c
52
$(top_builddir)/examples/cm/echo/libexample-cm-echo.la
30
54
test_connection_SOURCES = connection.c
32
test_connection_inject_bug16307_LDADD = \
34
../lib/libtp-glib-tests.la
56
test_connection_bug_18845_SOURCES = connection-bug-18845.c
58
test_connection_handles_SOURCES = connection-handles.c
60
test_connection_error_SOURCES = connection-error.c
35
62
test_connection_inject_bug16307_SOURCES = connection-inject-bug16307.c
37
test_connection_getinterfaces_failure_LDADD = \
39
../lib/libtp-glib-tests.la
40
64
test_connection_getinterfaces_failure_SOURCES = \
41
65
connection-getinterfaces-failure.c
43
test_dbus_LDADD = $(TP_GLIB_LIBS)
44
test_disconnection_LDADD = \
46
../lib/libtp-glib-tests.la
47
test_example_no_protocols_LDADD = $(TP_GLIB_LIBS)
67
test_contacts_SOURCES = contacts.c
69
test_contacts_bug_19101_SOURCES = contacts-bug-19101.c
71
test_contacts_mixin_SOURCES = contacts-mixin.c
73
test_dbus_SOURCES = dbus.c
75
test_disconnection_SOURCES = disconnection.c
77
test_error_enum_SOURCES = error-enum.c
78
nodist_test_error_enum_SOURCES = _gen/errors-check.h
80
test_example_no_protocols_SOURCES = example-no-protocols.c
49
82
test_finalized_in_invalidated_handler_SOURCES = \
50
83
finalized-in-invalidated-handler.c
51
test_finalized_in_invalidated_handler_LDADD = \
53
../lib/libtp-glib-tests.la
85
test_group_mixin_SOURCES = group-mixin.c
55
87
test_handle_set_SOURCES = handle-set.c
56
test_handle_set_LDADD = $(TP_GLIB_LIBS)
58
test_invalidated_while_invoking_signals_LDADD = \
60
../lib/libtp-glib-tests.la
61
89
test_invalidated_while_invoking_signals_SOURCES = \
62
90
invalidated-while-invoking-signals.c
64
test_properties_LDADD = $(TP_GLIB_LIBS)
65
test_properties_SOURCES = \
92
test_message_mixin_LDADD = \
94
$(top_builddir)/examples/cm/echo-message-parts/libexample-cm-echo-2.la
95
test_message_mixin_SOURCES = \
98
test_properties_SOURCES = properties.c
99
nodist_test_properties_SOURCES = \
70
test_unsupported_interface_LDADD = $(TP_GLIB_LIBS)
103
test_self_handle_SOURCES = self-handle.c
105
test_self_presence_SOURCES = self-presence.c
107
test_text_mixin_LDADD = \
109
$(top_builddir)/examples/cm/echo/libexample-cm-echo.la
110
test_text_mixin_SOURCES = text-mixin.c
112
test_text_respawn_LDADD = \
114
$(top_builddir)/examples/cm/echo/libexample-cm-echo.la
115
test_text_respawn_SOURCES = text-respawn.c
71
117
test_unsupported_interface_SOURCES = unsupported-interface.c
73
119
check_c_sources = *.c
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
91
sh $(top_srcdir)/tools/with-session-bus.sh --session --
94
136
$(MAKE) check-TESTS \
95
TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)" \
96
TESTS="$(TESTS:%=.libs/%)"
137
TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)"
98
139
VALGRIND_TESTS_ENVIRONMENT = \
99
140
G_SLICE=always-malloc \
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 \