[gtk/wip/otte/for-master: 4/4] build: Convert CSS parser tests to single meson tests



commit 04da31f5f517e20e1c1c8cb7b52392f5c1df1f8d
Author: Benjamin Otte <otte redhat com>
Date:   Tue May 14 00:41:19 2019 +0200

    build: Convert CSS parser tests to single meson tests

 testsuite/css/parser/meson.build | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)
---
diff --git a/testsuite/css/parser/meson.build b/testsuite/css/parser/meson.build
index 23f8e7ea33..573f0a7087 100644
--- a/testsuite/css/parser/meson.build
+++ b/testsuite/css/parser/meson.build
@@ -5,16 +5,6 @@ test_parser = executable('test-css-parser', 'test-css-parser.c',
                          install: get_option('install-tests'),
                          install_dir: testexecdir,
                          dependencies: libgtk_dep)
-test('parser', test_parser,
-     args: [ '--tap', '-k' ],
-     env: [ 'GIO_USE_VOLUME_MONITOR=unix',
-            'GSETTINGS_BACKEND=memory',
-            'GTK_CSD=1',
-            'G_ENABLE_DIAGNOSTIC=0',
-            'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
-             'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
-          ],
-     suite: 'css')
 
 test_data = [
   'animation-crash-3.12.css',
@@ -459,6 +449,24 @@ test_data = [
   'value-none.ref.css',
 ]
 
+foreach testname : test_data
+  if testname.endswith('.css') and not testname.endswith('.ref.css')
+    test('parser ' + testname, test_parser,
+         args: [ '--tap',
+                 '-k',
+                 join_paths(meson.current_source_dir(), testname),
+               ],
+         env: [ 'GIO_USE_VOLUME_MONITOR=unix',
+                'GSETTINGS_BACKEND=memory',
+                'GTK_CSD=1',
+                'G_ENABLE_DIAGNOSTIC=0',
+                'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
+                 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
+              ],
+         suite: 'css')
+  endif
+endforeach
+
 if get_option('install-tests')
   conf = configuration_data()
   conf.set('libexecdir', gtk_libexecdir)


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