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>
This commit is contained in:
Frederic Martinsons
2021-01-15 16:44:19 +00:00
committed by Frédéric Martinsons
parent 17ea1dfa13
commit 89cd1696c3
8 changed files with 523 additions and 2 deletions
+4
View File
@@ -175,5 +175,9 @@ Makefile.in
/test/mmsmspdu
/test/mmsmsmonitor
/tools/tests/services/org.freedesktop.ModemManager1.service
/tools/tests/test-stub
/tools/tests/test-wrapper.sh
/ModemManager-*-coverage.info
/ModemManager-*-coverage/