tests: Add sanity test for get-state.py tool

It'll fail if the type signature of the GetCurrentStat() method is
changed, more or less.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2448>
This commit is contained in:
Jonas Ådahl 2022-06-01 13:30:27 +02:00 committed by Marge Bot
parent 8a4bec767b
commit 4e3932c7ac
3 changed files with 15 additions and 0 deletions

View File

@ -614,6 +614,7 @@ top_includepath = include_directories('.')
subdir('cogl')
subdir('clutter')
subdir('data')
subdir('tools')
subdir('src')
subdir('po')
subdir('doc/man')

View File

@ -429,3 +429,16 @@ if have_x11
timeout: 60,
)
endif
test('get-state-tool', mutter,
args: [
'--headless',
'--mutter-plugin=@0@'.format(default_plugin.full_path()),
'--virtual-monitor', '800x600',
get_state_tool.full_path(),
],
suite: ['tools'],
env: test_env,
is_parallel: false,
timeout: 60,
)

1
tools/meson.build Normal file
View File

@ -0,0 +1 @@
get_state_tool = find_program('get-state.py')