if SERVER SERVER_tests = \ zbx_eval_parse_expression \ zbx_eval_serialize \ zbx_eval_compose_expression \ zbx_eval_execute \ zbx_eval_execute_ext \ zbx_eval_get_constant \ zbx_eval_prepare_filter \ zbx_eval_get_group_filter \ zbx_eval_parse_query endif noinst_PROGRAMS = $(SERVER_tests) if SERVER COMMON_SRC_FILES = \ ../../zbxmocktest.h COMMON_LIB_FILES = \ $(top_srcdir)/tests/libzbxmocktest.a \ $(top_srcdir)/tests/libzbxmockdata.a \ $(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \ $(top_srcdir)/src/libs/zbxthreads/libzbxthreads.a \ $(top_srcdir)/src/zabbix_server/alerter/libzbxalerter.a \ $(top_srcdir)/src/libs/zbxdbsyncer/libzbxdbsyncer.a \ $(top_srcdir)/src/zabbix_server/dbconfig/libzbxdbconfig.a \ $(top_srcdir)/src/zabbix_server/discoverer/libzbxdiscoverer.a \ $(top_srcdir)/src/zabbix_server/pinger/libzbxpinger.a \ $(top_srcdir)/src/zabbix_server/poller/libzbxpoller.a \ $(top_srcdir)/src/zabbix_server/housekeeper/libzbxhousekeeper.a \ $(top_srcdir)/src/zabbix_server/timer/libzbxtimer.a \ $(top_srcdir)/src/zabbix_server/trapper/libzbxtrapper.a \ $(top_srcdir)/src/zabbix_server/snmptrapper/libzbxsnmptrapper.a \ $(top_srcdir)/src/zabbix_server/httppoller/libzbxhttppoller.a \ $(top_srcdir)/src/zabbix_server/escalator/libzbxescalator.a \ $(top_srcdir)/src/zabbix_server/proxypoller/libzbxproxypoller.a \ $(top_srcdir)/src/zabbix_server/vmware/libzbxvmware.a \ $(top_srcdir)/src/zabbix_server/taskmanager/libzbxtaskmanager.a \ $(top_srcdir)/src/zabbix_server/ipmi/libipmi.a \ $(top_srcdir)/src/libs/zbxodbc/libzbxodbc.a \ $(top_srcdir)/src/libs/zbxscripts/libzbxscripts.a \ $(top_srcdir)/src/libs/zbxhistory/libzbxhistory.a \ $(top_srcdir)/src/libs/zbxeval/libzbxeval.a \ $(top_srcdir)/src/libs/zbxfile/libzbxfile.a \ $(top_srcdir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \ $(top_srcdir)/src/libs/zbxexpression/libzbxexpression.a \ $(top_srcdir)/src/libs/zbxcacheconfig/libzbxcacheconfig.a \ $(top_srcdir)/src/libs/zbxcachehistory/libzbxcachehistory.a \ $(top_srcdir)/src/libs/zbxcachevalue/libzbxcachevalue.a \ $(top_srcdir)/src/libs/zbxexport/libzbxexport.a \ $(top_srcdir)/src/libs/zbxeval/libzbxeval.a \ $(top_srcdir)/src/libs/zbxpreproc/libzbxpreprocbase.a \ $(top_srcdir)/src/libs/zbxhistory/libzbxhistory.a \ $(top_srcdir)/src/libs/zbxfile/libzbxfile.a \ $(top_srcdir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \ $(top_srcdir)/src/libs/zbxexpression/libzbxexpression.a \ $(top_srcdir)/src/libs/zbxcacheconfig/libzbxcacheconfig.a \ $(top_srcdir)/src/libs/zbxserialize/libzbxserialize.a \ $(top_srcdir)/src/libs/zbxtrends/libzbxtrends.a \ $(top_srcdir)/src/libs/zbxfile/libzbxfile.a \ $(top_srcdir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \ $(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo.a \ $(top_srcdir)/src/libs/zbxsysinfo/simple/libsimplesysinfo.a \ $(top_srcdir)/src/libs/zbxsysinfo/alias/libalias.a \ $(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo_httpmetrics.a \ $(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo_http.a \ $(top_srcdir)/src/libs/zbxshmem/libzbxshmem.a \ $(top_srcdir)/src/libs/zbxself/libzbxself.a \ $(top_srcdir)/src/libs/zbxtimekeeper/libzbxtimekeeper.a \ $(top_srcdir)/src/libs/zbxmedia/libzbxmedia.a \ $(top_srcdir)/src/libs/zbxparam/libzbxparam.a \ $(top_srcdir)/src/libs/zbxfile/libzbxfile.a \ $(top_srcdir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \ $(top_srcdir)/src/libs/zbxexpression/libzbxexpression.a \ $(top_srcdir)/src/libs/zbxavailability/libzbxavailability.a \ $(top_srcdir)/src/libs/zbxtagfilter/libzbxtagfilter.a \ $(top_srcdir)/src/libs/zbxconnector/libzbxconnector.a \ $(top_srcdir)/src/libs/zbxcomms/libzbxcomms.a \ $(top_srcdir)/src/libs/zbxcompress/libzbxcompress.a \ $(top_srcdir)/src/libs/zbxcrypto/libzbxcrypto.a \ $(top_srcdir)/src/libs/zbxcommshigh/libzbxcommshigh.a \ $(top_srcdir)/src/libs/zbxvariant/libzbxvariant.a \ $(top_srcdir)/src/libs/zbxregexp/libzbxregexp.a \ $(top_srcdir)/src/libs/zbxipcservice/libzbxipcservice.a \ $(top_srcdir)/src/libs/zbxexec/libzbxexec.a \ $(top_srcdir)/src/libs/zbxicmpping/libzbxicmpping.a \ $(top_srcdir)/src/libs/zbxdbupgrade/libzbxdbupgrade.a \ $(top_srcdir)/src/libs/zbxdb/libzbxdb.a \ $(top_srcdir)/src/libs/zbxmodules/libzbxmodules.a \ $(top_srcdir)/src/libs/zbxtasks/libzbxtasks.a \ $(top_srcdir)/src/libs/zbxhistory/libzbxhistory.a \ $(top_srcdir)/src/libs/zbxjson/libzbxjson.a \ $(top_srcdir)/src/libs/zbxfile/libzbxfile.a \ $(top_srcdir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \ $(top_srcdir)/src/zabbix_server/libzbxserver.a \ $(top_srcdir)/src/libs/zbxevent/libzbxevent.a \ $(top_srcdir)/src/libs/zbxdbhigh/libzbxdbhigh.a \ $(top_srcdir)/src/libs/zbxdbwrap/libzbxdbwrap.a \ $(top_srcdir)/src/libs/zbxdbschema/libzbxdbschema.a \ $(top_srcdir)/src/libs/zbxvault/libzbxvault.a \ $(top_builddir)/src/libs/zbxkvs/libzbxkvs.a \ $(top_srcdir)/src/libs/zbxhttp/libzbxhttp.a \ $(top_srcdir)/src/libs/zbxxml/libzbxxml.a \ $(top_srcdir)/src/libs/zbxexpr/libzbxexpr.a \ $(top_srcdir)/src/libs/zbxlog/libzbxlog.a \ $(top_srcdir)/src/libs/zbxconf/libzbxconf.a \ $(top_srcdir)/src/libs/zbxthreads/libzbxthreads.a \ $(top_srcdir)/src/libs/zbxtime/libzbxtime.a \ $(top_srcdir)/src/libs/zbxmutexs/libzbxmutexs.a \ $(top_srcdir)/src/libs/zbxprof/libzbxprof.a \ $(top_srcdir)/src/libs/zbxalgo/libzbxalgo.a \ $(top_srcdir)/src/libs/zbxhash/libzbxhash.a \ $(top_srcdir)/src/libs/zbxip/libzbxip.a \ $(top_srcdir)/src/libs/zbxnix/libzbxnix.a \ $(top_srcdir)/src/libs/zbxstr/libzbxstr.a \ $(top_srcdir)/src/libs/zbxnum/libzbxnum.a \ $(top_srcdir)/tests/libzbxmockdata.a \ $(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS) COMMON_COMPILER_FLAGS = -I@top_srcdir@/tests $(CMOCKA_CFLAGS) $(YAML_CFLAGS) $(TLS_CFLAGS) zbx_eval_parse_expression_SOURCES = \ zbx_eval_parse_expression.c \ mock_eval.c mock_eval.h zbx_eval_parse_expression_LDADD = $(COMMON_LIB_FILES) zbx_eval_parse_expression_LDADD += @SERVER_LIBS@ zbx_eval_parse_expression_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_parse_expression_CFLAGS = $(COMMON_COMPILER_FLAGS) zbx_eval_serialize_SOURCES = \ zbx_eval_serialize.c zbx_eval_serialize_LDADD = $(COMMON_LIB_FILES) zbx_eval_serialize_LDADD += @SERVER_LIBS@ zbx_eval_serialize_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_serialize_CFLAGS = $(COMMON_COMPILER_FLAGS) zbx_eval_compose_expression_SOURCES = \ zbx_eval_compose_expression.c \ mock_eval.c mock_eval.h zbx_eval_compose_expression_LDADD = $(COMMON_LIB_FILES) zbx_eval_compose_expression_LDADD += @SERVER_LIBS@ zbx_eval_compose_expression_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_compose_expression_CFLAGS = $(COMMON_COMPILER_FLAGS) zbx_eval_execute_SOURCES = \ zbx_eval_execute.c \ mock_eval.c mock_eval.h zbx_eval_execute_LDADD = $(COMMON_LIB_FILES) zbx_eval_execute_LDADD += @SERVER_LIBS@ zbx_eval_execute_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_execute_CFLAGS = $(COMMON_COMPILER_FLAGS) zbx_eval_execute_ext_SOURCES = \ zbx_eval_execute_ext.c \ mock_eval.c mock_eval.h zbx_eval_execute_ext_LDADD = $(COMMON_LIB_FILES) zbx_eval_execute_ext_LDADD += @SERVER_LIBS@ zbx_eval_execute_ext_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_execute_ext_CFLAGS = $(COMMON_COMPILER_FLAGS) zbx_eval_get_constant_SOURCES = \ zbx_eval_get_constant.c \ mock_eval.c mock_eval.h zbx_eval_get_constant_LDADD = $(COMMON_LIB_FILES) zbx_eval_get_constant_LDADD += @SERVER_LIBS@ zbx_eval_get_constant_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_get_constant_CFLAGS = $(COMMON_COMPILER_FLAGS) zbx_eval_prepare_filter_SOURCES = \ zbx_eval_prepare_filter.c \ mock_eval.c mock_eval.h zbx_eval_prepare_filter_LDADD = $(COMMON_LIB_FILES) zbx_eval_prepare_filter_LDADD += @SERVER_LIBS@ zbx_eval_prepare_filter_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_prepare_filter_CFLAGS = $(COMMON_COMPILER_FLAGS) zbx_eval_get_group_filter_SOURCES = \ zbx_eval_get_group_filter.c \ mock_eval.c mock_eval.h zbx_eval_get_group_filter_LDADD = $(COMMON_LIB_FILES) zbx_eval_get_group_filter_LDADD += @SERVER_LIBS@ zbx_eval_get_group_filter_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_get_group_filter_CFLAGS = $(COMMON_COMPILER_FLAGS) zbx_eval_parse_query_SOURCES = \ zbx_eval_parse_query.c \ mock_eval.c mock_eval.h zbx_eval_parse_query_LDADD = $(COMMON_LIB_FILES) zbx_eval_parse_query_LDADD += @SERVER_LIBS@ zbx_eval_parse_query_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) zbx_eval_parse_query_CFLAGS = $(COMMON_COMPILER_FLAGS) endif