Use EDS_INSTALLED_TESTS macros to install tests
[platform/upstream/evolution-data-server.git] / tests / libebook-contacts / Makefile.am
1
2 @GNOME_CODE_COVERAGE_RULES@
3
4 NULL =
5
6 ### EBook Tests (deprecated) ###
7
8 TEST_CPPFLAGS = \
9         $(AM_CPPFLAGS) \
10         -I$(top_srcdir) \
11         -I$(top_builddir) \
12         -I$(top_srcdir)/addressbook \
13         -I$(top_builddir)/addressbook \
14         -DSRCDIR=\""$(abs_srcdir)"\" \
15         $(EVOLUTION_ADDRESSBOOK_CFLAGS) \
16         $(CAMEL_CFLAGS) \
17         $(NULL)
18
19 TEST_LIBS = \
20         $(top_builddir)/addressbook/libebook-contacts/libebook-contacts-1.2.la \
21         $(EVOLUTION_ADDRESSBOOK_LIBS) \
22         $(CAMEL_LIBS) \
23         $(NULL)
24
25 # Should be kept ordered approximately from least to most difficult/complex
26 TESTS = \
27         test-contact-types \
28         test-vcard-parsing \
29         test-untyped-phones \
30         test-query \
31         test-phone-number \
32         $(NULL)
33
34 # test-bulk-methods
35
36 test_contact_types_LDADD=$(TEST_LIBS)
37 test_contact_types_CPPFLAGS=$(TEST_CPPFLAGS)
38 test_vcard_parsing_LDADD=$(TEST_LIBS)
39 test_vcard_parsing_CPPFLAGS=$(TEST_CPPFLAGS)
40 test_untyped_phones_LDADD=$(TEST_LIBS)
41 test_untyped_phones_CPPFLAGS=$(TEST_CPPFLAGS)
42 test_query_LDADD=$(TEST_LIBS)
43 test_query_CPPFLAGS=$(TEST_CPPFLAGS)
44 test_phone_number_LDADD=$(TEST_LIBS)
45 test_phone_number_CPPFLAGS=$(TEST_CPPFLAGS)
46
47 noinst_PROGRAMS = $(TESTS)
48
49 -include $(top_srcdir)/git.mk
50
51 #####################################
52 #     Optionally Install Tests      #
53 #####################################
54 @EDS_INSTALLED_TESTS_RULE@
55 INSTALLED_TESTS = $(TESTS)
56 INSTALLED_TESTS_TYPE = session-exclusive
57 INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"