addressbook tests: Run with private D-Bus session and environment.
[platform/upstream/evolution-data-server.git] / tests / libebook / client / Makefile.am
1 noinst_LTLIBRARIES = libclient-test-utils.la
2
3 libclient_test_utils_la_SOURCES = client-test-utils.c client-test-utils.h
4
5 libclient_test_utils_la_CPPFLAGS =                              \
6         $(AM_CPPFLAGS)                                          \
7         -I$(top_srcdir)                                         \
8         -I$(top_builddir)                                       \
9         -I$(top_srcdir)/addressbook                             \
10         -I$(top_builddir)/addressbook                           \
11         -DSRCDIR=\""$(srcdir)"\"                                \
12         $(EVOLUTION_ADDRESSBOOK_CFLAGS)                         \
13         $(CAMEL_CFLAGS)                                         \
14         $(NULL)
15
16 libclient_test_utils_la_LIBADD =                                \
17         $(top_builddir)/addressbook/libebook/libebook-1.2.la    \
18         $(EVOLUTION_ADDRESSBOOK_LIBS)                           \
19         $(CAMEL_LIBS)                                           \
20         $(NULL)
21
22 # Should be kept ordered approximately from least to most difficult/complex
23 TESTS =                                                         \
24         test-client-remove                                      \
25         test-client-examine                                     \
26         test-client-refresh                                     \
27         test-client-add-contact                                 \
28         test-client-get-contact                                 \
29         test-client-custom-summary                              \
30         test-client-get-revision                                \
31         test-client-get-view                                    \
32         test-client-uid-only-view                               \
33         test-client-revision-view                               \
34         test-client-suppress-notifications                      \
35         test-client-modify-contact                              \
36         test-client-remove-contact                              \
37         test-client-remove-contact-by-uid                       \
38         test-client-remove-contacts                             \
39         test-client-photo-is-uri                                \
40         test-client-stress-factory--serial                      \
41         test-client-stress-factory--fifo                        \
42         test-client-stress-factory--single-book                 \
43         $(NULL)
44
45 noinst_PROGRAMS =                                               \
46         $(TESTS)                                                \
47         test-client                                             \
48         test-client-async                                       \
49         test-client-nonexistent-id                              \
50         test-client-search                                      \
51         test-client-self                                        \
52         test-client-stress-views                                \
53         $(NULL)
54
55 TEST_CPPFLAGS =                                                 \
56         $(libclient_test_utils_la_CPPFLAGS)                     \
57         $(EVOLUTION_ADDRESSBOOK_CPPFLAGS)                       \
58         $(NULL)
59
60 TEST_LIBS =                                                     \
61         $(libclient_test_utils_la_LIBS)                         \
62         libclient-test-utils.la                                 \
63         $(top_builddir)/addressbook/libebook/libebook-1.2.la    \
64         $(EVOLUTION_ADDRESSBOOK_LIBS)                           \
65         $(NULL)
66         
67 RUN_WITH_PRIVATE_BUS = $(top_srcdir)/tests/tools/with-session-bus-eds.sh
68
69 TESTS_ENVIRONMENT = \
70         $(RUN_WITH_PRIVATE_BUS) \
71         --session \
72         --
73
74 test_client_LDADD=$(TEST_LIBS)
75 test_client_CPPFLAGS=$(TEST_CPPFLAGS)
76 test_client_async_LDADD=$(TEST_LIBS)
77 test_client_async_CPPFLAGS=$(TEST_CPPFLAGS)
78 test_client_add_contact_LDADD=$(TEST_LIBS)
79 test_client_add_contact_CPPFLAGS=$(TEST_CPPFLAGS)
80 test_client_examine_LDADD=$(TEST_LIBS)
81 test_client_examine_CPPFLAGS=$(TEST_CPPFLAGS)
82 test_client_get_contact_LDADD=$(TEST_LIBS)
83 test_client_get_contact_CPPFLAGS=$(TEST_CPPFLAGS)
84 test_client_custom_summary_LDADD=$(TEST_LIBS)
85 test_client_custom_summary_CPPFLAGS=$(TEST_CPPFLAGS)
86 test_client_get_revision_LDADD=$(TEST_LIBS)
87 test_client_get_revision_CPPFLAGS=$(TEST_CPPFLAGS)
88 test_client_get_view_LDADD=$(TEST_LIBS)
89 test_client_get_view_CPPFLAGS=$(TEST_CPPFLAGS)
90 test_client_uid_only_view_LDADD=$(TEST_LIBS)
91 test_client_uid_only_view_CPPFLAGS=$(TEST_CPPFLAGS)
92 test_client_revision_view_LDADD=$(TEST_LIBS)
93 test_client_revision_view_CPPFLAGS=$(TEST_CPPFLAGS)
94 test_client_suppress_notifications_LDADD=$(TEST_LIBS)
95 test_client_suppress_notifications_CPPFLAGS=$(TEST_CPPFLAGS)
96 test_client_modify_contact_LDADD=$(TEST_LIBS)
97 test_client_modify_contact_CPPFLAGS=$(TEST_CPPFLAGS)
98 test_client_refresh_LDADD=$(TEST_LIBS)
99 test_client_refresh_CPPFLAGS=$(TEST_CPPFLAGS)
100 test_client_remove_LDADD=$(TEST_LIBS)
101 test_client_remove_CPPFLAGS=$(TEST_CPPFLAGS)
102 test_client_remove_contact_LDADD=$(TEST_LIBS)
103 test_client_remove_contact_CPPFLAGS=$(TEST_CPPFLAGS)
104 test_client_remove_contact_by_uid_LDADD=$(TEST_LIBS)
105 test_client_remove_contact_by_uid_CPPFLAGS=$(TEST_CPPFLAGS)
106 test_client_remove_contacts_LDADD=$(TEST_LIBS)
107 test_client_remove_contacts_CPPFLAGS=$(TEST_CPPFLAGS)
108 test_client_photo_is_uri_LDADD=$(TEST_LIBS)
109 test_client_photo_is_uri_CPPFLAGS=$(TEST_CPPFLAGS)
110 test_client_stress_factory__fifo_LDADD=$(TEST_LIBS)
111 test_client_stress_factory__fifo_CPPFLAGS=$(TEST_CPPFLAGS)
112 test_client_stress_factory__serial_LDADD=$(TEST_LIBS)
113 test_client_stress_factory__serial_CPPFLAGS=$(TEST_CPPFLAGS)
114 test_client_stress_factory__single_book_LDADD=$(TEST_LIBS)
115 test_client_stress_factory__single_book_CPPFLAGS=$(TEST_CPPFLAGS)
116 test_client_nonexistent_id_LDADD=$(TEST_LIBS)
117 test_client_nonexistent_id_CPPFLAGS=$(TEST_CPPFLAGS)
118 test_client_search_LDADD=$(TEST_LIBS)
119 test_client_search_CPPFLAGS=$(TEST_CPPFLAGS)
120 test_client_self_LDADD=$(TEST_LIBS)
121 test_client_self_CPPFLAGS=$(TEST_CPPFLAGS)
122 test_client_stress_views_LDADD=$(TEST_LIBS)
123 test_client_stress_views_CPPFLAGS=$(TEST_CPPFLAGS)
124
125 -include $(top_srcdir)/git.mk