[mutter/wip/3v1n0/run-tests-in-ci: 11/14] meson, tests: Add single stacking tests with suite



commit 0242c1a527877cebbf38004b18e5b3f0f608f1de
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Nov 13 19:36:35 2018 -0600

    meson, tests: Add single stacking tests with suite
    
    Don't launch the stacking tests in one single shot, to allow better debugging
    and being able to launch just one single test using meson test.
    
    Those tests can now be all launched with:
      meson test --suite stacking [single-test-name]

 src/tests/meson.build | 47 +++++++++++++++++++++++++----------------------
 1 file changed, 25 insertions(+), 22 deletions(-)
---
diff --git a/src/tests/meson.build b/src/tests/meson.build
index fdf842759..b176f232f 100644
--- a/src/tests/meson.build
+++ b/src/tests/meson.build
@@ -82,29 +82,32 @@ headless_start_test = executable('mutter-headless-start-test',
   install: false,
 )
 
-stacking_tests = files([
-  'stacking/basic-x11.metatest',
-  'stacking/basic-wayland.metatest',
-  'stacking/client-side-decorated.metatest',
-  'stacking/closed-transient.metatest',
-  'stacking/closed-transient-no-input-no-take-focus-parent.metatest',
-  'stacking/closed-transient-no-input-no-take-focus-parents.metatest',
-  'stacking/closed-transient-no-input-parent.metatest',
-  'stacking/minimized.metatest',
-  'stacking/mixed-windows.metatest',
-  'stacking/set-parent.metatest',
-  'stacking/override-redirect.metatest',
-  'stacking/set-parent-exported.metatest',
-])
+stacking_tests = [
+  'basic-x11',
+  'basic-wayland',
+  'client-side-decorated',
+  'closed-transient',
+  'closed-transient-no-input-no-take-focus-parent',
+  'closed-transient-no-input-no-take-focus-parents',
+  'closed-transient-no-input-parent',
+  'minimized',
+  'mixed-windows',
+  'set-parent',
+  'override-redirect',
+  'set-parent-exported',
+]
 
-test('mutter/stacking', test_runner,
-  env: test_env,
-  args: [
-    stacking_tests,
-  ],
-  is_parallel: false,
-  timeout: 60,
-)
+foreach stacking_test: stacking_tests
+  test(stacking_test, test_runner,
+    suite: ['mutter/stacking'],
+    env: test_env,
+    args: [
+      files(join_paths('stacking', stacking_test + '.metatest')),
+    ],
+    is_parallel: false,
+    timeout: 60,
+  )
+endforeach
 
 test('mutter/unit', unit_tests,
   env: test_env,


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