fibocom: include udev rules tests

This commit is contained in:
Aleksander Morgado
2018-08-08 14:05:51 +02:00
committed by Dan Williams
parent 475e182819
commit 36e09ef441
2 changed files with 11 additions and 2 deletions

View File

@@ -1036,8 +1036,6 @@ libmm_plugin_quectel_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
# plugin: fibocom
################################################################################
dist_udevrules_DATA += fibocom/77-mm-fibocom-port-types.rules
pkglib_LTLIBRARIES += libmm-plugin-fibocom.la
libmm_plugin_fibocom_la_SOURCES = \
fibocom/mm-plugin-fibocom.c \
@@ -1047,6 +1045,10 @@ libmm_plugin_fibocom_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS) $(XMM_COMMON_
libmm_plugin_fibocom_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
libmm_plugin_fibocom_la_LIBADD = $(XMM_COMMON_LIBADD_FLAGS)
dist_udevrules_DATA += fibocom/77-mm-fibocom-port-types.rules
AM_CFLAGS += -DTESTUDEVRULESDIR_FIBOCOM=\"${srcdir}/fibocom\"
################################################################################
# udev rules tester
################################################################################

View File

@@ -118,6 +118,12 @@ test_haier (void)
common_test (TESTUDEVRULESDIR_HAIER);
}
static void
test_fibocom (void)
{
common_test (TESTUDEVRULESDIR_FIBOCOM);
}
/************************************************************/
void
@@ -158,6 +164,7 @@ int main (int argc, char **argv)
g_test_add_func ("/MM/test-udev-rules/telit", test_telit);
g_test_add_func ("/MM/test-udev-rules/mtk", test_mtk);
g_test_add_func ("/MM/test-udev-rules/haier", test_haier);
g_test_add_func ("/MM/test-udev-rules/fibocom", test_fibocom);
return g_test_run ();
}