linux: Add installed-tests manifest

This will allow running the tests to target installed binaries.
This commit is contained in:
Bastien Nocera 2023-07-06 10:11:34 +02:00
parent e4e498e198
commit bdc5638627
2 changed files with 20 additions and 0 deletions

View file

@ -142,4 +142,21 @@ if os_backend == 'linux' and gobject_introspection.found()
timeout: 80,
)
endforeach
install_data( [
'linux/integration-test.py',
'linux/output_checker.py',
],
install_dir: get_option('prefix') / get_option('libexecdir') / 'upower'
)
install_subdir('linux/tests/',
install_dir: get_option('prefix') / get_option('libexecdir') / 'upower'
)
configure_file(
input: 'upower-integration.test.in',
output: 'upower-integration.test',
install_dir: get_option('datadir') / 'installed-tests' / 'upower',
configuration: cdata
)
endif

View file

@ -0,0 +1,3 @@
[Test]
Type=session
Exec=@libexecdir@/upower/integration-test.py