base-manager: allow forcing the testing without udev

Even if udev support is really built and available.

This is extremely useful to test the udev-less setup without fully
recompiling the whole daemon.

  E.g.: the daemon can be run like this:
    $ sudo /usr/sbin/ModemManager --debug --test-no-udev

  And then, the kernel events may be reported using mmcli like this:
    $ sudo mmcli --report-kernel-event-auto-scan
This commit is contained in:
Aleksander Morgado
2020-11-09 00:36:13 +01:00
parent 6e642418bb
commit e112896994
3 changed files with 52 additions and 24 deletions

View File

@@ -46,5 +46,8 @@ gboolean mm_context_get_log_relative_timestamps (void);
gboolean mm_context_get_test_session (void);
gboolean mm_context_get_test_enable (void);
const gchar *mm_context_get_test_plugin_dir (void);
#if defined WITH_UDEV
gboolean mm_context_get_test_no_udev (void);
#endif
#endif /* MM_CONTEXT_H */