Commit Graph
59 Commits
Author SHA1 Message Date
Dylan Van Assche ba96ccc615 build: make tests optional
Add a meson option -Dtests and --without-tests automake option
to disable the compilation of all available testcases.
This is useful for compiling projects with Flatpak such as
GNOME Control Center which disables all possible integrations since they
only need the DBus part of ModemManager.

Contributes to https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1392
2022-07-25 11:01:51 +02:00
Frederic Martinsons 519df2544b tools: add new system daemon stub tester application
This script mock some of ModemManager DBus interfaces (main object, Modem, Sim),
it also adds a test interface "org.freedesktop.ModemManager1.LibmmGlibTest"
which allow to inject some errors and simulate behavior:
  - Add a modem object
  - Emit modem state changed
  - Set modem error

This script also add the possibility to log in a file for debugging purpose.
Because the stdout/stderr are not shown when the program is spawned by DBus
auto activation.

Note: Script is heavily inspired from test-networkmanager-service.py from
NetworkManager project

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
2020-11-12 18:34:59 +01:00
Dan Williams 1c14ca7262 libwmc: remove it
The WMC protocol was only present on older Panasonic/Verizon devices
from the 2006 - 2011 timeframe. The last device to support WMC was
the UML290 which also supported QMI (which is much more functional).
ModemManager also never used WMC support and it was never significantly
reverse engineered.

So remove WMC code from git; it'll still be in the history if anyone
cares in the future.
2019-04-02 11:20:11 -05:00
Aleksander Morgado bfff4f53e6 build: generate ChangeLog from git during dist 2017-09-13 19:38:11 +02:00
Aleksander Morgado 984625165e i18n: deprecate intltool and use only gettext 0.19.8
Instead of mixing both intltool and gettext, which not always work
correctly together, this patch obsoletes intltool and uses only
gettext, which includes support for translating XML files with ITS
rules.

See migration steps for GNOME projects here:
  https://wiki.gnome.org/MigratingFromIntltoolToGettext

The gettext ITS rules for polkit policy files are imported from the
upstream polkit repository. We don't use the polkit-installed rule
files yet because there is no tagged release that contains those files
yet, so we cannot build-depend on any specific polkit version.
  https://bugs.freedesktop.org/show_bug.cgi?id=96940
2017-09-07 13:04:34 +02:00
Sam Spilsbury a0b95db2b9 Makefile: Move to AM_DISTCHECK_CONFIGURE_FLAGS
Since automake 1.11.2 it is recommended that packages
use AM_DISTCHECK_CONFIGURE_FLAGS instead of
DISTCHECK_CONFIGURE_FLAGS as the latter is intended
to be a user variable.

https://bugs.freedesktop.org/show_bug.cgi?id=95826
2016-10-26 17:28:03 +02:00
Aleksander Morgado eeb9e2bdcc build: end all multiline list variables with $(NULL)
So that appending a new item in the list only inserts one new line (i.e. the
last $(NULL) is the last item always).
2016-03-15 19:15:25 +01:00
Jakub Sitnicki 7552030ef9 build: add code coverage support
Build all targets, except for CLI tools (mmcli, uml290), with special
flags needed for collecting code coverage information when the build has
been configured with --enable-code-coverage.

Three new targets are available in the top build directory:

 - `check-code-coverage' runs the test suite and generates a code
   coverage report,

 - `code-coverage-capture' generates a code coverage report from already
   collected data, which can come in handy when one wants to see code
   paths touched by a particular test,

 - `code-coverage-clean' removes the collected coverage data and the
   generated reports.
2015-01-11 19:32:43 +01:00
Aleksander Morgado ebff76cfaa examples: add modem watcher example in python 2014-04-11 10:31:01 +02:00
Aleksander Morgado 22193e2f3a license: add LGPLv2+ license in addition to the GPLv2+ one
This is not a license change; the daemon and command line tool are still GPLv2+,
and the libmm-glib library LGPLv2+.

For reference, see libqmi bug:
  https://bugs.freedesktop.org/show_bug.cgi?id=74220
2014-03-05 11:49:09 +01:00
Christian Persch bfae863296 libmm-glib: Add vala bindings
Bug #705641.
2013-08-14 13:30:35 +02:00
Aleksander Morgado b8825f79d5 build: remove '--with-tests' from the distcheck configure flags 2013-06-21 10:23:10 +02:00
Aleksander Morgado 3862ed6dfd build: add gtester.make to the dist tarball 2013-06-21 10:22:56 +02:00
Aleksander Morgado e134a81a87 build: use --enable-gtk-doc instead of our custom --with-docs 2013-05-26 19:16:39 +02:00
Dan Williams 974471e295 build: distribute autogen.sh 2013-03-12 15:46:33 -05:00
Aleksander Morgado 222825d642 systemd: include systemd unit file support
Allow having systemd handling the life cycle of the ModemManager process.
2013-02-06 17:32:59 +01:00
Aleksander Morgado b6d628b3a1 build: merge libmm-common into libmm-glib
It's pointless to have libmm-common around, just merge it into libmm-glib and
make ModemManager depend on libmm-glib directly. At the end, the non-common
stuff in libmm-glib is really minimal.
2012-10-04 10:17:05 +02:00
Dan Williams e7b1c48daf uml290: add mode switching tool
Switches UML290 mode between 4G/LTE, 3G/EVDO/1X, and auto.
2012-05-30 11:48:42 -05:00
Aleksander Morgado c55b5d097e marshallers: integrate them into the daemon compilation 2012-03-16 14:53:16 +01:00
Aleksander Morgado 8f450d82b6 cli: initial cli implementation 2012-03-15 14:14:25 +01:00
Aleksander Morgado ba0e4ca88e libmm-glib: setup build of the libmm-glib library
The library will contain a small layer of code on top of the proxies and object
manager client generated by gdbus-codegen. Therefore, the headers auto-generated
from the DBus introspection XMLs need to be distributed along with the
libmm-glib specific headers.
2012-03-15 14:14:25 +01:00
Aleksander Morgado 8d97538c72 build: setup all data (polkit, icon, dbus...) in the same `data' directory
Also fixed dist when not using polkit, the icon was no longer included in the
tarball.
2012-03-15 14:14:19 +01:00
Aleksander Morgado 09f40c8369 docs: setup generation of gtk-doc based DBus API documentation
It includes gdbus-codegen generated API documentation, plus the common Enums,
Flags and Errors, which will also be used in libmm-glib.
2012-03-15 14:14:19 +01:00
Aleksander Morgado a57c3bcf36 docs: remove generation of previous DBus API documentation 2012-03-15 14:14:18 +01:00
Aleksander Morgado ade484826c libmm-common: setup new library, with the gdbus-codegen generated code
This library will not (probably) be installable, but will share the GDBus
and new Enum/Flag/Error type support between the core daemon and the new
libmm-glib library.
2012-03-15 14:14:18 +01:00
Aleksander Morgado 365b906a3e build: setup header generator in its own include/Makefile
Also move helper files to the new `build-aux' directory.
2012-03-15 14:14:18 +01:00
Aleksander Morgado 36ee1b9c76 build: include proper build dependencies for the polkit conf file
So that the final conf file is updated if the original one gets modified.
2012-02-26 22:10:48 +01:00
Dan Williams 96210d1c55 dbus: don't install introspection XML we don't really own
MM implements the DBus properties interface and of course that
requires some XML on our side for dbus-glib.  But we shouldn't
install that along with our ModemManager-specific XML.
2012-01-09 17:23:42 -06:00
Thomas Bechtold 83c9058376 build: remove duplicate 'policy' directory entry from SUBDIRS
It is already added when WITH_POLKIT is set.
2011-11-07 00:03:11 +01:00
Dan Williams 3dd4cdaf2b libwmc: beginning of bits for WMC-based devices like UML290 2011-09-17 13:27:54 -05:00
Aleksander Morgado c4a8291349 build: ensure common header is built first 2011-08-17 16:21:21 +02:00
Aleksander Morgado 2dee5b0ae0 api: rename common header to ModemManager.h 2011-08-17 16:21:21 +02:00
Dan Williams 868129e37c build: build docs during distcheck and fix up udev rules install base 2011-05-04 11:33:20 -05:00
Dan Williams 383bf8c9a3 Revert "build: po shouldn't be built unless --with-polkit=yes"
This reverts commit ba17060219.
2011-04-27 14:46:52 -05:00
Dan Williams ba17060219 build: po shouldn't be built unless --with-polkit=yes
Since translations are only used with polkit.
2011-04-27 13:25:10 -05:00
Dan Williams e208c52846 api: don't install all.xml
It's not really part of the API.
2011-02-01 21:06:23 -06:00
Dan Williams 36c87991c3 build: fix distcheck after introspection XML renames 2010-12-21 11:55:25 -06:00
Jason Glasgow 241bef544d Install xml introspection files for DBus interfaces.
Review URL: http://codereview.chromium.org/1618004

Change-Id: Ib362c3dcdeb91472a64cf9edb6b4e0ddbcffe93a
2010-12-20 11:24:43 -05:00
Jason Glasgow 33c991f3ad Generate a header file for ModemManager
Generate a header file for ModemManager with service names and paths,
method names and enums.

Review URL: http://codereview.chromium.org/1409001
2010-12-20 11:07:27 -05:00
Dan Williams add7fa705c build: enable tests for 'make distcheck'
No idea why this wasn't done before...
2010-10-14 00:07:25 -05:00
Dan Williams 179604d6cb build: another distcheck fix 2010-03-12 15:33:46 -08:00
Dan Williams f6c514897e Merge remote branch 'origin/master' into qcdm 2010-03-01 09:07:05 -08:00
Dan Williams 20796148ce build: fix build after bffb332481 2010-02-27 07:49:57 -08:00
Dan Williams bffb332481 core: install correct dbus permissions for with-polkit/without-polkit 2010-02-27 06:25:45 -08:00
Dan Williams 438a047935 core: add authorization providers and optional PolicyKit support
When the support is complete, use --with-polkit to enable
PolicyKit support.  It's not there yet, but this commit adds an
authorization provider framework which will be extended to allow
hooking into PolicyKit.
2010-02-26 18:01:55 -08:00
Dan Williams 9d8e892ffe Merge remote branch 'origin/master' into qcdm 2010-02-20 12:49:22 -08:00
Dan Williams 16b2f40f1c policy: add basic PolicyKit authorizations 2010-02-19 18:21:07 -08:00
Dan Williams 9c958c99bc build: add intltool support for PolicyKit policy translations 2010-02-16 11:03:16 -08:00
Dan Williams 704d6e90b6 qcdm: add DM protocol utilities and testcases
Bits for CRC calculation and frame escaping/unescaping.
2010-02-08 09:13:17 -08:00
Michael Biebl 22f6ab4dc6 build: use separate directory for m4 macros 2010-01-27 15:48:10 -08:00