1 noinst_LTLIBRARIES = libclient-test-utils.la
3 libclient_test_utils_la_SOURCES = \
8 libclient_test_utils_la_CPPFLAGS = \
12 -I$(top_srcdir)/addressbook \
13 -I$(top_builddir)/addressbook \
14 -I$(top_srcdir)/calendar \
15 -I$(top_builddir)/calendar \
16 -I$(top_srcdir)/tests/test-server-utils \
17 -I$(top_builddir)/tests/test-server-utils \
18 -I$(top_srcdir)/private \
19 -I$(top_builddir)/private \
20 -DSRCDIR=\""$(abs_srcdir)"\" \
21 $(EVOLUTION_ADDRESSBOOK_CFLAGS) \
22 $(EVOLUTION_CALENDAR_CFLAGS) \
26 libclient_test_utils_la_LIBADD = \
27 $(top_builddir)/addressbook/libebook/libebook-1.2.la \
28 $(top_builddir)/tests/test-server-utils/libetestserverutils.la \
29 $(top_builddir)/private/libedbus-private.la \
30 $(EVOLUTION_ADDRESSBOOK_LIBS) \
31 $(EVOLUTION_CALENDAR_LIBS) \
35 # Should be kept ordered approximately from least to most difficult/complex
38 test-client-add-contact \
39 test-client-get-contact \
40 test-client-get-contact-uids \
41 test-client-modify-contact \
42 test-client-remove-contact \
43 test-client-remove-contact-by-uid \
44 test-client-remove-contacts \
45 test-client-add-and-get-sync \
46 test-client-add-and-get-async \
48 test-client-preserve-uid \
49 test-client-photo-is-uri \
50 test-client-e164-param \
51 test-client-custom-summary \
52 test-client-get-revision \
53 test-client-write-write \
54 test-client-get-view \
55 test-client-uid-only-view \
56 test-client-revision-view \
57 test-client-view-operations \
58 test-client-suppress-notifications \
59 test-client-cursor-create \
60 test-client-cursor-operations \
63 # The noinst tests are functional tests, not unit tests.
65 # Either they were designed as functional tests or have
66 # not been ported to use ETestServerFixture yet.
67 noinst_PROGRAMS = $(TESTS)
70 $(libclient_test_utils_la_CPPFLAGS) \
71 $(EVOLUTION_ADDRESSBOOK_CPPFLAGS) \
75 $(libclient_test_utils_la_LIBADD) \
76 libclient-test-utils.la \
77 $(top_builddir)/addressbook/libebook/libebook-1.2.la \
78 $(EVOLUTION_ADDRESSBOOK_LIBS) \
81 test_client_add_and_get_sync_LDADD=$(TEST_LIBS)
82 test_client_add_and_get_sync_CPPFLAGS=$(TEST_CPPFLAGS)
83 test_client_add_and_get_async_LDADD=$(TEST_LIBS)
84 test_client_add_and_get_async_CPPFLAGS=$(TEST_CPPFLAGS)
85 test_client_add_contact_LDADD=$(TEST_LIBS)
86 test_client_add_contact_CPPFLAGS=$(TEST_CPPFLAGS)
87 test_client_preserve_uid_LDADD=$(TEST_LIBS)
88 test_client_preserve_uid_CPPFLAGS=$(TEST_CPPFLAGS)
89 test_client_get_contact_LDADD=$(TEST_LIBS)
90 test_client_get_contact_CPPFLAGS=$(TEST_CPPFLAGS)
91 test_client_get_contact_uids_LDADD=$(TEST_LIBS)
92 test_client_get_contact_uids_CPPFLAGS=$(TEST_CPPFLAGS)
93 test_client_e164_param_LDADD=$(TEST_LIBS)
94 test_client_e164_param_CPPFLAGS=$(TEST_CPPFLAGS)
95 test_client_custom_summary_LDADD=$(TEST_LIBS)
96 test_client_custom_summary_CPPFLAGS=$(TEST_CPPFLAGS)
97 test_client_get_revision_LDADD=$(TEST_LIBS)
98 test_client_get_revision_CPPFLAGS=$(TEST_CPPFLAGS)
99 test_client_get_view_LDADD=$(TEST_LIBS)
100 test_client_get_view_CPPFLAGS=$(TEST_CPPFLAGS)
101 test_client_uid_only_view_LDADD=$(TEST_LIBS)
102 test_client_uid_only_view_CPPFLAGS=$(TEST_CPPFLAGS)
103 test_client_revision_view_LDADD=$(TEST_LIBS)
104 test_client_revision_view_CPPFLAGS=$(TEST_CPPFLAGS)
105 test_client_view_operations_LDADD=$(TEST_LIBS)
106 test_client_view_operations_CPPFLAGS=$(TEST_CPPFLAGS)
107 test_client_suppress_notifications_LDADD=$(TEST_LIBS)
108 test_client_suppress_notifications_CPPFLAGS=$(TEST_CPPFLAGS)
109 test_client_modify_contact_LDADD=$(TEST_LIBS)
110 test_client_modify_contact_CPPFLAGS=$(TEST_CPPFLAGS)
111 test_client_refresh_LDADD=$(TEST_LIBS)
112 test_client_refresh_CPPFLAGS=$(TEST_CPPFLAGS)
113 test_client_remove_contact_LDADD=$(TEST_LIBS)
114 test_client_remove_contact_CPPFLAGS=$(TEST_CPPFLAGS)
115 test_client_remove_contact_by_uid_LDADD=$(TEST_LIBS)
116 test_client_remove_contact_by_uid_CPPFLAGS=$(TEST_CPPFLAGS)
117 test_client_remove_contacts_LDADD=$(TEST_LIBS)
118 test_client_remove_contacts_CPPFLAGS=$(TEST_CPPFLAGS)
119 test_client_photo_is_uri_LDADD=$(TEST_LIBS)
120 test_client_photo_is_uri_CPPFLAGS=$(TEST_CPPFLAGS)
121 test_client_write_write_LDADD=$(TEST_LIBS)
122 test_client_write_write_CPPFLAGS=$(TEST_CPPFLAGS)
123 test_client_self_LDADD=$(TEST_LIBS)
124 test_client_self_CPPFLAGS=$(TEST_CPPFLAGS)
125 test_client_cursor_create_LDADD=$(TEST_LIBS)
126 test_client_cursor_create_CPPFLAGS=$(TEST_CPPFLAGS)
127 test_client_cursor_operations_LDADD=$(TEST_LIBS)
128 test_client_cursor_operations_CPPFLAGS=$(TEST_CPPFLAGS)
130 -include $(top_srcdir)/git.mk
132 #####################################
133 # Optionally Install Tests #
134 #####################################
135 @EDS_INSTALLED_TESTS_RULE@
137 # Here we list all the $(TESTS) except
138 # for test-client-cursor-operations, that
139 # test requires that we set the locale
140 # on the system bus, or set EDS_TESTING=1
141 # both in the test environment AND the D-Bus
142 # session environment.
144 # test-client-self also fails for some reason
145 # when running installed, not sure why.
147 test-client-refresh \
148 test-client-add-contact \
149 test-client-get-contact \
150 test-client-get-contact-uids \
151 test-client-modify-contact \
152 test-client-remove-contact \
153 test-client-remove-contact-by-uid \
154 test-client-remove-contacts \
155 test-client-add-and-get-sync \
156 test-client-add-and-get-async \
157 test-client-preserve-uid \
158 test-client-photo-is-uri \
159 test-client-e164-param \
160 test-client-custom-summary \
161 test-client-get-revision \
162 test-client-write-write \
163 test-client-get-view \
164 test-client-uid-only-view \
165 test-client-revision-view \
166 test-client-view-operations \
167 test-client-suppress-notifications \
168 test-client-cursor-create \
171 INSTALLED_TESTS_TYPE = session-exclusive
172 INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"