quectel: add udev rules unit tester
This commit is contained in:
@@ -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
|
||||
|
||||
################################################################################
|
||||
|
@@ -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 ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user