Makefile.am cleanups.
[platform/upstream/evolution-data-server.git] / tests / libedata-book / Makefile.am
1
2 noinst_LTLIBRARIES = libdata-test-utils.la
3
4 libdata_test_utils_la_SOURCES = \
5         data-test-utils.c \
6         data-test-utils.h \
7         $(NULL)
8
9 libdata_test_utils_la_CPPFLAGS = \
10         $(AM_CPPFLAGS) \
11         -I$(top_srcdir) \
12         -I$(top_builddir) \
13         -I$(top_srcdir)/addressbook \
14         -I$(top_builddir)/addressbook \
15         -I$(top_srcdir)/calendar \
16         -I$(top_builddir)/calendar \
17         -I$(top_srcdir)/tests/libedataserver \
18         -I$(top_builddir)/tests/libedataserver \
19         -I$(top_srcdir)/tests/test-server-utils \
20         -I$(top_builddir)/tests/test-server-utils \
21         -I$(top_srcdir)/private \
22         -I$(top_builddir)/private \
23         -DBACKENDDIR=\"$(ebook_backenddir)\" \
24         -DDATADIR=\"$(datadir)\" \
25         -DSRCDIR=\""$(abs_srcdir)"\" \
26         -DBUILDDIR=\""$(abs_topbuilddir)"\" \
27         $(EVOLUTION_ADDRESSBOOK_CFLAGS) \
28         $(EVOLUTION_CALENDAR_CFLAGS) \
29         $(GIO_UNIX_CFLAGS) \
30         $(CAMEL_CFLAGS) \
31         $(NULL)
32
33 libdata_test_utils_la_LIBADD = \
34         $(top_builddir)/addressbook/libebook-contacts/libebook-contacts-1.2.la \
35         $(top_builddir)/addressbook/libedata-book/libedata-book-1.2.la \
36         $(top_builddir)/addressbook/libebook/libebook-1.2.la \
37         $(top_builddir)/tests/test-server-utils/libetestserverutils.la \
38         $(top_builddir)/private/libedbus-private.la \
39         $(EVOLUTION_ADDRESSBOOK_LIBS) \
40         $(EVOLUTION_CALENDAR_LIBS) \
41         $(GIO_UNIX_LIBS) \
42         $(CAMEL_LIBS) \
43         $(NULL)
44
45 # Should be kept ordered approximately from least to most difficult/complex
46 #
47 # Note that these tests must be run in order:
48 #   test-sqlite-cursor-posix-initial,
49 #   test-sqlite-cursor-en-US-migrated,
50 #   test-sqlite-cursor-posix-migrated
51 #
52 # This is because each migrated test changes the
53 # locale and reloads the same addressbook of the previous test. 
54 TESTS = \
55         test-sqlite-get-contact \
56         test-sqlite-create-cursor \
57         test-sqlite-cursor-move-by-posix \
58         test-sqlite-cursor-move-by-en-US \
59         test-sqlite-cursor-move-by-fr-CA \
60         test-sqlite-cursor-move-by-de-DE \
61         test-sqlite-cursor-set-target \
62         test-sqlite-cursor-calculate \
63         test-sqlite-cursor-set-sexp \
64         test-sqlite-cursor-posix-initial \
65         test-sqlite-cursor-en-US-migrated \
66         test-sqlite-cursor-fr-CA-migrated \
67         test-sqlite-cursor-de-DE-migrated \
68         test-sqlite-cursor-posix-migrated \
69         test-sqlite-cursor-change-locale
70
71 noinst_PROGRAMS = $(TESTS)
72
73 TEST_CPPFLAGS = \
74         $(libdata_test_utils_la_CPPFLAGS) \
75         $(EVOLUTION_ADDRESSBOOK_CPPFLAGS) \
76         $(NULL)
77
78 TEST_LIBS = \
79         $(libdata_test_utils_la_LIBADD) \
80         libdata-test-utils.la \
81         $(top_builddir)/addressbook/libebook/libebook-1.2.la \
82         $(EVOLUTION_ADDRESSBOOK_LIBS) \
83         $(NULL)
84
85 test_sqlite_get_contact_LDADD=$(TEST_LIBS)
86 test_sqlite_get_contact_CPPFLAGS=$(TEST_CPPFLAGS)
87 test_sqlite_create_cursor_LDADD=$(TEST_LIBS)
88 test_sqlite_create_cursor_CPPFLAGS=$(TEST_CPPFLAGS)
89 test_sqlite_cursor_move_by_posix_LDADD=$(TEST_LIBS)
90 test_sqlite_cursor_move_by_posix_CPPFLAGS=$(TEST_CPPFLAGS)
91 test_sqlite_cursor_move_by_en_US_LDADD=$(TEST_LIBS)
92 test_sqlite_cursor_move_by_en_US_CPPFLAGS=$(TEST_CPPFLAGS)
93 test_sqlite_cursor_move_by_fr_CA_LDADD=$(TEST_LIBS)
94 test_sqlite_cursor_move_by_fr_CA_CPPFLAGS=$(TEST_CPPFLAGS)
95 test_sqlite_cursor_move_by_de_DE_LDADD=$(TEST_LIBS)
96 test_sqlite_cursor_move_by_de_DE_CPPFLAGS=$(TEST_CPPFLAGS)
97 test_sqlite_cursor_set_target_LDADD=$(TEST_LIBS)
98 test_sqlite_cursor_set_target_CPPFLAGS=$(TEST_CPPFLAGS)
99 test_sqlite_cursor_calculate_LDADD=$(TEST_LIBS)
100 test_sqlite_cursor_calculate_CPPFLAGS=$(TEST_CPPFLAGS)
101 test_sqlite_cursor_set_sexp_LDADD=$(TEST_LIBS)
102 test_sqlite_cursor_set_sexp_CPPFLAGS=$(TEST_CPPFLAGS)
103 test_sqlite_cursor_posix_initial_LDADD=$(TEST_LIBS)
104 test_sqlite_cursor_posix_initial_CPPFLAGS=$(TEST_CPPFLAGS)
105 test_sqlite_cursor_en_US_migrated_LDADD=$(TEST_LIBS)
106 test_sqlite_cursor_en_US_migrated_CPPFLAGS=$(TEST_CPPFLAGS)
107 test_sqlite_cursor_fr_CA_migrated_LDADD=$(TEST_LIBS)
108 test_sqlite_cursor_fr_CA_migrated_CPPFLAGS=$(TEST_CPPFLAGS)
109 test_sqlite_cursor_de_DE_migrated_LDADD=$(TEST_LIBS)
110 test_sqlite_cursor_de_DE_migrated_CPPFLAGS=$(TEST_CPPFLAGS)
111 test_sqlite_cursor_posix_migrated_LDADD=$(TEST_LIBS)
112 test_sqlite_cursor_posix_migrated_CPPFLAGS=$(TEST_CPPFLAGS)
113 test_sqlite_cursor_change_locale_LDADD=$(TEST_LIBS)
114 test_sqlite_cursor_change_locale_CPPFLAGS=$(TEST_CPPFLAGS)
115
116 -include $(top_srcdir)/git.mk