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



commit 4e3932c7ac99478f80904fa54fa236e88fde16bf
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Wed Jun 1 13:30:27 2022 +0200

    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>

 meson.build           |  1 +
 src/tests/meson.build | 13 +++++++++++++
 tools/meson.build     |  1 +
 3 files changed, 15 insertions(+)
---
diff --git a/meson.build b/meson.build
index 60936dd68b..7728de23f2 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 b58636c551..9b99905775 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 0000000000..83e98721cb
--- /dev/null
+++ b/tools/meson.build
@@ -0,0 +1 @@
+get_state_tool = find_program('get-state.py')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]