[tracker/direct-access: 48/60] tests/functional-tests: Refactored the update tests



commit 3afa1c1fd7c05d9495c3980d9f7edc5bf81be8cb
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Jul 22 11:23:49 2010 +0200

    tests/functional-tests: Refactored the update tests

 tests/functional-tests/.gitignore               |    4 +-
 tests/functional-tests/Makefile.am              |   18 +++++-----
 tests/functional-tests/default-update-test.vala |    9 +++++
 tests/functional-tests/direct-update-test.vala  |   41 -----------------------
 4 files changed, 20 insertions(+), 52 deletions(-)
---
diff --git a/tests/functional-tests/.gitignore b/tests/functional-tests/.gitignore
index c8fef55..ea6303e 100644
--- a/tests/functional-tests/.gitignore
+++ b/tests/functional-tests/.gitignore
@@ -6,8 +6,8 @@ direct-query-test
 direct-query-test.c
 bus-update-test
 bus-update-test.c
-direct-update-test
-direct-update-test.c
+default-update-test
+default-update-test.c
 ttl
 force-sqlite-misused-batch.sh
 force-sqlite-misused.sh
diff --git a/tests/functional-tests/Makefile.am b/tests/functional-tests/Makefile.am
index 8e0cbfe..724c4a2 100644
--- a/tests/functional-tests/Makefile.am
+++ b/tests/functional-tests/Makefile.am
@@ -54,7 +54,7 @@ bashscripts_SCRIPTS = 				\
 	@sed -e "s|@topsrcdir[ ]|${top_srcdir}|" \
 	     -e "s|@libexecdir[ ]|${libexecdir}|" $< > $@
 
-noinst_PROGRAMS = busy-handling-test direct-query-test bus-query-test direct-update-test bus-update-test
+noinst_PROGRAMS = busy-handling-test direct-query-test bus-query-test default-update-test bus-update-test
 
 busy_handling_test_VALASOURCES = busy-handling-test.vala
 
@@ -111,11 +111,11 @@ direct_query_test_SOURCES = \
 	direct_query_test.vala.stamp \
 	$(direct_query_test_VALASOURCES:.vala=.c)
 
-direct_update_test_VALASOURCES = direct-update-test.vala
+default_update_test_VALASOURCES = shared-update-test.vala default-update-test.vala
 
-direct_update_test_SOURCES = \
-	direct_update_test.vala.stamp \
-	$(direct_update_test_VALASOURCES:.vala=.c)
+default_update_test_SOURCES = \
+	default_update_test.vala.stamp \
+	$(default_update_test_VALASOURCES:.vala=.c)
 
 bus_query_test_VALASOURCES = bus-query-test.vala
 
@@ -123,7 +123,7 @@ bus_query_test_SOURCES = \
 	bus_query_test.vala.stamp \
 	$(bus_query_test_VALASOURCES:.vala=.c)
 
-bus_update_test_VALASOURCES = bus-update-test.vala
+bus_update_test_VALASOURCES = shared-update-test.vala bus-update-test.vala
 
 bus_update_test_SOURCES = \
 	bus_update_test.vala.stamp \
@@ -143,11 +143,11 @@ direct_query_test_LDADD = \
 	$(GIO_LIBS) \
 	$(GLIB2_LIBS)
 
-direct-update-test.vala.stamp: $(direct_update_test_VALASOURCES) $(direct_vapi_sources)
+default-update-test.vala.stamp: $(default_update_test_VALASOURCES) $(direct_vapi_sources)
 	$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) -C $(VALAFLAGS) --pkg gio-2.0 $^
 	$(AM_V_GEN)touch $@
 
-direct_update_test_LDADD = $(direct_query_test_LDADD)
+default_update_test_LDADD = $(direct_query_test_LDADD)
 
 bus_vapi_sources = \
 	$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
@@ -173,7 +173,7 @@ BUILT_SOURCES = \
 	busy-handling-test.vala.stamp \
 	direct-query-test.vala.stamp \
 	bus-query-test.vala.stamp \
-	direct-update-test.vala.stamp \
+	default-update-test.vala.stamp \
 	bus-update-test.vala.stamp
 
 bus_update_test_LDADD = $(bus_query_test_LDADD)
diff --git a/tests/functional-tests/default-update-test.vala b/tests/functional-tests/default-update-test.vala
new file mode 100644
index 0000000..4dacd6e
--- /dev/null
+++ b/tests/functional-tests/default-update-test.vala
@@ -0,0 +1,9 @@
+int
+main( string[] args )
+{
+	TestApp app = new TestApp (Tracker.Sparql.Connection.get());
+
+	app.run ();
+
+	return 0;
+}



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