[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 90/116] tests: compile gschemas in the build dir
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/shuffle-libtracker-miner: 90/116] tests: compile gschemas in the build dir
- Date: Thu, 12 Dec 2019 10:23:40 +0000 (UTC)
commit 38ca4faa5ef8327197f3dd8b57d1d206b3087495
Author: Andrea Azzarone <andrea azzarone canonical com>
Date: Fri Dec 14 11:51:44 2018 +0000
tests: compile gschemas in the build dir
Allow running tests without the need to install the gsettings schemas.
This commit moves all the gschemas in the data directory and compiles
them in the build directory. Tests that require gschemas need to be
launched with the proper GSETTINGS_SCHEMA_DIR env variable.
Fixes: https://gitlab.gnome.org/GNOME/tracker/issues/60
tests/libtracker-miner/meson.build | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/tests/libtracker-miner/meson.build b/tests/libtracker-miner/meson.build
index afe009c03..c14a9cd09 100644
--- a/tests/libtracker-miner/meson.build
+++ b/tests/libtracker-miner/meson.build
@@ -23,6 +23,7 @@ libtracker_miner_test_c_args = [
libtracker_miner_test_environment = environment()
libtracker_miner_test_environment.set('TRACKER_LANGUAGE_STOP_WORDS_DIR',
'@0@/src/libtracker-common/stop-words'.format(meson.source_root()))
+libtracker_miner_test_environment.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.build_root(), 'data'))
libtracker_miner_test_deps = [tracker_miners_common_dep, tracker_miner, tracker_sparql]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]