diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2023-01-23 13:11:43 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2023-01-23 15:51:36 +0100 |
commit | 6555ef2c8d5c7933f1d8be3d79671a9a4ed99282 (patch) | |
tree | cf9e62a1c3f0a7dfaf38f5f8422c3cc59cc656a4 /tests | |
parent | b7f0bd26bdf257ad18de40bcd5aab2dee0bdda74 (diff) | |
download | tracker-6555ef2c8d5c7933f1d8be3d79671a9a4ed99282.tar.gz |
libtracker-common: Add 'fts-integrity' debug flag
This debug flag forces a FTS integrity check after every set of FTS
updates, and raises an error if the integrity check did fail. This
is a more proactive (and expensive) approach to finding out FTS index
corruptions.
In order to make this helpful right away, toggle this flag on for
our own test suite, so that CI may catch any remaining/popping issues.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional-tests/meson.build | 1 | ||||
-rw-r--r-- | tests/meson.build | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build index 35c98c0db..84350a36c 100644 --- a/tests/functional-tests/meson.build +++ b/tests/functional-tests/meson.build @@ -45,6 +45,7 @@ test_env.prepend('LD_LIBRARY_PATH', tracker_sparql_uninstalled_dir) test_env.prepend('PYTHONPATH', tracker_uninstalled_testutils_dir) test_env.set('TRACKER_FUNCTIONAL_TEST_CONFIG', config_json_full_path) test_env.set('GIO_USE_VFS', 'local') +test_env.set('TRACKER_DEBUG', 'fts-integrity') foreach test_name: functional_tests file = meson.current_source_dir() / '@0@.py'.format(test_name) diff --git a/tests/meson.build b/tests/meson.build index 3b39382f6..88c0ea009 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -35,6 +35,7 @@ foreach t: tests env = environment() env.set('TRACKER_LANGUAGE_STOP_WORDS_DIR', join_paths(source_root, 'src', 'libtracker-common', 'stop-words')) env.set('LANG', 'en_US.UTF8') + env.set('TRACKER_DEBUG', 'fts-integrity') foreach envvar_name, envvar_val: test_env env.set(envvar_name, envvar_val) |