dnl is invoked by LT_INIT (at least I think that's how it works).
GNOME_CODE_COVERAGE
+dnl Add the option install unit tests
+EDS_INSTALLED_TESTS
+
dnl ******************************
dnl Gtk Doc stuff
dnl ******************************
Examples: $enable_examples
Code coverage (gcov): $enable_code_coverage
Strict building: $enable_strict
+ Installed tests: $enable_installed_tests
"
cursor_example_CFLAGS =
cursor_example_LDFLAGS = \
$(top_builddir)/addressbook/libebook/libebook-1.2.la \
- $(top_builddir)/tests/test-server-utils/libetestserverutils.la \
+ $(top_builddir)/addressbook/libebook-contacts/libebook-contacts-1.2.la \
+ $(top_builddir)/libedataserver/libedataserver-1.2.la \
$(top_builddir)/private/libedbus-private.la \
$(EVOLUTION_ADDRESSBOOK_LIBS) \
$(EXAMPLES_LIBS) $(CAMEL_LIBS) \
noinst_PROGRAMS = $(TESTS)
-include $(top_srcdir)/git.mk
+
+#####################################
+# Optionally Install Tests #
+#####################################
+@EDS_INSTALLED_TESTS_RULE@
+INSTALLED_TESTS = $(TESTS)
+INSTALLED_TESTS_TYPE = session-exclusive
+INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"
test_ebook_remove_contacts_CPPFLAGS=$(TEST_CPPFLAGS)
-include $(top_srcdir)/git.mk
+
+#####################################
+# Optionally Install Tests #
+#####################################
+@EDS_INSTALLED_TESTS_RULE@
+INSTALLED_TESTS = $(TESTS)
+INSTALLED_TESTS_TYPE = session-exclusive
+INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"
test_client_cursor_operations_CPPFLAGS=$(TEST_CPPFLAGS)
-include $(top_srcdir)/git.mk
+
+#####################################
+# Optionally Install Tests #
+#####################################
+@EDS_INSTALLED_TESTS_RULE@
+
+# Here we list all the $(TESTS) except
+# for test-client-cursor-operations, that
+# test requires that we set the locale
+# on the system bus, or set EDS_TESTING=1
+# both in the test environment AND the D-Bus
+# session environment.
+#
+# test-client-self also fails for some reason
+# when running installed, not sure why.
+INSTALLED_TESTS = \
+ test-client-refresh \
+ test-client-add-contact \
+ test-client-get-contact \
+ test-client-get-contact-uids \
+ test-client-modify-contact \
+ test-client-remove-contact \
+ test-client-remove-contact-by-uid \
+ test-client-remove-contacts \
+ test-client-add-and-get-sync \
+ test-client-add-and-get-async \
+ test-client-preserve-uid \
+ test-client-photo-is-uri \
+ test-client-e164-param \
+ test-client-custom-summary \
+ test-client-get-revision \
+ test-client-write-write \
+ test-client-get-view \
+ test-client-uid-only-view \
+ test-client-revision-view \
+ test-client-view-operations \
+ test-client-suppress-notifications \
+ test-client-cursor-create \
+ $(NULL)
+
+INSTALLED_TESTS_TYPE = session-exclusive
+INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"
test_ecal_set_default_timezone_CPPFLAGS=$(TEST_ECAL_CPPFLAGS)
-include $(top_srcdir)/git.mk
+
+#####################################
+# Optionally Install Tests #
+#####################################
+@EDS_INSTALLED_TESTS_RULE@
+INSTALLED_TESTS = $(TESTS)
+INSTALLED_TESTS_TYPE = session-exclusive
+INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"
TEST_LIBS = \
$(top_builddir)/calendar/libecal/libecal-1.2.la \
$(top_builddir)/tests/test-server-utils/libetestserverutils.la \
+ $(top_builddir)/libedataserver/libedataserver-1.2.la \
$(EVOLUTION_CALENDAR_LIBS) \
$(CAMEL_LIBS) \
$(NULL)
test_client_send_objects_CPPFLAGS=$(TEST_CPPFLAGS)
-include $(top_srcdir)/git.mk
+
+#####################################
+# Optionally Install Tests #
+#####################################
+@EDS_INSTALLED_TESTS_RULE@
+INSTALLED_TESTS = $(TESTS)
+INSTALLED_TESTS_TYPE = session-exclusive
+INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"
test_sqlite_cursor_change_locale_LDADD=$(TEST_LIBS)
test_sqlite_cursor_change_locale_CPPFLAGS=$(TEST_CPPFLAGS)
+#####################################
+# Optionally Install Tests #
+#####################################
+@EDS_INSTALLED_TESTS_RULE@
+INSTALLED_TESTS = $(TESTS)
+INSTALLED_TESTS_TYPE = session-exclusive
+INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"
+
-include $(top_srcdir)/git.mk
endif
-include $(top_srcdir)/git.mk
+
+#####################################
+# Optionally Install Tests #
+#####################################
+@EDS_INSTALLED_TESTS_RULE@
+INSTALLED_TESTS = $(TESTS)
+INSTALLED_TESTS_TYPE = session-exclusive
+INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"
######################################
# Utility Library #
######################################
+if EDS_INSTALLED_TESTS_ENABLED
+lib_LTLIBRARIES = libetestserverutils.la
+else
noinst_LTLIBRARIES = libetestserverutils.la
+endif
libetestserverutils_la_CPPFLAGS = $(common_cflags)
libetestserverutils_la_LIBADD = $(common_libs)
-rm -rf $(abs_top_builddir)/tests/test-server-utils/cache
-include $(top_srcdir)/git.mk
+
+#####################################
+# Optionally Install Tests #
+#####################################
+@EDS_INSTALLED_TESTS_RULE@
+INSTALLED_TESTS = $(TESTS)
+INSTALLED_TESTS_TYPE = session-exclusive
+INSTALLED_TESTS_ENVIRONMENT = "TEST_INSTALLED_SERVICES=1"