summaryrefslogtreecommitdiff
path: root/testsuite/css
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-09 23:32:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-10-09 23:32:13 -0400
commita2ee124d99b2cb25d13ebfa6c63ea57692b27d9c (patch)
treea87785b39af902ae3546a999db99211d7efdab43 /testsuite/css
parent6c294e6804748a44ac0c43075b6ef0f95116ddcf (diff)
downloadgtk+-a2ee124d99b2cb25d13ebfa6c63ea57692b27d9c.tar.gz
Install css style tests again
Reinstate the installed tests for css style.
Diffstat (limited to 'testsuite/css')
-rw-r--r--testsuite/css/style/meson.build46
1 files changed, 46 insertions, 0 deletions
diff --git a/testsuite/css/style/meson.build b/testsuite/css/style/meson.build
index db3766a5e3..6ef4b98960 100644
--- a/testsuite/css/style/meson.build
+++ b/testsuite/css/style/meson.build
@@ -1,3 +1,6 @@
+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/style')
cssresources = gnome.compile_resources(
'cssresources',
@@ -9,6 +12,49 @@ test_style = executable(
'test-css-style',
'test-css-style.c',
cssresources,
+ install: get_option('install-tests'),
+ install_dir: testexecdir,
dependencies: libgtk_dep,
)
test('css/style/test-style', test_style)
+
+test_data = [
+ 'adjacent-states.css',
+ 'adjacent-states.nodes',
+ 'adjacent-states.ui',
+ 'colornames.css',
+ 'colornames.nodes',
+ 'colornames.ui',
+ 'currentcolor.css',
+ 'currentcolor.nodes',
+ 'currentcolor.ui',
+ 'font.css',
+ 'font.nodes',
+ 'font.ui',
+ 'gradient.css',
+ 'gradient.nodes',
+ 'gradient.ui',
+ 'gtk.css',
+ 'inherit.css',
+ 'inherit.nodes',
+ 'inherit.ui',
+ 'label.css',
+ 'label.nodes',
+ 'label.ui',
+ 'nth-child.css',
+ 'nth-child.nodes',
+ 'nth-child.ui',
+]
+
+if get_option('install-tests')
+ conf = configuration_data()
+ conf.set('libexecdir', gtk_libexecdir)
+ configure_file(input: 'test-css-style.test.in',
+ output: 'test-css-style.test',
+ configuration: conf,
+ install_dir: testdatadir)
+
+ install_data(test_data, install_dir: testexecdir)
+
+endif
+