From: Florian Forster Date: Mon, 30 Nov 2015 10:35:40 +0000 (+0100) Subject: Merge branch 'collectd-5.5' X-Git-Tag: collectd-5.6.0~549 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b8c1289003f0d60728f06a43bfcc9bc3de7004c;p=collectd.git Merge branch 'collectd-5.5' --- 4b8c1289003f0d60728f06a43bfcc9bc3de7004c diff --cc src/Makefile.am index d2e6bd6f,a9a80891..59535f6c --- a/src/Makefile.am +++ b/src/Makefile.am @@@ -1410,4 -1365,21 +1410,11 @@@ uninstall-hook rm -f $(DESTDIR)$(sysconfdir)/collectd.conf rm -f $(DESTDIR)$(pkgdatadir)/postgresql_default.conf; -check_PROGRAMS = test_utils_mount test_utils_vl_lookup - -test_utils_mount_SOURCES = utils_mount_test.c testing.h -test_utils_mount_LDADD = libmount.la daemon/libplugin_mock.la - -test_utils_vl_lookup_SOURCES = utils_vl_lookup_test.c testing.h -test_utils_vl_lookup_LDADD = liblookup.la daemon/libplugin_mock.la - -TESTS = test_utils_mount test_utils_vl_lookup -- + if BUILD_PLUGIN_CEPH + test_plugin_ceph_SOURCES = ceph_test.c + test_plugin_ceph_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBYAJL_CPPFLAGS) + test_plugin_ceph_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_LIBYAJL_LDFLAGS) + test_plugin_ceph_LDADD = daemon/libcommon.la daemon/libplugin_mock.la $(BUILD_WITH_LIBYAJL_LIBS) + check_PROGRAMS += test_plugin_ceph + TESTS += test_plugin_ceph + endif diff --cc src/daemon/plugin_mock.c index f7bf1c01,f3eefd5a..b6efa3ad --- a/src/daemon/plugin_mock.c +++ b/src/daemon/plugin_mock.c @@@ -26,10 -26,33 +26,37 @@@ #include "plugin.h" +#if HAVE_LIBKSTAT +kstat_ctl_t *kc = NULL; +#endif /* HAVE_LIBKSTAT */ + + char hostname_g[] = "example.com"; + + int plugin_register_complex_config (const char *type, int (*callback) (oconfig_item_t *)) + { + return ENOTSUP; + } + + int plugin_register_init (const char *name, plugin_init_cb callback) + { + return ENOTSUP; + } + + int plugin_register_read (const char *name, int (*callback) (void)) + { + return ENOTSUP; + } + + int plugin_register_shutdown (const char *name, int (*callback) (void)) + { + return ENOTSUP; + } + + int plugin_dispatch_values (value_list_t const *vl) + { + return ENOTSUP; + } + void plugin_log (int level, char const *format, ...) { char buffer[1024];