mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gio: Add GPowerProfileMonitor tests
Tests both the portal and direct D-Bus variants.
This commit is contained in:
@@ -541,27 +541,29 @@ if installed_tests_enabled
|
||||
install_subdir('static-link', install_dir : installed_tests_execdir)
|
||||
install_data('static-link.py', install_dir : installed_tests_execdir)
|
||||
|
||||
memory_monitor_tests = [
|
||||
monitor_tests = [
|
||||
'memory-monitor-dbus',
|
||||
'memory-monitor-portal',
|
||||
'power-profile-monitor-dbus',
|
||||
'power-profile-monitor-portal'
|
||||
]
|
||||
|
||||
foreach memory_monitor_test : memory_monitor_tests
|
||||
foreach monitor_test : monitor_tests
|
||||
cdata = configuration_data()
|
||||
cdata.set('installed_tests_dir', installed_tests_execdir)
|
||||
cdata.set('program', memory_monitor_test + '.py')
|
||||
cdata.set('program', monitor_test + '.py')
|
||||
cdata.set('env', '')
|
||||
configure_file(
|
||||
input: installed_tests_template_tap,
|
||||
output: memory_monitor_test + '.test',
|
||||
output: 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',
|
||||
input: monitor_test + '.py.in',
|
||||
output: monitor_test + '.py',
|
||||
install_dir : installed_tests_execdir,
|
||||
configuration: cdata,
|
||||
)
|
||||
|
Reference in New Issue
Block a user