[tracker-miners/wip/carlosg/tap-tests: 3/4] tests: Set testing stopwords directory
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/tap-tests: 3/4] tests: Set testing stopwords directory
- Date: Mon, 22 Mar 2021 12:43:23 +0000 (UTC)
commit 79db7cecefac2c4a3b83b006b1e375d9bc81614b
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Mar 22 12:34:12 2021 +0100
tests: Set testing stopwords directory
To avoid messages about the stopword list not being loaded.
tests/functional-tests/meson.build | 1 +
tests/libtracker-extract/meson.build | 5 +++++
2 files changed, 6 insertions(+)
---
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build
index 9387c6cb9..d6208aed3 100644
--- a/tests/functional-tests/meson.build
+++ b/tests/functional-tests/meson.build
@@ -164,6 +164,7 @@ endif
test_env.prepend('PYTHONPATH', tracker_uninstalled_testutils_dir)
test_env.set('TRACKER_FUNCTIONAL_TEST_CONFIG', config_json_full_path)
+test_env.set('TRACKER_LANGUAGE_STOP_WORDS_DIR', tracker_uninstalled_stop_words_dir)
foreach t: extractor_tests
data = join_paths('test-extraction-data', t) + '.expected.json'
diff --git a/tests/libtracker-extract/meson.build b/tests/libtracker-extract/meson.build
index 5e3ac60a8..e86e04a63 100644
--- a/tests/libtracker-extract/meson.build
+++ b/tests/libtracker-extract/meson.build
@@ -18,6 +18,9 @@ libtracker_extract_test_deps = [
tracker_miners_common_dep, tracker_extract_dep
]
+extract_test_environment = environment()
+extract_test_environment.set('TRACKER_LANGUAGE_STOP_WORDS_DIR', tracker_uninstalled_stop_words_dir)
+
foreach base_name: libtracker_extract_tests
source = 'tracker-@0@-test.c'.format(base_name)
binary_name = 'tracker-@0@-test'.format(base_name)
@@ -27,6 +30,7 @@ foreach base_name: libtracker_extract_tests
c_args: test_c_args)
test(base_name, binary,
+ environtment: extract_test_environment,
protocol: test_protocol,
suite: 'extract')
endforeach
@@ -38,6 +42,7 @@ if libiptcdata.found() and libjpeg.found()
c_args: test_c_args,
)
test('extract-iptc', iptc_test,
+ environtment: extract_test_environment,
protocol: test_protocol,
suite: 'extract')
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]