summaryrefslogtreecommitdiff
path: root/addressbook/tests/ebook/Makefile.am
blob: cf04e2d758c1d1f6b8bec03dc0699cf16800da24 (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
noinst_LTLIBRARIES = libebook-test-utils.la
libebook_test_utils_la_SOURCES = ebook-test-utils.c ebook-test-utils.h

# FIXME: reduct redundancy
libebook_test_utils_la_CPPFLAGS = \
        $(AM_CPPFLAGS)                  \
        -I$(top_srcdir)                 \
        -I$(top_builddir)               \
        -I$(top_srcdir)/addressbook     \
        -I$(top_builddir)/addressbook   \
        $(EVOLUTION_ADDRESSBOOK_CFLAGS) \
	$(NULL)

libebook_test_utils_la_LIBADD = \
	$(top_builddir)/addressbook/libebook/libebook-1.2.la	\
	$(EVOLUTION_ADDRESSBOOK_LIBS)                           \
	$(NULL)

TEST_LIBS =							\
	$(libebook_test_utils_la_LIBADD) \
	libebook-test-utils.la	         \
	$(NULL)

# Should be kept ordered approximately from least to most difficult/complex
TESTS = \
	test-ebook-remove			     \
	test-ebook-get-required-fields		     \
	test-ebook-get-static-capabilities	     \
	test-ebook-get-supported-fields		     \
	test-ebook-get-supported-auth-methods	     \
	test-ebook-add-contact			     \
	test-ebook-get-contact			     \
	test-ebook-get-book-view		     \
	test-ebook-commit-contact		     \
	test-ebook-remove-contact		     \
	test-ebook-remove-contact-by-id		     \
	test-ebook-remove-contacts		     \
	test-ebook-stress-factory--serial	     \
	test-ebook-stress-factory--fifo		     \
	test-ebook-stress-factory--single-book	     \
	$(NULL)

noinst_PROGRAMS = \
	$(TESTS)				     \
	test-changes				     \
	test-categories				     \
	test-date				     \
	test-ebook				     \
	test-ebook-async			     \
	test-nonexistent-id			     \
	test-photo				     \
	test-query				     \
	test-self				     \
	test-string				     \
	test-undefinedfield			     \
	test-untyped-phones			     \
	test-search				     \
	test-stress-bookviews			     \
	$(NULL)

TEST_CPPFLAGS= \
	$(libebook_test_utils_la_CPPFLAGS) \
	$(NULL)

test_search_LDADD=$(TEST_LIBS)
test_search_CPPFLAGS=$(TEST_CPPFLAGS)
test_date_LDADD=$(TEST_LIBS)
test_date_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_LDADD=$(TEST_LIBS)
test_ebook_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_async_LDADD=$(TEST_LIBS)
test_ebook_async_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_add_contact_LDADD=$(TEST_LIBS)
test_ebook_add_contact_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_commit_contact_LDADD=$(TEST_LIBS)
test_ebook_commit_contact_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_get_book_view_LDADD=$(TEST_LIBS)
test_ebook_get_book_view_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_get_contact_LDADD=$(TEST_LIBS)
test_ebook_get_contact_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_get_required_fields_LDADD=$(TEST_LIBS)
test_ebook_get_required_fields_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_get_static_capabilities_LDADD=$(TEST_LIBS)
test_ebook_get_static_capabilities_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_get_supported_auth_methods_LDADD=$(TEST_LIBS)
test_ebook_get_supported_auth_methods_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_get_supported_fields_LDADD=$(TEST_LIBS)
test_ebook_get_supported_fields_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_remove_LDADD=$(TEST_LIBS)
test_ebook_remove_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_remove_contact_LDADD=$(TEST_LIBS)
test_ebook_remove_contact_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_remove_contact_by_id_LDADD=$(TEST_LIBS)
test_ebook_remove_contact_by_id_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_remove_contacts_LDADD=$(TEST_LIBS)
test_ebook_remove_contacts_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_stress_factory__fifo_LDADD=$(TEST_LIBS)
test_ebook_stress_factory__fifo_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_stress_factory__serial_LDADD=$(TEST_LIBS)
test_ebook_stress_factory__serial_CPPFLAGS=$(TEST_CPPFLAGS)
test_ebook_stress_factory__single_book_LDADD=$(TEST_LIBS)
test_ebook_stress_factory__single_book_CPPFLAGS=$(TEST_CPPFLAGS)
test_changes_LDADD=$(TEST_LIBS)
test_changes_CPPFLAGS=$(TEST_CPPFLAGS)
test_categories_LDADD=$(TEST_LIBS)
test_categories_CPPFLAGS=$(TEST_CPPFLAGS)
test_nonexistent_id_LDADD=$(TEST_LIBS)
test_nonexistent_id_CPPFLAGS=$(TEST_CPPFLAGS)
test_photo_LDADD=$(TEST_LIBS)
test_photo_CPPFLAGS=$(TEST_CPPFLAGS)
test_query_LDADD=$(TEST_LIBS)
test_query_CPPFLAGS=$(TEST_CPPFLAGS)
test_self_LDADD=$(TEST_LIBS)
test_self_CPPFLAGS=$(TEST_CPPFLAGS)
test_string_LDADD=$(TEST_LIBS)
test_string_CPPFLAGS=$(TEST_CPPFLAGS)
test_undefinedfield_LDADD=$(TEST_LIBS)
test_undefinedfield_CPPFLAGS=$(TEST_CPPFLAGS)
test_untyped_phones_LDADD=$(TEST_LIBS)
test_untyped_phones_CPPFLAGS=$(TEST_CPPFLAGS)
test_stress_bookviews_LDADD=$(TEST_LIBS)
test_stress_bookviews_CPPFLAGS=$(TEST_CPPFLAGS)

-include $(top_srcdir)/git.mk