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 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
|
SUBDIRS = vcard client
if HAVE_E_BOOK_DISABLE_DEPRECATED
TEST_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/addressbook \
-I$(top_builddir)/addressbook \
-DSRCDIR=\""$(srcdir)"\" \
$(EVOLUTION_ADDRESSBOOK_CFLAGS) \
$(NULL)
TEST_LIBS = \
$(top_builddir)/addressbook/libebook/libebook-1.2.la \
$(EVOLUTION_ADDRESSBOOK_LIBS) \
$(NULL)
DEPRECATED_TESTS = $(NULL)
else
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 \
-DSRCDIR=\""$(srcdir)"\" \
$(EVOLUTION_ADDRESSBOOK_CFLAGS) \
$(NULL)
libebook_test_utils_la_LIBADD = \
$(top_builddir)/addressbook/libebook/libebook-1.2.la \
$(EVOLUTION_ADDRESSBOOK_LIBS) \
$(NULL)
TEST_CPPFLAGS = \
$(libebook_test_utils_la_CPPFLAGS) \
$(NULL)
TEST_LIBS = \
$(libebook_test_utils_la_LIBADD) \
libebook-test-utils.la \
$(NULL)
DEPRECATED_TESTS = \
test-changes \
test-ebook \
test-ebook-async \
test-nonexistent-id \
test-search \
test-self \
test-stress-bookviews
endif
# Should be kept ordered approximately from least to most difficult/complex
TESTS = \
$(NULL)
# These tests are broken at the moment because the test fixture hacks
# the old "file://absolute/path/to/source-uid" URIs for local ESources.
# But local ESource URIs are now just "local:source-uid", so we need to
# figure out a different way to set up the test fixture.
# 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
noinst_PROGRAMS = \
$(TESTS) \
$(DEPRECATED_TESTS) \
test-categories \
test-date \
test-photo \
test-query \
test-string \
test-undefinedfield \
test-untyped-phones \
test-vcard-parsing \
test-bulk-methods \
$(NULL)
EXTRA_DIST = \
$(srcdir)/data/vcards/name-only.vcf \
$(srcdir)/data/vcards/simple-1.vcf \
$(srcdir)/data/vcards/simple-2.vcf \
$(NULL)
test_categories_LDADD=$(TEST_LIBS)
test_categories_CPPFLAGS=$(TEST_CPPFLAGS)
test_date_LDADD=$(TEST_LIBS)
test_date_CPPFLAGS=$(TEST_CPPFLAGS)
test_photo_LDADD=$(TEST_LIBS)
test_photo_CPPFLAGS=$(TEST_CPPFLAGS)
test_query_LDADD=$(TEST_LIBS)
test_query_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_vcard_parsing_LDADD=$(TEST_LIBS)
test_vcard_parsing_CPPFLAGS=$(TEST_CPPFLAGS)
test_bulk_methods_LDADD=$(TEST_LIBS)
test_bulk_methods_CPPFLAGS=$(TEST_CPPFLAGS)
if !HAVE_E_BOOK_DISABLE_DEPRECATED
test_search_LDADD=$(TEST_LIBS)
test_search_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_nonexistent_id_LDADD=$(TEST_LIBS)
test_nonexistent_id_CPPFLAGS=$(TEST_CPPFLAGS)
test_self_LDADD=$(TEST_LIBS)
test_self_CPPFLAGS=$(TEST_CPPFLAGS)
test_stress_bookviews_LDADD=$(TEST_LIBS)
test_stress_bookviews_CPPFLAGS=$(TEST_CPPFLAGS)
endif
-include $(top_srcdir)/git.mk
|