[gtk/transform-tests: 1/4] Move transform tests to the gsk suite



commit 0ab4a232b7137ee5bc13f84b9d1546ea0a4b5cf1
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 3 16:10:09 2019 +0000

    Move transform tests to the gsk suite
    
    That is where they belong.

 testsuite/gsk/meson.build          | 33 +++++++++++++++++++++++++++++++++
 testsuite/{gtk => gsk}/transform.c |  0
 testsuite/gtk/meson.build          |  1 -
 3 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index fd3118af49..2208c1a6d6 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -165,3 +165,36 @@ foreach test : node_parser_tests
          suite: 'gsk')
   endif
 endforeach
+
+tests = [
+  ['transform'],
+]
+
+test_cargs = []
+
+foreach t : tests
+  test_name = t.get(0)
+  test_srcs = ['@0@.c'.format(test_name)] + t.get(1, [])
+  test_extra_cargs = t.get(2, [])
+  test_extra_ldflags = t.get(3, [])
+
+  test_exe = executable(test_name, test_srcs,
+    c_args : test_cargs + test_extra_cargs,
+    link_args : test_extra_ldflags,
+    dependencies : libgtk_dep,
+    install: get_option('install-tests'),
+    install_dir: testexecdir)
+
+  test(test_name, test_exe,
+       args: [ '--tap', '-k' ],
+       env: [ 'GIO_USE_VOLUME_MONITOR=unix',
+              'GSETTINGS_BACKEND=memory',
+              'GTK_CSD=1',
+              'G_ENABLE_DIAGNOSTIC=0',
+              'GSK_RENDERER=cairo',
+              'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
+              'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
+              'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
+            ],
+       suite: 'gsk')
+endforeach
diff --git a/testsuite/gtk/transform.c b/testsuite/gsk/transform.c
similarity index 100%
rename from testsuite/gtk/transform.c
rename to testsuite/gsk/transform.c
diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build
index a83218c921..9be60a278e 100644
--- a/testsuite/gtk/meson.build
+++ b/testsuite/gtk/meson.build
@@ -54,7 +54,6 @@ tests = [
   ['textbuffer'],
   ['textiter'],
   ['theme-validate'],
-  ['transform'],
   ['treelistmodel'],
   ['treemodel', ['treemodel.c', 'liststore.c', 'treestore.c', 'filtermodel.c',
                  'modelrefcount.c', 'sortmodel.c', 'gtktreemodelrefcount.c']],


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