#851155 tracker: build-time tests assume tracker is already installed

Package:
tracker
Source:
tracker
Description:
metadata database, indexer and search tool
Submitter:
Simon McVittie
Date:
2021-05-27 17:30:05 UTC
Severity:
normal
Tags:
#851155#5
Date:
2017-01-12 14:04:24 UTC
From:
To:
Severity set to normal because failure of the build-time tests is
ignored anyway.

With LANG=C.UTF-8 added into the environment (see the bug I just filed),
the build-time tests get a little further but still fail, with multiple
errors similar to those below.

The build-time tests should set GSETTINGS_SCHEMA_DIR, and run a temporary
dbus-daemon whose search path for .service files includes one for the
just-built Tracker1 service.

(Unfortunately this would make them unsuitable for use as autopkgtests
in debian/tests/unit-tests, but I suspect that debian/tests/unit-tests is
not actually a particularly valid autopkgtest anyway - it doesn't take
any steps to avoid using the just-built Tracker libraries.)

    S
----

ERROR: tracker-file-notifier-test
=================================


(/<<PKGBUILDDIR>>/tests/libtracker-miner/.libs/tracker-file-notifier-test:13188): Tracker-WARNING **: Could not get SPARQL connection: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Tracker1 was not provided by any .service files

Trace/breakpoint trap
# random seed: R02S3aef3a4fe03c08e21b56565b9e6e31d9
# Testing file notifier
1..10
# Start of libtracker-miner tests
# Start of file-notifier tests
# Tracker-FATAL-WARNING: Could not get SPARQL connection: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Tracker1 was not provided by any .service files

ERROR: tracker-sparql
=====================

Tracker-Message: Setting database locations
Tracker-Message: Checking database directories exist
...
Tracker-Message: Opened sqlite3 database:'/<<PKGBUILDDIR>>/tests/libtracker-data/test-data/1007442307/tracker/meta.db'
Tracker-Message:   Setting page size to 8192
Tracker-Message:   Setting cache size to 250

(/<<PKGBUILDDIR>>/tests/libtracker-data/.libs/tracker-sparql:14837): GLib-GIO-ERROR **: Settings schema 'org.freedesktop.Tracker.FTS' is not installed

#851155#10
Date:
2017-01-12 15:41:14 UTC
From:
To:
Am 12.01.2017 um 15:04 schrieb Simon McVittie:
or as installed tests.

Upstream seems to want to go into the latter direction it seems:
https://bugzilla.gnome.org/show_bug.cgi?id=733201#c2