blob: 8f211a466500a8a6bbc35ed1de520a683cafc8cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
SUBDIRS = \
lib \
. \
dbus \
tools
noinst_PROGRAMS = \
test-asv \
test-capabilities \
test-availability-cmp \
test-dtmf-player \
test-enums \
test-gnio-util \
test-heap \
test-internal-debug \
test-intset \
test-signal-connect-object \
test-util \
test-debug-domain \
test-contact-search-result
TESTS = $(noinst_PROGRAMS) \
all-errors-documented.py
TESTS_ENVIRONMENT = \
abs_top_builddir=@abs_top_builddir@ \
abs_top_srcdir=@abs_top_srcdir@ \
G_SLICE=debug-blocks \
G_DEBUG=fatal_warnings,fatal_criticals$(maybe_gc_friendly) \
PYTHONPATH=@abs_top_srcdir@/tools \
$(top_srcdir)/tools/test-wrapper.sh \
$(EXTRA_TESTS_ENVIRONMENT)
EXTRA_TESTS_ENVIRONMENT =
include $(top_srcdir)/tools/valgrind.mk
VALGRIND_TESTS_ENVIRONMENT = \
$(TESTS_ENVIRONMENT) \
env G_SLICE=always-malloc CHECK_VERBOSE=1 \
$(top_builddir)/libtool --mode=execute \
$(VALGRIND) --suppressions=$(top_srcdir)/tests/tests.supp $(VALGRIND_FLAGS)
check-valgrind:
$(MAKE) check-TESTS \
maybe_gc_friendly=,gc-friendly \
TESTS='$$(noinst_PROGRAMS)' \
TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)"
$(MAKE) -C dbus check-valgrind
EXTRA_DIST = README \
all-errors-documented.py \
tests.supp
test_asv_SOURCES = \
asv.c
# this one uses internal ABI
test_capabilities_SOURCES = \
capabilities.c
test_capabilities_LDADD = \
$(top_builddir)/tests/lib/libtp-glib-tests.la \
$(top_builddir)/telepathy-glib/libtelepathy-glib-internal.la \
$(GLIB_LIBS)
# this one uses internal ABI
test_contact_search_result_SOURCES = \
contact-search-result.c
test_contact_search_result_LDADD = \
$(top_builddir)/tests/lib/libtp-glib-tests.la \
$(top_builddir)/telepathy-glib/libtelepathy-glib-internal.la \
$(GLIB_LIBS)
test_dtmf_player_SOURCES = dtmf-player.c
test_dtmf_player_LDADD = \
$(top_builddir)/tests/lib/libtp-glib-tests.la \
$(LDADD)
test_heap_SOURCES = \
heap.c
test_gnio_util_SOURCES = \
gnio-util.c
test_util_SOURCES = \
util.c
test_intset_SOURCES = \
intset.c
test_availability_cmp_SOURCES = \
availability-cmp.c
test_enums_SOURCES = \
enums.c
test_debug_domain_SOURCES = \
debug-domain.c
test_internal_debug_SOURCES = \
internal-debug.c
test_signal_connect_object_SOURCES = \
signal-connect-object.c
test_signal_connect_object_LDADD = \
$(top_builddir)/tests/lib/libtp-glib-tests.la \
$(LDADD)
# this needs to link against the static convenience library so that
# _tp_log is still visible
test_debug_domain_LDADD = \
$(top_builddir)/telepathy-glib/libtelepathy-glib-internal.la
test_internal_debug_LDADD = \
$(top_builddir)/telepathy-glib/libtelepathy-glib-internal.la
check_c_sources = *.c
include $(top_srcdir)/tools/check-coding-style.mk
check-local: check-coding-style
LDADD = \
$(top_builddir)/telepathy-glib/libtelepathy-glib.la \
$(GLIB_LIBS) \
$(DBUS_LIBS) \
$(NULL)
AM_CPPFLAGS = \
-I${top_srcdir} -I${top_builddir} \
-D_TP_IGNORE_DEPRECATIONS \
$(GLIB_CFLAGS) \
$(DBUS_CFLAGS) \
$(NULL)
AM_CFLAGS = $(ERROR_CFLAGS)
AM_CXXFLAGS = $(ERROR_CXXFLAGS)
if HAVE_CXX
noinst_PROGRAMS += \
test-util-cxx
test_util_cxx_SOURCES = util-cxx.cpp
endif
|