[gtk+] Install css node tests again
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Install css node tests again
- Date: Tue, 10 Oct 2017 03:32:50 +0000 (UTC)
commit e5aa2021a01b5a365097340e8620e6e4ba1d355a
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 9 23:24:23 2017 -0400
Install css node tests again
Reinstate the installed tests for css nodes.
testsuite/css/nodes/meson.build | 77 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 76 insertions(+), 1 deletions(-)
---
diff --git a/testsuite/css/nodes/meson.build b/testsuite/css/nodes/meson.build
index a7d5050..55dab8d 100644
--- a/testsuite/css/nodes/meson.build
+++ b/testsuite/css/nodes/meson.build
@@ -1,3 +1,78 @@
+gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
+testdatadir = join_paths(gtk_datadir, 'installed-tests/gtk4')
+testexecdir = join_paths(gtk_libexecdir, 'installed-tests/gtk4/css/nodes')
-test_nodes = executable('test-css-nodes', 'test-css-nodes.c', dependencies: libgtk_dep)
+test_nodes = executable('test-css-nodes', 'test-css-nodes.c',
+ install: get_option('install-tests'),
+ install_dir: testexecdir,
+ dependencies: libgtk_dep)
test('css/nodes/test-nodes', test_nodes)
+
+test_data = [
+ 'box.ltr.nodes',
+ 'box.ltr.ui',
+ 'box-packing.ltr.nodes',
+ 'box-packing.ltr.ui',
+ 'box-packing.rtl.nodes',
+ 'box-packing.rtl.ui',
+ 'box.rtl.nodes',
+ 'box.rtl.ui',
+ 'buttons.nodes',
+ 'buttons.ui',
+ 'checkbutton.ltr.nodes',
+ 'checkbutton.ltr.ui',
+ 'checkbutton.rtl.nodes',
+ 'checkbutton.rtl.ui',
+ 'combobox.nodes',
+ 'combobox.ui',
+ 'entries.nodes',
+ 'entries.ui',
+ 'expander.ltr.nodes',
+ 'expander.ltr.ui',
+ 'expander.rtl.nodes',
+ 'expander.rtl.ui',
+ 'levelbar.ltr.nodes',
+ 'levelbar.ltr.ui',
+ 'levelbar.rtl.nodes',
+ 'levelbar.rtl.ui',
+ 'notebook-arrows2.nodes',
+ 'notebook-arrows2.ui',
+ 'notebook-arrows.nodes',
+ 'notebook-arrows.ui',
+ 'notebook.bottom.ltr.nodes',
+ 'notebook.bottom.ltr.ui',
+ 'notebook.bottom.rtl.nodes',
+ 'notebook.bottom.rtl.ui',
+ 'notebook.left.ltr.nodes',
+ 'notebook.left.ltr.ui',
+ 'notebook.left.rtl.nodes',
+ 'notebook.left.rtl.ui',
+ 'notebook.right.ltr.nodes',
+ 'notebook.right.ltr.ui',
+ 'notebook.right.rtl.nodes',
+ 'notebook.right.rtl.ui',
+ 'notebook.top.ltr.nodes',
+ 'notebook.top.ltr.ui',
+ 'notebook.top.rtl.nodes',
+ 'notebook.top.rtl.ui',
+ 'paned.ltr.nodes',
+ 'paned.ltr.ui',
+ 'paned.rtl.nodes',
+ 'paned.rtl.ui',
+ 'progressbar.nodes',
+ 'progressbar.ui',
+ 'scale.nodes',
+ 'scale.ui',
+]
+
+if get_option('install-tests')
+ conf = configuration_data()
+ conf.set('libexecdir', gtk_libexecdir)
+ configure_file(input: 'test-css-nodes.test.in',
+ output: 'test-css-nodes.test',
+ configuration: conf,
+ install_dir: testdatadir)
+
+ install_data(test_data, install_dir: testexecdir)
+
+endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]