summaryrefslogtreecommitdiff
path: root/tests/libtracker-data
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-04-16 00:24:43 +0200
committerCarlos Garnacho <carlosg@gnome.org>2021-05-01 14:27:32 +0200
commit6397a9600a416f5c89beaf448aa36309fdc0d170 (patch)
tree9f55d87afdf96a73393cdbbba77dda42c8d4600c /tests/libtracker-data
parentd70e466250048d26ca3df1a52c60f959296f2ce5 (diff)
downloadtracker-6397a9600a416f5c89beaf448aa36309fdc0d170.tar.gz
tests: Add another test for SERVICE being unioned with local data
This tests the other way around, to ensure we still match URNs as strings on both sides.
Diffstat (limited to 'tests/libtracker-data')
-rw-r--r--tests/libtracker-data/service/service-union-with-local-3.out2
-rw-r--r--tests/libtracker-data/service/service-union-with-local-3.rq22
-rw-r--r--tests/libtracker-data/tracker-service-test.c1
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/libtracker-data/service/service-union-with-local-3.out b/tests/libtracker-data/service/service-union-with-local-3.out
new file mode 100644
index 000000000..6eed860fd
--- /dev/null
+++ b/tests/libtracker-data/service/service-union-with-local-3.out
@@ -0,0 +1,2 @@
+"http://purl.org/dc/elements/1.1/" "a"
+"http://tracker.api.gnome.org/ontology/v3/nao#hasTag" "b"
diff --git a/tests/libtracker-data/service/service-union-with-local-3.rq b/tests/libtracker-data/service/service-union-with-local-3.rq
new file mode 100644
index 000000000..67eaf6293
--- /dev/null
+++ b/tests/libtracker-data/service/service-union-with-local-3.rq
@@ -0,0 +1,22 @@
+SELECT ?u ?s {
+ {
+ SELECT ?u ('a' AS ?s) {
+ ?u a rdfs:Resource
+ }
+ ORDER BY ?u
+ LIMIT 1
+ }
+ UNION
+ {
+ SELECT ?u ?s {
+ SERVICE <dbus:%s> {
+ SELECT ?u ('b' AS ?s) {
+ ?u nrl:indexed true
+ }
+ ORDER BY ?u
+ LIMIT 1
+ }
+ ?u a rdfs:Resource
+ }
+ }
+}
diff --git a/tests/libtracker-data/tracker-service-test.c b/tests/libtracker-data/tracker-service-test.c
index b0fb49615..d4ab48fe4 100644
--- a/tests/libtracker-data/tracker-service-test.c
+++ b/tests/libtracker-data/tracker-service-test.c
@@ -41,6 +41,7 @@ const TestInfo tests[] = {
{ "service/service-local-filter-1", FALSE },
{ "service/service-union-with-local-1", FALSE },
{ "service/service-union-with-local-2", FALSE },
+ { "service/service-union-with-local-3", FALSE },
{ "service/service-var-1", FALSE },
{ "service/service-var-2", FALSE },
{ "service/service-empty-1", FALSE },