summaryrefslogtreecommitdiff
path: root/tests/functional-tests
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2019-10-01 03:43:18 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2019-10-01 03:55:01 +0200
commit8a747ea71e3840cbd8e771ea5c6b17e2657fc7a9 (patch)
tree04d3a55b5be4e9862da8e332e72a12d3957555c9 /tests/functional-tests
parent07df7002f71a243b4c983d65aaa8e630cf19fa73 (diff)
downloadtracker-8a747ea71e3840cbd8e771ea5c6b17e2657fc7a9.tar.gz
tests: Use meson suites
Make possible to easily (not) run a sub-set of tests by using suites in tracker. Fixes https://gitlab.gnome.org/GNOME/tracker/issues/153
Diffstat (limited to 'tests/functional-tests')
-rw-r--r--tests/functional-tests/ipc/meson.build8
-rw-r--r--tests/functional-tests/meson.build16
2 files changed, 20 insertions, 4 deletions
diff --git a/tests/functional-tests/ipc/meson.build b/tests/functional-tests/ipc/meson.build
index e8e85d0dc..4bcfb0540 100644
--- a/tests/functional-tests/ipc/meson.build
+++ b/tests/functional-tests/ipc/meson.build
@@ -17,16 +17,18 @@ test_env.set('TRACKER_TEST_DOMAIN_ONTOLOGY_RULE', tracker_uninstalled_domain_rul
insert_or_replace_test = executable('test-insert-or-replace',
'test-insert-or-replace.vala', tracker_sparql_vapi,
dependencies: [tracker_common_dep, tracker_sparql_dep])
-test('functional-ipc-insert-or-replace', python,
+test('insert-or-replace', python,
args: sandbox_args + [insert_or_replace_test],
- env: test_env)
+ env: test_env,
+ suite: ['functional', 'ipc'])
bus_query_cancellation_test = executable('test-bus-query-cancellation',
'test-bus-query-cancellation.c',
c_args: functional_ipc_test_c_args,
dependencies: [tracker_common_dep, tracker_sparql_dep])
-test('functional-ipc-bus-query-cancellation', python,
+test('bus-query-cancellation', python,
args: sandbox_args + [bus_query_cancellation_test],
env: test_env,
+ suite: ['functional', 'ipc'],
timeout: 60)
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build
index 8bc70c446..48be0f55e 100644
--- a/tests/functional-tests/meson.build
+++ b/tests/functional-tests/meson.build
@@ -46,10 +46,24 @@ test_env.set('TRACKER_FUNCTIONAL_TEST_CONFIG', config_json_full_path)
foreach t: functional_tests
file = '@0@.py'.format(t)
- test('functional-' + t, python,
+ test_parts = t.split('-')
+ test_name = t
+ if test_parts.length() > 1
+ parts = []
+ i = 0
+ foreach p: test_parts
+ if i > 0
+ parts += p
+ endif
+ i += 1
+ endforeach
+ test_name = '-'.join(parts)
+ endif
+ test(test_name, python,
args: [file],
env: test_env,
workdir: meson.current_source_dir(),
+ suite: ['functional'],
timeout: 60)
endforeach