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



commit 2be632cb0566ea93beb2db3af5269c3b89df37df
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]