[tracker] tests: Don't use the same test path twice



commit c3a164497e42caf01a614f737a79056c261d68c8
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Sep 22 13:34:13 2015 +0200

    tests: Don't use the same test path twice
    
    Recent glib forbids duplicate test paths, as the test relies on that
    in order to find the .rq/.out files, copy these files from graph-4*.

 tests/libtracker-data/graph/Makefile.am     |    4 +++-
 tests/libtracker-data/graph/graph-5.out     |    3 +++
 tests/libtracker-data/graph/graph-5.rq      |    5 +++++
 tests/libtracker-data/tracker-sparql-test.c |    2 +-
 4 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/tests/libtracker-data/graph/Makefile.am b/tests/libtracker-data/graph/Makefile.am
index 019de4e..b6a6650 100644
--- a/tests/libtracker-data/graph/Makefile.am
+++ b/tests/libtracker-data/graph/Makefile.am
@@ -16,4 +16,6 @@ EXTRA_DIST += \
        graph-3.out                                    \
        graph-3.rq                                     \
        graph-4.out                                    \
-       graph-4.rq
+       graph-4.rq                                     \
+       graph-5.out                                    \
+       graph-5.rq
diff --git a/tests/libtracker-data/graph/graph-5.out b/tests/libtracker-data/graph/graph-5.out
new file mode 100644
index 0000000..27656c6
--- /dev/null
+++ b/tests/libtracker-data/graph/graph-5.out
@@ -0,0 +1,3 @@
+"http://example/graphA";        "http://example/p";      "42"
+"http://example/graphA";        "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";       "http://example/A";
+"http://example/graphA";        "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";       
"http://www.w3.org/2000/01/rdf-schema#Resource";
diff --git a/tests/libtracker-data/graph/graph-5.rq b/tests/libtracker-data/graph/graph-5.rq
new file mode 100644
index 0000000..6e72488
--- /dev/null
+++ b/tests/libtracker-data/graph/graph-5.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?p ?v WHERE {
+       GRAPH ?g {
+               example:resource ?p ?v
+       }
+} ORDER BY ?g ?p ?v
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 8d045ce..9c7035c 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -105,7 +105,7 @@ const TestInfo tests[] = {
        { "graph/graph-2", "graph/data-2", FALSE },
        { "graph/graph-3", "graph/data-3", FALSE },
        { "graph/graph-4", "graph/data-3", FALSE },
-       { "graph/graph-4", "graph/data-4", FALSE },
+       { "graph/graph-5", "graph/data-4", FALSE },
        { "optional/q-opt-complex-1", "optional/complex-data-1", FALSE },
        { "optional/simple-optional-triple", "optional/simple-optional-triple", FALSE },
        { "regex/regex-query-001", "regex/regex-data-01", FALSE },


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