[tracker] libtracker-miner: Added initial tracker-monitor test cases
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Added initial tracker-monitor test cases
- Date: Wed, 24 Mar 2010 18:30:47 +0000 (UTC)
commit 9209c434f5b450bdb13542ef1ba70fd28a50adf9
Author: Martyn Russell <martyn lanedo com>
Date: Wed Mar 24 18:29:49 2010 +0000
libtracker-miner: Added initial tracker-monitor test cases
Need to add support for events next, basic API is tested
src/libtracker-miner/Makefile.am | 2 +-
tests/libtracker-miner/Makefile.am | 83 +++++++++++++++++-------------------
2 files changed, 40 insertions(+), 45 deletions(-)
---
diff --git a/src/libtracker-miner/Makefile.am b/src/libtracker-miner/Makefile.am
index ecc5596..3ede9de 100644
--- a/src/libtracker-miner/Makefile.am
+++ b/src/libtracker-miner/Makefile.am
@@ -64,7 +64,7 @@ libtracker_minerinclude_HEADERS = \
libtracker_miner_ TRACKER_API_VERSION@_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -export-symbols-regex '^tracker_(miner|thumbnailer|crawler|storage|password_provider)_.*'
+ -export-symbols-regex '^tracker_.*'
libtracker_miner_ TRACKER_API_VERSION@_la_LIBADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
diff --git a/tests/libtracker-miner/Makefile.am b/tests/libtracker-miner/Makefile.am
index f99f5f2..84c443c 100644
--- a/tests/libtracker-miner/Makefile.am
+++ b/tests/libtracker-miner/Makefile.am
@@ -2,26 +2,15 @@ include $(top_srcdir)/Makefile.decl
noinst_PROGRAMS = $(TEST_PROGS)
-TEST_PROGS += \
- tracker-crawler \
- tracker-miner-manager \
+TEST_PROGS += \
+ tracker-monitor-test \
+ tracker-crawler-test \
+ tracker-miner-manager-test \
tracker-password-provider-test \
tracker-thumbnailer-test
-commonlibs = \
- $(top_builddir)/src/libtracker-client/libtracker-client- TRACKER_API_VERSION@.la \
- $(top_builddir)/src/libtracker-miner/libtracker-miner-0.7.la \
- $(top_builddir)/src/libtracker-common/libtracker-common.la \
- $(DBUS_LIBS) \
- $(GCOV_LIBS) \
- $(GMODULE_LIBS) \
- $(GTHREAD_LIBS) \
- $(GIO_LIBS) \
- $(GLIB2_LIBS)
-
-INCLUDES = \
+INCLUDES = \
-DTEST \
- -DTRACKER_MINER_COMPILATION \
-DG_LOG_DOMAIN=\"Tracker\" \
-DPKGLIBDIR=\""$(libdir)/tracker-$(TRACKER_API_VERSION)"\" \
-DLIBEXEC_PATH=\""$(libexecdir)"\" \
@@ -40,55 +29,61 @@ INCLUDES = \
$(PANGO_CFLAGS) \
$(DBUS_CFLAGS)
-BUILT_SOURCES = libtracker-miner-testing.vala.stamp
+LIBS = \
+ $(top_builddir)/src/libtracker-client/libtracker-client- TRACKER_API_VERSION@.la \
+ $(top_builddir)/src/libtracker-miner/libtracker-miner- TRACKER_API_VERSION@.la \
+ $(top_builddir)/src/libtracker-common/libtracker-common.la \
+ $(DBUS_LIBS) \
+ $(GCOV_LIBS) \
+ $(GMODULE_LIBS) \
+ $(GTHREAD_LIBS) \
+ $(GIO_LIBS) \
+ $(GLIB2_LIBS)
-tracker_crawler_SOURCES = \
- tracker-crawler-test.c
+tracker_monitor_test_SOURCES = \
+ tracker-monitor-test.c
-tracker_crawler_LDADD = $(commonlibs)
+tracker_crawler_test_SOURCES = \
+ tracker-crawler-test.c
-tracker_thumbnailer_test_SOURCES = \
+tracker_thumbnailer_test_SOURCES = \
tracker-thumbnailer-test.c \
thumbnailer-mock.h \
thumbnailer-mock.c \
empty-gobject.h \
empty-gobject.c
-tracker_thumbnailer_test_LDADD = $(commonlibs)
-
-tracker_miner_manager_VALASOURCES = \
+tracker_miner_manager_test_VALASOURCES = \
tracker-miner-mock.vala
-tracker_miner_manager_SOURCES = \
+tracker_miner_manager_test_SOURCES = \
tracker-miner-manager-test.c \
miners-mock.c \
miners-mock.h \
- $(tracker_miner_manager_VALASOURCES:.vala=.c) \
- $(tracker_miner_manager_VALASOURCES:.vala=.h) \
+ $(tracker_miner_manager_test_VALASOURCES:.vala=.c) \
+ $(tracker_miner_manager_test_VALASOURCES:.vala=.h) \
empty-gobject.h \
empty-gobject.c
-tracker_miner_manager_LDADD = $(commonlibs)
-
-tracker_password_provider_test_SOURCES = \
+tracker_password_provider_test_SOURCES = \
tracker-password-provider-test.c
-tracker_password_provider_test_LDADD = $(commonlibs)
-
-libtracker-miner-testing.vala.stamp: $(tracker_miner_manager_VALASOURCES)
+libtracker-miner-test.vala.stamp: $(tracker_miner_manager_test_VALASOURCES)
$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) --pkg glib-2.0 -C $(VALAFLAGS) -H $(<:.vala=.h) $<
touch $@
-MAINTAINERCLEANFILES = \
- libtracker-miner-testing.vala.stamp \
- $(tracker_miner_manager_VALASOURCES:.vala=.c)
+BUILT_SOURCES = libtracker-miner-test.vala.stamp
+
+MAINTAINERCLEANFILES = \
+ libtracker-miner-test.vala.stamp \
+ $(tracker_miner_manager_test_VALASOURCES:.vala=.c)
-EXTRA_DIST = $(tracker_miner_manager_VALASOURCES) \
- libtracker-miner-testing.vala.stamp \
- data/empty-dir/.hidden \
- data/file1 \
- data/dir/empty-dir/.hidden \
- data/dir/file1 \
- data/dir/file2 \
- mock-miners/mock-miner-1.desktop \
+EXTRA_DIST = $(tracker_miner_manager_test_VALASOURCES) \
+ libtracker-miner-test.vala.stamp \
+ data/empty-dir/.hidden \
+ data/file1 \
+ data/dir/empty-dir/.hidden \
+ data/dir/file1 \
+ data/dir/file2 \
+ mock-miners/mock-miner-1.desktop \
mock-miners/mock-miner-2.desktop
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]