@echo "Coverage Report at $(top_builddir)/coverage/html"
check-local:
- @$(MAKE) lcov-reset
- @./src/tests/eeze_suite
- @$(MAKE) lcov-report
+ @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
+ @EEZE_USE_IN_TREE_MODULES=1 ./src/tests/eeze_suite
+ @$(MAKE) $(AM_MAKEFLAGS) lcov-report
else
MAINTAINERCLEANFILES = Makefile.in
AM_CPPFLAGS = @EEZE_CFLAGS@ \
+-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\"
includes_HEADERS = Eeze.h Eeze_Net.h Eeze_Sensor.h
static void
eeze_sensor_modules_load(void)
{
- /* Check for available runtime modules and load them */
- g_handle->modules_array = eina_module_list_get(NULL, PACKAGE_LIB_DIR "/eeze-sensor/", 0, NULL, NULL);
- /* FIXME check for modules also in HOME and other locations */
+ /* Check for available runtime modules and load them. In some cases the
+ * un-installed modules to be used from the local build dir. Coverage check
+ * is one of these items. We do load the modules from the builddir if the
+ * environment is set. Normal case is to use installed modules from system */
+ if (getenv("EEZE_USE_IN_TREE_MODULES"))
+ g_handle->modules_array = eina_module_list_get(NULL, PACKAGE_BUILD_DIR "/src/modules/.libs/", 0, NULL, NULL);
+ else
+ g_handle->modules_array = eina_module_list_get(NULL, PACKAGE_LIB_DIR "/eeze-sensor/", 0, NULL, NULL);
if (!g_handle->modules_array)
{