[glib: 1/2] tests: Move memory_monitor_tests under installed_tests_enabled
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] tests: Move memory_monitor_tests under installed_tests_enabled
- Date: Fri, 28 Feb 2020 14:02:58 +0000 (UTC)
commit 7bdcfcf73a0e7836cc2efbaebf445d4ec83a0827
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date: Thu Feb 27 21:13:19 2020 +0100
tests: Move memory_monitor_tests under installed_tests_enabled
So they're not installed when the latter is disabled.
gio/tests/meson.build | 48 ++++++++++++++++++++++++------------------------
1 file changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/gio/tests/meson.build b/gio/tests/meson.build
index 695ad1f8f..788cf978b 100644
--- a/gio/tests/meson.build
+++ b/gio/tests/meson.build
@@ -521,32 +521,32 @@ if installed_tests_enabled
)
install_subdir('static-link', install_dir : installed_tests_execdir)
install_data('static-link.py', install_dir : installed_tests_execdir)
-endif
-memory_monitor_tests = [
- 'memory-monitor-dbus',
- 'memory-monitor-portal',
-]
+ memory_monitor_tests = [
+ 'memory-monitor-dbus',
+ 'memory-monitor-portal',
+ ]
-foreach memory_monitor_test : memory_monitor_tests
- cdata = configuration_data()
- cdata.set('installed_tests_dir', installed_tests_execdir)
- cdata.set('program', memory_monitor_test + '.py')
- configure_file(
- input: installed_tests_template,
- output: memory_monitor_test + '.test',
- install_dir: installed_tests_metadir,
- configuration: cdata
- )
- cdata = configuration_data()
- cdata.set('libexecdir', join_paths(glib_prefix, get_option('libexecdir')))
- configure_file(
- input: memory_monitor_test + '.py.in',
- output: memory_monitor_test + '.py',
- install_dir : installed_tests_execdir,
- configuration: cdata,
- )
-endforeach
+ foreach memory_monitor_test : memory_monitor_tests
+ cdata = configuration_data()
+ cdata.set('installed_tests_dir', installed_tests_execdir)
+ cdata.set('program', memory_monitor_test + '.py')
+ configure_file(
+ input: installed_tests_template,
+ output: memory_monitor_test + '.test',
+ install_dir: installed_tests_metadir,
+ configuration: cdata
+ )
+ cdata = configuration_data()
+ cdata.set('libexecdir', join_paths(glib_prefix, get_option('libexecdir')))
+ configure_file(
+ input: memory_monitor_test + '.py.in',
+ output: memory_monitor_test + '.py',
+ install_dir : installed_tests_execdir,
+ configuration: cdata,
+ )
+ endforeach
+endif
if not meson.is_cross_build() or meson.has_exe_wrapper()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]