summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-09 23:35:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-10-09 23:35:19 -0400
commita45e497fdf41b7194eae55412f50acbddf1c377c (patch)
tree6ff5550c2630bf0729ff173b4f39fad7f565b1c9
parenta2ee124d99b2cb25d13ebfa6c63ea57692b27d9c (diff)
downloadgtk+-a45e497fdf41b7194eae55412f50acbddf1c377c.tar.gz
Install css api test again
-rw-r--r--testsuite/css/meson.build19
1 files changed, 18 insertions, 1 deletions
diff --git a/testsuite/css/meson.build b/testsuite/css/meson.build
index e90cd77c96..e3f6fb385a 100644
--- a/testsuite/css/meson.build
+++ b/testsuite/css/meson.build
@@ -2,5 +2,22 @@ subdir('parser')
subdir('nodes')
subdir('style')
-test_api = executable('api', 'api.c', dependencies: libgtk_dep)
+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')
+
+test_api = executable('api', 'api.c',
+ install: get_option('install-tests'),
+ install_dir: testexecdir,
+ dependencies: libgtk_dep)
test('css/api', test_api)
+
+if get_option('install-tests')
+ conf = configuration_data()
+ conf.set('libexecdir', gtk_libexecdir)
+ configure_file(input: 'api.test.in',
+ output: 'api.test',
+ configuration: conf,
+ install_dir: testdatadir)
+endif
+