5 Commits
Author SHA1 Message Date
Alyssa Ross daa8292878 build: prepend to LD_LIBRARY_PATH and GI_TYPELIB_PATH
In Nixpkgs packages are installed in separate prefixes.
Starting from GLib / gobject-introspection 2.80, GLib introspection data
is provided by GLib itself instead of gobject-introspection. This causes
tests failures in Nixpkgs because the GI_TYPELIB_PATH set by the build
environment was overridden, leaving it unable to find GLib:

	    ImportError: cannot import name GLib, introspection typelib not found

Only GI_TYPELIB_PATH needs to be preserved in our case, but I've made
the same change for LD_LIBRARY_PATH, other environments might rely on
that in a similar way.
2024-05-08 09:53:14 +02:00
Frederic Martinsons 99570090ea build: set LD_LIBRARY_PATH along with GI_TYPELIB_PATH when launching stub
Otherwise we may use a wrong typelib shared library (the one that
is installed on the system which run the test)

Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
2023-01-09 14:17:22 +00:00
Aleksander Morgado d2bc98a1eb tools,tests: make test-wrapper.sh.in template executable
So that when the meson build does the template replacement, the
generated file is also executable and can be used as Exec line in the
test DBus service file.

Fixes the 'test-stub' unit test in meson.
2022-02-16 00:27:51 +01:00
Bruce A. Johnson 91ed72aa29 core: switch bash shell scripts to use /bin/sh for use w/Busybox.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/483
2022-01-05 10:26:16 +01:00
Frederic Martinsons 89cd1696c3 tools: add unit test for test-modemmanager-service.py
The tests spawn the service via GTestDBus framework and make
some test API call while checking libmm interface to verify
that informations are well propagated.

To be able to use the fresh built libmm typelib, I used a
wrapper script to set GI_TYPELIB_PATH (because DBus activation
process clean the environment so it is not possible to set
it directly in the file).

This requires also the install of libgirepository-dev and python3-gi
in the CI docker.

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
2021-01-15 16:44:19 +00:00