diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-06-29 17:17:01 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-06-29 20:49:07 +0200 |
commit | b109b0d2911466eacf1f3a0be653bde7122125bf (patch) | |
tree | 011e3900e766d622036749477f59cb6f29d67b4d /tests/tracker-steroids | |
parent | 943dced8b70e06825d7ca2387a64306022bf0a17 (diff) | |
download | tracker-b109b0d2911466eacf1f3a0be653bde7122125bf.tar.gz |
libtracker-common: Add a last resort envvar to load default domain ontologywip/carlosg/domain-ontologies
This can only be used if the default domain ontology file is not found, and
is now used on tests that do rely on the default tracker-store instance.
Also, add back the TRACKER_DB_ONTOLOGIES_DIR, under the same restrictions.
Diffstat (limited to 'tests/tracker-steroids')
-rw-r--r-- | tests/tracker-steroids/Makefile.am | 2 | ||||
-rw-r--r-- | tests/tracker-steroids/tracker-test.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/tracker-steroids/Makefile.am b/tests/tracker-steroids/Makefile.am index 53c4e76fe..2e5553811 100644 --- a/tests/tracker-steroids/Makefile.am +++ b/tests/tracker-steroids/Makefile.am @@ -10,6 +10,8 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_builddir)/src \ -I$(top_srcdir)/tests/common \ + -DTEST_DOMAIN_ONTOLOGY_RULE=\""$(abs_top_srcdir)/src/tracker-store/default.rule"\" \ + -DTEST_ONTOLOGIES_DIR=\""$(abs_top_srcdir)/src/ontologies/nepomuk"\" \ $(LIBTRACKER_SPARQL_CFLAGS) LDADD = \ diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c index b5ed7d547..e9782dca8 100644 --- a/tests/tracker-steroids/tracker-test.c +++ b/tests/tracker-steroids/tracker-test.c @@ -693,6 +693,8 @@ main (gint argc, gchar **argv) /* test D-Bus backend */ g_setenv ("TRACKER_SPARQL_BACKEND", "bus", TRUE); + g_setenv ("TRACKER_TEST_DOMAIN_ONTOLOGY_RULE", TEST_DOMAIN_ONTOLOGY_RULE, TRUE); + g_setenv ("TRACKER_DB_ONTOLOGIES_DIR", TEST_ONTOLOGIES_DIR, TRUE); connection = tracker_sparql_connection_get (NULL, NULL); |