author | Florian Forster <octo@collectd.org> | |
Mon, 30 Nov 2015 10:35:40 +0000 (11:35 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 30 Nov 2015 10:37:10 +0000 (11:37 +0100) |
1 | 2 | |||
---|---|---|---|---|
src/Makefile.am | patch | | diff1 | | diff2 | | blob | history |
src/ceph.c | patch | | diff1 | | diff2 | | blob | history |
src/daemon/plugin_mock.c | patch | | diff1 | | diff2 | | blob | history |
src/snmp.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc src/Makefile.am
index d2e6bd6f4c64e90a2643488f18525e783e4e4ea4,a9a80891b2100c92b1a6147ddd7b980c825ad3da..59535f6c343949aaf91422a11089cc6bd60c7cdf
--- 1/src/Makefile.am
--- 2/src/Makefile.am
+++ b/src/Makefile.am
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/ceph.c
Simple merge
diff --cc src/daemon/plugin_mock.c
index f7bf1c016ad894f926003ad179112a6196edd161,f3eefd5a6ebc5ebededb1af1206f4f997a330941..b6efa3ad788387528074efc38b258b6ef309b6dd
+++ b/src/daemon/plugin_mock.c
#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];
diff --cc src/snmp.c
Simple merge