You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.4 KiB
65 lines
2.4 KiB
if SERVER
|
|
SERVER_tests = zbx_poller_test
|
|
|
|
noinst_PROGRAMS = $(SERVER_tests)
|
|
|
|
COMMON_SRC_FILES = \
|
|
../../zbxmocktest.h
|
|
|
|
POLLER_LIBS = \
|
|
$(top_srcdir)/tests/libzbxmocktest.a \
|
|
$(top_srcdir)/tests/libzbxmockdata.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxlog/libzbxlog.a \
|
|
$(top_srcdir)/src/libs/zbxregexp/libzbxregexp.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo_httpmetrics.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo_http.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/simple/libsimplesysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxthreads/libzbxthreads.a \
|
|
$(top_srcdir)/src/libs/zbxnix/libzbxnix.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/alias/libalias.a \
|
|
$(top_srcdir)/src/libs/zbxconf/libzbxconf.a \
|
|
$(top_srcdir)/src/libs/zbxmutexs/libzbxmutexs.a \
|
|
$(top_srcdir)/src/libs/zbxprof/libzbxprof.a \
|
|
$(top_srcdir)/src/libs/zbxexec/libzbxexec.a \
|
|
$(top_srcdir)/src/libs/zbxjson/libzbxjson.a \
|
|
$(top_srcdir)/src/libs/zbxalgo/libzbxalgo.a \
|
|
$(top_srcdir)/src/libs/zbxhash/libzbxhash.a \
|
|
$(top_srcdir)/src/libs/zbxhttp/libzbxhttp.a \
|
|
$(top_srcdir)/src/libs/zbxvariant/libzbxvariant.a \
|
|
$(top_srcdir)/src/libs/zbxnum/libzbxnum.a \
|
|
$(top_srcdir)/src/libs/zbxcomms/libzbxcomms.a \
|
|
$(top_srcdir)/src/libs/zbxtime/libzbxtime.a \
|
|
$(top_srcdir)/src/libs/zbxstr/libzbxstr.a \
|
|
$(top_srcdir)/src/libs/zbxip/libzbxip.a \
|
|
$(top_srcdir)/src/libs/zbxfile/libzbxfile.a \
|
|
$(top_srcdir)/src/libs/zbxparam/libzbxparam.a \
|
|
$(top_srcdir)/src/libs/zbxexpr/libzbxexpr.a \
|
|
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \
|
|
$(top_srcdir)/src/libs/zbxcompress/libzbxcompress.a \
|
|
$(top_srcdir)/src/libs/zbxserialize/libzbxserialize.a \
|
|
$(top_srcdir)/src/libs/zbxcrypto/libzbxcrypto.a \
|
|
$(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
|
|
|
|
zbx_poller_test_SOURCES = \
|
|
../../../src/zabbix_server/poller/checks_ssh.c \
|
|
../../../src/zabbix_server/poller/checks_telnet.c \
|
|
zbx_poller_test.c \
|
|
test_get_value_ssh.c \
|
|
test_get_value_telnet.c \
|
|
../../zbxmockexit.c \
|
|
../../zbxmockfile.c \
|
|
../../zbxmocklog.c \
|
|
../../zbxmockdir.c
|
|
|
|
zbx_poller_test_LDADD = $(POLLER_LIBS)
|
|
zbx_poller_test_LDADD += @SERVER_LIBS@
|
|
zbx_poller_test_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) \
|
|
-Wl,--wrap=ssh_run \
|
|
-Wl,--wrap=telnet_run
|
|
|
|
zbx_poller_test_CFLAGS = \
|
|
-I@top_srcdir@/tests @LIBXML2_CFLAGS@ $(CMOCKA_CFLAGS) $(YAML_CFLAGS) $(TLS_CFLAGS)
|
|
endif
|