1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
modules = ['gi']
if get_option('tests_tap_protocol')
protocol = 'tap'
modules += 'tap'
else
protocol = 'exitcode'
endif
python = import('python').find_installation('python3', modules: modules)
testconf = configuration_data()
config_json_full_path = join_paths(meson.current_build_dir(), 'configuration.json')
testconf.set('TEST_CLI_DIR', tracker_uninstalled_cli_dir)
testconf.set('TEST_ONTOLOGIES_DIR', tracker_uninstalled_nepomuk_ontologies_dir)
testconf.set('TEST_DBUS_DAEMON_CONFIG_FILE', build_root / 'tests' / 'test-bus.conf')
testconf.set('TEST_PORTAL_FLATPAK_INFO', source_root / 'tests' / 'flatpak-info')
testconf.set('TRACKER_VERSION', meson.project_version())
testconf.set('TEST_TAP_ENABLED', get_option('tests_tap_protocol').to_string())
config_json = configure_file(
input: 'configuration.json.in',
output: 'configuration.json',
configuration: testconf
)
functional_tests = [
'insertion',
'query',
'fts-functions',
'sparql-bugs',
'group-concat',
'coalesce',
'distance',
'graph',
'concurrent-query',
'notifier',
'collation',
'ontology-changes',
'cli',
'portal',
]
test_env = environment()
test_env.prepend('GI_TYPELIB_PATH', tracker_sparql_uninstalled_dir)
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)
foreach test_name: functional_tests
file = meson.current_source_dir() / '@0@.py'.format(test_name)
test(test_name, python,
args: [file],
env: test_env,
protocol: protocol,
suite: ['functional'],
timeout: 60)
endforeach
subdir('ipc')
|