aboutsummaryrefslogtreecommitdiff
path: root/plugins/tests/test-udev-rules.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-03-26 15:35:16 +0100
committerAleksander Morgado <aleksander@aleksander.es>2022-03-26 15:51:11 +0100
commit1fdc3ac703b03da7824c249c65c39d2499f75649 (patch)
treeb136bcbd759ba882b923e1d3e4344832cceeb8d0 /plugins/tests/test-udev-rules.c
parente8bb90e006179aa7f38fba1657d6f884ef488164 (diff)
linktop: new port type hints
Flag ttyACM0 as data port and ttyACM1 as primary port, as per https://bugzilla.gnome.org/show_bug.cgi?id=637140#c10 Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/14
Diffstat (limited to 'plugins/tests/test-udev-rules.c')
-rw-r--r--plugins/tests/test-udev-rules.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/tests/test-udev-rules.c b/plugins/tests/test-udev-rules.c
index b7f06d35..fe11c783 100644
--- a/plugins/tests/test-udev-rules.c
+++ b/plugins/tests/test-udev-rules.c
@@ -184,6 +184,14 @@ test_qcom_soc (void)
}
#endif
+#if defined ENABLE_PLUGIN_LINKTOP
+static void
+test_linktop (void)
+{
+ common_test (TESTUDEVRULESDIR_LINKTOP);
+}
+#endif
+
/************************************************************/
int main (int argc, char **argv)
@@ -241,6 +249,9 @@ int main (int argc, char **argv)
#if defined ENABLE_PLUGIN_QCOM_SOC && defined WITH_QMI
g_test_add_func ("/MM/test-udev-rules/qcom-soc", test_qcom_soc);
#endif
+#if defined ENABLE_PLUGIN_LINKTOP
+ g_test_add_func ("/MM/test-udev-rules/linktop", test_linktop);
+#endif
return g_test_run ();
}