mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 05:30:03 +01:00
linux: Add installed-tests manifest
This will allow running the tests to target installed binaries.
This commit is contained in:
parent
e4e498e198
commit
bdc5638627
2 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
3
src/upower-integration.test.in
Normal file
3
src/upower-integration.test.in
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[Test]
|
||||
Type=session
|
||||
Exec=@libexecdir@/upower/integration-test.py
|
||||
Loading…
Add table
Reference in a new issue