[tracker/tracker-0.8] tests/libtracker-data: Added unit test for a regression that we had



commit 17d4394e0ba6b7cad65bc8581d3726735385a16e
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Jun 18 12:32:47 2010 +0200

    tests/libtracker-data: Added unit test for a regression that we had

 tests/libtracker-data/sort/Makefile.am      |    4 +++-
 tests/libtracker-data/sort/query-sort-6.out |    5 +++++
 tests/libtracker-data/sort/query-sort-6.rq  |    6 ++++++
 tests/libtracker-data/tracker-sparql-test.c |    1 +
 4 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-data/sort/Makefile.am b/tests/libtracker-data/sort/Makefile.am
index 11afc93..e4cfc77 100644
--- a/tests/libtracker-data/sort/Makefile.am
+++ b/tests/libtracker-data/sort/Makefile.am
@@ -16,4 +16,6 @@ EXTRA_DIST = 			\
 	query-sort-4.out	\
 	query-sort-4.rq		\
 	query-sort-5.out	\
-	query-sort-5.rq
+	query-sort-5.rq		\
+	query-sort-6.rq		\
+	query-sort-6.out
diff --git a/tests/libtracker-data/sort/query-sort-6.out b/tests/libtracker-data/sort/query-sort-6.out
new file mode 100644
index 0000000..e52c663
--- /dev/null
+++ b/tests/libtracker-data/sort/query-sort-6.out
@@ -0,0 +1,5 @@
+"1"
+"1"
+"1"
+"1"
+"1"
diff --git a/tests/libtracker-data/sort/query-sort-6.rq b/tests/libtracker-data/sort/query-sort-6.rq
new file mode 100755
index 0000000..e1eb1af
--- /dev/null
+++ b/tests/libtracker-data/sort/query-sort-6.rq
@@ -0,0 +1,6 @@
+PREFIX foaf:    <http://xmlns.com/foaf/0.1/>
+PREFIX ex:      <http://example.org/things#>
+
+SELECT 1 AS ?filter
+WHERE { ?x a foaf:Person }
+ORDER BY ?filter
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 49b83f0..9b31330 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -97,6 +97,7 @@ const TestInfo tests[] = {
 	{ "sort/query-sort-3", "sort/data-sort-3", FALSE },
 	{ "sort/query-sort-4", "sort/data-sort-4", FALSE },
 	{ "sort/query-sort-5", "sort/data-sort-4", FALSE },
+	{ "sort/query-sort-6", "sort/data-sort-4", FALSE },
 	{ "subqueries/subqueries-1", "subqueries/data-1", FALSE },
 	{ "subqueries/subqueries-union-1", "subqueries/data-1", FALSE },
 	{ "subqueries/subqueries-union-2", "subqueries/data-1", FALSE },



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