mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 06:40:04 +01:00
build: Require GIR to be created to run tests
This commit is contained in:
parent
9035db94fc
commit
b68fe26fc9
2 changed files with 3 additions and 4 deletions
|
|
@ -88,7 +88,5 @@ if gobject_introspection.found()
|
|||
],
|
||||
install : true)
|
||||
|
||||
gir_dep = declare_dependency(sources: gir)
|
||||
else
|
||||
gir_dep = dependency('', required: false)
|
||||
libupower_glib_typelib = gir[1]
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ test(
|
|||
|
||||
# On Linux, we can run the additional integration test;
|
||||
# defined here as we would have a circular dependency otherwise.
|
||||
if os_backend == 'linux' and gir_dep.found()
|
||||
if os_backend == 'linux' and gobject_introspection.found()
|
||||
env = environment()
|
||||
env.prepend('top_builddir', join_paths(meson.build_root()))
|
||||
env.prepend('LD_LIBRARY_PATH', join_paths(meson.build_root(), 'libupower-glib'))
|
||||
|
|
@ -134,6 +134,7 @@ if os_backend == 'linux' and gir_dep.found()
|
|||
python3,
|
||||
args: ut_args,
|
||||
env: env,
|
||||
depends: [ libupower_glib_typelib, upowerd ],
|
||||
)
|
||||
endforeach
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue