[tracker/gdbus] tests: libtracker-common: Revive the parts of the Unit test that still work



commit 9d86f39f56430aaca40bc3a3ab6aeed21a9dd32d
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Jan 14 15:52:07 2011 +0100

    tests: libtracker-common: Revive the parts of the Unit test that still work
    
    The other parts need to see the mock objects be ported to GDBus first

 tests/libtracker-common/Makefile.am         |   11 +++--------
 tests/libtracker-common/tracker-dbus-test.c |   12 ++++++++----
 2 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/tests/libtracker-common/Makefile.am b/tests/libtracker-common/Makefile.am
index 104ccc6..f6e0467 100644
--- a/tests/libtracker-common/Makefile.am
+++ b/tests/libtracker-common/Makefile.am
@@ -4,12 +4,10 @@ noinst_PROGRAMS = $(TEST_PROGS)
 
 TEST_PROGS +=                                          \
 	tracker-type-utils                             \
+	tracker-dbus                                   \
 	tracker-file-utils                             \
 	tracker-utils
 
-# Disabled test until the mock objects are ported to gdbus
-#       tracker-dbus
-
 AM_CPPFLAGS =                                          \
 	$(BUILD_CFLAGS)                                \
 	-I$(top_srcdir)/src                            \
@@ -24,11 +22,8 @@ LDADD =                                                \
 	$(LIBTRACKER_COMMON_LIBS)                      \
 	$(TRACKER_DBUS_LIBS)
 
-#tracker_dbus_SOURCES =                                 \
-#	tracker-dbus-test.c                            \
-#	mock-dbus.c                                    \
-#	mock-dbus-gproxy.h                             \
-#	mock-dbus-gproxy.c
+tracker_dbus_SOURCES =                                 \
+	tracker-dbus-test.c                            
 
 tracker_type_utils_SOURCES = tracker-type-utils-test.c
 
diff --git a/tests/libtracker-common/tracker-dbus-test.c b/tests/libtracker-common/tracker-dbus-test.c
index 35b6142..71e211e 100644
--- a/tests/libtracker-common/tracker-dbus-test.c
+++ b/tests/libtracker-common/tracker-dbus-test.c
@@ -152,7 +152,7 @@ test_dbus_request ()
 	g_test_trap_assert_passed ();
 	g_test_trap_assert_stdout ("*Success*");
 }
-
+#if 0
 static void
 test_dbus_request_client_lookup ()
 {
@@ -281,6 +281,7 @@ test_dbus_request_failed_coverage ()
 
 	g_test_trap_assert_passed ();
 }
+#endif
 
 int
 main (int argc, char **argv) {
@@ -304,15 +305,18 @@ main (int argc, char **argv) {
 	                 test_slist_to_strv);
 	g_test_add_func ("/libtracker-common/tracker-dbus/request",
 	                 test_dbus_request);
-	g_test_add_func ("/libtracker-common/tracker-dbus/request-client-lookup",
+/* port to gdbus first
+	 g_test_add_func ("/libtracker-common/tracker-dbus/request-client-lookup",
 	                 test_dbus_request_client_lookup);
+
 	g_test_add_func ("/libtracker-common/tracker-dbus/request-client-lookup",
 	                 test_dbus_request_client_lookup_monothread);
+*/
 	g_test_add_func ("/libtracker-common/tracker-dbus/request_failed",
 	                 test_dbus_request_failed);
-	g_test_add_func ("/libtracker-common/tracker-dbus/request_failed_coverage",
+/*	g_test_add_func ("/libtracker-common/tracker-dbus/request_failed_coverage",
 	                 test_dbus_request_failed_coverage);
-
+*/
 	result = g_test_run ();
 
 	tracker_test_helpers_free_nonutf8 ();



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