[gtk/gtk-3-24] meson: add tools tests



commit 77c14245820690483b11c469d4d25e13cd31812d
Author: Christoph Reiter <creiter src gnome org>
Date:   Sat Apr 13 13:11:16 2019 +0200

    meson: add tools tests

 testsuite/meson.build       |  1 +
 testsuite/tools/Makefile.am |  1 +
 testsuite/tools/meson.build | 23 +++++++++++++++++++++++
 3 files changed, 25 insertions(+)
---
diff --git a/testsuite/meson.build b/testsuite/meson.build
index 33ecba05df..5a226ca229 100644
--- a/testsuite/meson.build
+++ b/testsuite/meson.build
@@ -2,3 +2,4 @@ subdir('gtk')
 subdir('gdk')
 subdir('css')
 subdir('a11y')
+subdir('tools')
diff --git a/testsuite/tools/Makefile.am b/testsuite/tools/Makefile.am
index b6bac18a99..a9996a4491 100644
--- a/testsuite/tools/Makefile.am
+++ b/testsuite/tools/Makefile.am
@@ -17,6 +17,7 @@ EXTRA_DIST += \
        $(test_simplify)        \
        test-simplify.in        \
        test-settings.in        \
+       meson.build             \
        $(NULL)
 
 TESTS_ENVIRONMENT = \
diff --git a/testsuite/tools/meson.build b/testsuite/tools/meson.build
new file mode 100644
index 0000000000..267b96639e
--- /dev/null
+++ b/testsuite/tools/meson.build
@@ -0,0 +1,23 @@
+bash = find_program('bash', required : false)
+if bash.found()
+  test_env = environment()
+
+  foreach t : ['test-simplify', 'test-settings']
+    configure_file(output: t,
+                   input: '@0@.in'.format(t),
+                   copy: true)
+    test(t, bash,
+         args: t,
+         workdir: meson.current_build_dir(),
+         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()),
+                'GTK_BUILDER_TOOL=@0@'.format(gtk_builder_tool.full_path()),
+                'GTK_QUERY_SETTINGS=@0@'.format(gtk_query_settings.full_path())
+              ],
+         suite: 'tools')
+  endforeach
+endif


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