quectel: add udev rules unit tester

This commit is contained in:
Aleksander Morgado
2020-08-16 11:06:57 +02:00
parent d9a64c74ff
commit 55ae47a3bb
2 changed files with 14 additions and 2 deletions

View File

@@ -1155,8 +1155,6 @@ endif
if ENABLE_PLUGIN_QUECTEL
dist_udevrules_DATA += quectel/77-mm-quectel-port-types.rules
pkglib_LTLIBRARIES += libmm-plugin-quectel.la
libmm_plugin_quectel_la_SOURCES = \
quectel/mm-plugin-quectel.c \
@@ -1178,6 +1176,9 @@ libmm_plugin_quectel_la_CPPFLAGS = \
$(NULL)
libmm_plugin_quectel_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
dist_udevrules_DATA += quectel/77-mm-quectel-port-types.rules
AM_CFLAGS += -DTESTUDEVRULESDIR_QUECTEL=\"${srcdir}/quectel\"
endif
################################################################################

View File

@@ -160,6 +160,14 @@ test_fibocom (void)
}
#endif
#if defined ENABLE_PLUGIN_QUECTEL
static void
test_quectel (void)
{
common_test (TESTUDEVRULESDIR_QUECTEL);
}
#endif
/************************************************************/
int main (int argc, char **argv)
@@ -208,6 +216,9 @@ int main (int argc, char **argv)
#if defined ENABLE_PLUGIN_FIBOCOM
g_test_add_func ("/MM/test-udev-rules/fibocom", test_fibocom);
#endif
#if defined ENABLE_PLUGIN_QUECTEL
g_test_add_func ("/MM/test-udev-rules/quectel", test_quectel);
#endif
return g_test_run ();
}