From 4e3932c7ac99478f80904fa54fa236e88fde16bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 1 Jun 2022 13:30:27 +0200 Subject: [PATCH] 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: --- meson.build | 1 + src/tests/meson.build | 13 +++++++++++++ tools/meson.build | 1 + 3 files changed, 15 insertions(+) create mode 100644 tools/meson.build diff --git a/meson.build b/meson.build index 60936dd68..7728de23f 100644 --- a/meson.build +++ b/meson.build @@ -614,6 +614,7 @@ top_includepath = include_directories('.') subdir('cogl') subdir('clutter') subdir('data') +subdir('tools') subdir('src') subdir('po') subdir('doc/man') diff --git a/src/tests/meson.build b/src/tests/meson.build index b58636c55..9b9990577 100644 --- a/src/tests/meson.build +++ b/src/tests/meson.build @@ -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, +) diff --git a/tools/meson.build b/tools/meson.build new file mode 100644 index 000000000..83e98721c --- /dev/null +++ b/tools/meson.build @@ -0,0 +1 @@ +get_state_tool = find_program('get-state.py')