[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 90/116] tests: compile gschemas in the build dir



commit fd118f3d6d98c8e59c80294b3f2c9d79c125e810
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 95b6b2097..67c56ee8b 100644
--- a/tests/libtracker-miner/meson.build
+++ b/tests/libtracker-miner/meson.build
@@ -24,6 +24,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]