diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2021-04-16 00:24:43 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2021-05-01 14:27:32 +0200 |
commit | 6397a9600a416f5c89beaf448aa36309fdc0d170 (patch) | |
tree | 9f55d87afdf96a73393cdbbba77dda42c8d4600c /tests/libtracker-data | |
parent | d70e466250048d26ca3df1a52c60f959296f2ce5 (diff) | |
download | tracker-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.out | 2 | ||||
-rw-r--r-- | tests/libtracker-data/service/service-union-with-local-3.rq | 22 | ||||
-rw-r--r-- | tests/libtracker-data/tracker-service-test.c | 1 |
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 }, |