diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2023-02-02 16:28:06 +0100 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2023-02-06 18:10:01 +0000 |
commit | 9dd3d887d28e65b1d071997e9edc20ec386f8332 (patch) | |
tree | 288ee666af04a4152552dd9653838222903ab894 /tests | |
parent | 4bcbe9be83487423d1bd012d250b99ab5ed7c788 (diff) | |
download | gnome-shell-9dd3d887d28e65b1d071997e9edc20ec386f8332.tar.gz |
Add 'headless start' perf test
This tests that GNOME Shell will launch sucessfully despite there being
no monitors on startup, and successfully hide and then show the
overview, once the monitor is connected.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/meson.build b/tests/meson.build index 1d12d0786..2f96a7325 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -40,7 +40,13 @@ foreach test : tests endforeach perf_tests = [ - 'basic', + { + 'name': 'basic', + }, + { + 'name': 'headlessStart', + 'options': ['--hotplug'], + }, ] gvc_typelib_path = fs.parent(libgvc.get_variable('libgvc_gir')[1].full_path()) @@ -58,11 +64,15 @@ perf_testenv.append('GI_TYPELIB_PATH', gvc_typelib_path, separator: ':') perf_testenv.append('LD_LIBRARY_PATH', libgvc_path, separator: ':') foreach perf_test : perf_tests - test('perf-' + perf_test, dbus_runner, + test_name = perf_test['name'] + options = perf_test.get('options', []) + + test('perf-' + test_name, dbus_runner, args: [ perf_tool, '--headless', - '--perf=@0@'.format(perf_test), + '--perf=@0@'.format(test_name), + options, ], is_parallel: false, env: perf_testenv, |