[tracker/rss-enclosures] functional-tests: Fixed build for ipc/ tests



commit d4688305312f19e2902ec9c7ee63e4f642c31743
Author: Martyn Russell <martyn lanedo com>
Date:   Wed Nov 10 15:55:31 2010 +0000

    functional-tests: Fixed build for ipc/ tests
    
    Now we need to link with D-Bus where we actually use those APIs still
    for testing purposes.

 tests/functional-tests/ipc/Makefile.am |   35 ++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/ipc/Makefile.am b/tests/functional-tests/ipc/Makefile.am
index 8da9f8e..fe21120 100644
--- a/tests/functional-tests/ipc/Makefile.am
+++ b/tests/functional-tests/ipc/Makefile.am
@@ -1,5 +1,13 @@
 include $(top_srcdir)/Makefile.decl
 
+# Note: Even though we now use GDBus, we still link with
+# dbus-glib-1 for some of the below tests because we use
+# their raw APIs to test with, specifically:
+#
+#   test-busy-handling
+#   test-class-signal
+#   test-class-signal-performance
+#
 noinst_PROGRAMS =                                      \
 	test-busy-handling                             \
 	test-direct-query                              \
@@ -32,6 +40,15 @@ LDADD =                                                \
 
 test_busy_handling_SOURCES =                           \
 	test-busy-handling.vala
+test_busy_handling_CFLAGS =                            \
+	$(AM_CPPFLAGS)                                 \
+	$(TRACKER_DBUS_CFLAGS)
+test_busy_handling_VALAFLAGS =                         \
+	--pkg dbus-glib-1                              \
+	$(AM_VALAFLAGS)
+test_busy_handling_LDADD =                             \
+	$(LDADD)                                       \
+	$(TRACKER_DBUS_LIBS)
 
 test_direct_query_SOURCES =                            \
 	test-shared-query.vala                         \
@@ -54,6 +71,24 @@ test_bus_update_SOURCES =                              \
 
 test_class_signal_SOURCES =                            \
 	test-class-signal.vala
+test_class_signal_CFLAGS =                             \
+	$(AM_CPPFLAGS)                                 \
+	$(TRACKER_DBUS_CFLAGS)
+test_class_signal_VALAFLAGS =                          \
+	--pkg dbus-glib-1                              \
+	$(AM_VALAFLAGS)
+test_class_signal_LDADD =                              \
+	$(LDADD)                                       \
+	$(TRACKER_DBUS_LIBS)
 
 test_class_signal_performance_SOURCES =                \
 	test-class-signal-performance.vala
+test_class_signal_performance_CFLAGS =                 \
+	$(AM_CPPFLAGS)                                 \
+	$(TRACKER_DBUS_CFLAGS)
+test_class_signal_performance_VALAFLAGS =              \
+	--pkg dbus-glib-1                              \
+	$(AM_VALAFLAGS)
+test_class_signal_performance_LDADD =                  \
+	$(LDADD)                                       \
+	$(TRACKER_DBUS_LIBS)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]