diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2022-09-03 00:15:51 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2022-11-25 22:09:54 +0100 |
commit | f4934c042124757e256f8131b0e5b319d963acae (patch) | |
tree | b61a8c6b153ac99fb3c42e0b75bf0316e6d70029 /tests | |
parent | bcc4d15fdf7edf3e0b1b5108a35ef60f99a11f11 (diff) | |
download | gnome-shell-f4934c042124757e256f8131b0e5b319d963acae.tar.gz |
tests/perf: Use custom solid background in tests
They don't measure performance, and we don't want to have to install
gnome-backgrounds, so bundle a solid color background image to use
instead.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1349>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/background.png | bin | 0 -> 9050 bytes | |||
-rw-r--r-- | tests/meson.build | 3 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/data/background.png b/tests/data/background.png Binary files differnew file mode 100644 index 000000000..cbe3f097c --- /dev/null +++ b/tests/data/background.png diff --git a/tests/meson.build b/tests/meson.build index 8c0202861..739b74cd0 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -46,11 +46,14 @@ perf_tests = [ gvc_typelib_path = fs.parent(libgvc.get_variable('libgvc_gir')[1].full_path()) libgvc_path = fs.parent(libgvc.get_variable('libgvc').full_path()) +background_file = files(join_paths('data', 'background.png')) + perf_testenv = testenv perf_testenv.set('G_DEBUG', 'fatal-criticals') 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('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: ':') |