2020-03-14 14:28:54 +00:00
|
|
|
diff --git a/installed-tests/meson.build b/installed-tests/meson.build
|
2020-09-20 21:46:56 +00:00
|
|
|
index 04c7910f..9647908c 100644
|
2020-03-14 14:28:54 +00:00
|
|
|
--- a/installed-tests/meson.build
|
|
|
|
+++ b/installed-tests/meson.build
|
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
### Installed tests ############################################################
|
|
|
|
|
2020-09-20 21:46:56 +00:00
|
|
|
-installed_tests_execdir = get_option('prefix') / get_option('libexecdir') / 'installed-tests' / meson.project_name()
|
2020-03-14 14:28:54 +00:00
|
|
|
-installed_tests_metadir = abs_datadir / 'installed-tests' / meson.project_name()
|
2020-09-20 21:46:56 +00:00
|
|
|
+installed_tests_execdir = get_option('installed_test_prefix') / 'libexec' / 'installed-tests' / meson.project_name()
|
2020-03-14 14:28:54 +00:00
|
|
|
+installed_tests_metadir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / meson.project_name()
|
|
|
|
|
|
|
|
# Simple shell script tests #
|
|
|
|
|
2020-06-10 20:43:09 +00:00
|
|
|
diff --git a/meson.build b/meson.build
|
2020-09-20 21:46:56 +00:00
|
|
|
index 9ab29475..42ffe07f 100644
|
2020-06-10 20:43:09 +00:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2020-09-20 21:46:56 +00:00
|
|
|
@@ -557,7 +557,7 @@ install_data('installed-tests/extra/lsan.supp',
|
2020-06-10 20:43:09 +00:00
|
|
|
install_dir: get_option('datadir') / api_name / 'lsan')
|
|
|
|
|
|
|
|
if get_option('installed_tests')
|
|
|
|
- schemadir = abs_datadir / 'glib-2.0' / 'schemas'
|
|
|
|
+ schemadir = get_option('installed_test_prefix') / 'share' / 'glib-2.0' / 'schemas'
|
|
|
|
install_data('installed-tests/js/org.gnome.GjsTest.gschema.xml', install_dir: schemadir)
|
|
|
|
meson.add_install_script('build/compile-gschemas.py', schemadir)
|
|
|
|
endif
|
2020-03-14 14:28:54 +00:00
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
2020-09-20 21:46:56 +00:00
|
|
|
index 825ba77a..21f0323c 100644
|
2020-03-14 14:28:54 +00:00
|
|
|
--- a/meson_options.txt
|
|
|
|
+++ b/meson_options.txt
|
|
|
|
@@ -25,3 +25,5 @@ option('skip_gtk_tests', type: 'boolean', value: false,
|
|
|
|
description: 'Skip tests that need a display connection')
|
|
|
|
option('verbose_logs', type: 'boolean', value: false,
|
|
|
|
description: 'Enable extra log messages that may decrease performance (not allowed in release builds)')
|
|
|
|
+option('installed_test_prefix', type: 'string', value: '',
|
|
|
|
+ description: 'Prefix for installed tests')
|