mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
test-tool: Rename perf-tool
The original purpose of the tool was to collect performance data that would optionally be uploaded to a server in Owen's living room. While the corresponding scripts are still included (although the server was probably dismantled years ago), the tool is mainly used for running gnome-shell with scripted tests nowadays. Rename the tool to reflect that. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2812>
This commit is contained in:
parent
bf9b9838c2
commit
9bb003463c
3 changed files with 19 additions and 19 deletions
|
|
@ -35,7 +35,7 @@ foreach test : tests
|
|||
workdir: meson.current_source_dir())
|
||||
endforeach
|
||||
|
||||
perf_tests = [
|
||||
shell_tests = [
|
||||
{
|
||||
'name': 'basic',
|
||||
},
|
||||
|
|
@ -53,28 +53,28 @@ libgvc_path = fs.parent(libgvc.get_variable('libgvc').full_path())
|
|||
|
||||
background_file = files(join_paths('data', 'background.png'))
|
||||
|
||||
perf_testenv = environment()
|
||||
perf_testenv.set('G_DEBUG', 'fatal-warnings')
|
||||
perf_testenv.set('G_MESSAGES_DEBUG', 'GNOME Shell')
|
||||
perf_testenv.set('GNOME_SHELL_DATADIR', data_builddir)
|
||||
perf_testenv.set('GNOME_SHELL_BUILDDIR', src_builddir)
|
||||
perf_testenv.set('GNOME_SHELL_SESSION_MODE', 'user')
|
||||
perf_testenv.set('SHELL_BACKGROUND_IMAGE', '@0@'.format(background_file))
|
||||
perf_testenv.append('GI_TYPELIB_PATH', gvc_typelib_path, separator: ':')
|
||||
perf_testenv.append('LD_LIBRARY_PATH', libgvc_path, separator: ':')
|
||||
shell_testenv = environment()
|
||||
shell_testenv.set('G_DEBUG', 'fatal-warnings')
|
||||
shell_testenv.set('G_MESSAGES_DEBUG', 'GNOME Shell')
|
||||
shell_testenv.set('GNOME_SHELL_DATADIR', data_builddir)
|
||||
shell_testenv.set('GNOME_SHELL_BUILDDIR', src_builddir)
|
||||
shell_testenv.set('GNOME_SHELL_SESSION_MODE', 'user')
|
||||
shell_testenv.set('SHELL_BACKGROUND_IMAGE', '@0@'.format(background_file))
|
||||
shell_testenv.append('GI_TYPELIB_PATH', gvc_typelib_path, separator: ':')
|
||||
shell_testenv.append('LD_LIBRARY_PATH', libgvc_path, separator: ':')
|
||||
|
||||
foreach perf_test : perf_tests
|
||||
test_name = perf_test['name']
|
||||
options = perf_test.get('options', [])
|
||||
foreach shell_test : shell_tests
|
||||
test_name = shell_test['name']
|
||||
options = shell_test.get('options', [])
|
||||
|
||||
test('perf-' + test_name, dbus_runner,
|
||||
test('shell-' + test_name, dbus_runner,
|
||||
args: [
|
||||
perf_tool,
|
||||
test_tool,
|
||||
'--headless',
|
||||
'--script=@0@/js/perf/@1@.js'.format(meson.project_source_root(), test_name),
|
||||
options,
|
||||
],
|
||||
is_parallel: false,
|
||||
env: perf_testenv,
|
||||
env: shell_testenv,
|
||||
)
|
||||
endforeach
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue