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.

313 lines
12 KiB

1 year ago
if SERVER
SERVER_tests = \
zbx_vc_get_values \
zbx_vc_add_values \
zbx_vc_get_value \
dc_maintenance_match_tags \
dc_check_maintenance_period \
is_item_processed_by_server \
dc_item_poller_type_update \
dc_expand_user_macros_in_func_params \
dc_function_calculate_nextcheck \
um_cache_sync \
um_cache_resolve \
um_cache_resolve_cont
endif
noinst_PROGRAMS = $(SERVER_tests)
if SERVER
VALUECACHE_LIBS = \
$(top_srcdir)/src/libs/zbxcomms/libzbxcomms.a \
$(top_srcdir)/src/libs/zbxcompress/libzbxcompress.a \
$(top_srcdir)/src/libs/zbxhash/libzbxhash.a \
$(top_srcdir)/src/libs/zbxcrypto/libzbxcrypto.a \
$(top_srcdir)/src/libs/zbxshmem/libzbxshmem.a \
$(top_srcdir)/tests/mocks/valuecache/libvaluecachemock.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/zbxvariant/libzbxvariant.a \
$(top_srcdir)/src/libs/zbxaudit/libzbxaudit.a \
$(top_srcdir)/src/libs/zbxparam/libzbxparam.a \
$(top_srcdir)/src/libs/zbxexpr/libzbxexpr.a \
$(top_srcdir)/src/libs/zbxconf/libzbxconf.a \
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.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/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/libzbxmocktest.a \
$(top_srcdir)/src/libs/zbxlog/libzbxlog.a \
$(top_srcdir)/tests/libzbxmockdata.a
CACHE_LIBS = \
$(top_srcdir)/src/libs/zbxcacheconfig/libzbxcacheconfig.a \
$(top_srcdir)/src/libs/zbxpreproc/libzbxpreprocbase.a \
$(top_srcdir)/src/libs/zbxcachehistory/libzbxcachehistory.a \
$(top_srcdir)/src/libs/zbxcachevalue/libzbxcachevalue.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/zbxipcservice/libzbxipcservice.a \
$(top_srcdir)/src/zabbix_server/libzbxserver.a \
$(top_srcdir)/src/libs/zbxexpression/libzbxexpression.a \
$(top_srcdir)/src/libs/zbxevent/libzbxevent.a \
$(top_srcdir)/src/libs/zbxservice/libzbxservice.a \
$(top_srcdir)/src/zabbix_server/service/libservice.a \
$(top_srcdir)/src/libs/zbxexport/libzbxexport.a \
$(top_srcdir)/src/libs/zbxtrends/libzbxtrends.a \
$(top_srcdir)/src/libs/zbxeval/libzbxeval.a \
$(top_srcdir)/src/libs/zbxserialize/libzbxserialize.a \
$(top_srcdir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \
$(top_srcdir)/src/libs/zbxxml/libzbxxml.a \
$(top_srcdir)/src/libs/zbxvariant/libzbxvariant.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/zbxsysinfo/alias/libalias.a \
$(top_srcdir)/src/libs/zbxhistory/libzbxhistory.a \
$(top_srcdir)/src/libs/zbxmodules/libzbxmodules.a \
$(top_srcdir)/src/libs/zbxcomms/libzbxcomms.a \
$(top_srcdir)/src/libs/zbxcompress/libzbxcompress.a \
$(top_srcdir)/src/libs/zbxjson/libzbxjson.a \
$(top_srcdir)/src/libs/zbxregexp/libzbxregexp.a \
$(top_srcdir)/src/libs/zbxexec/libzbxexec.a \
$(top_srcdir)/src/libs/zbxhash/libzbxhash.a \
$(top_srcdir)/src/libs/zbxcrypto/libzbxcrypto.a \
$(top_srcdir)/src/libs/zbxshmem/libzbxshmem.a \
$(top_srcdir)/src/libs/zbxdbwrap/libzbxdbwrap.a \
$(top_srcdir)/src/libs/zbxdbhigh/libzbxdbhigh.a \
$(top_builddir)/src/libs/zbxdbschema/libzbxdbschema.a \
$(top_srcdir)/src/libs/zbxdb/libzbxdb.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/zbxaudit/libzbxaudit.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/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/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)/src/libs/zbxcacheconfig/libzbxcacheconfig.a \
$(top_srcdir)/src/libs/zbxcachehistory/libzbxcachehistory.a \
$(top_srcdir)/src/libs/zbxcachevalue/libzbxcachevalue.a \
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \
$(top_srcdir)/tests/libzbxmocktest.a \
$(top_srcdir)/tests/libzbxmockdata.a
COMMON_WRAP_FUNCS = \
-Wl,--wrap=zbx_mutex_create \
-Wl,--wrap=zbx_mutex_destroy \
-Wl,--wrap=zbx_shmem_create \
-Wl,--wrap=zbx_shmem_destroy \
-Wl,--wrap=__zbx_shmem_malloc \
-Wl,--wrap=__zbx_shmem_realloc \
-Wl,--wrap=__zbx_shmem_free \
-Wl,--wrap=zbx_shmem_dump_stats \
-Wl,--wrap=zbx_history_get_values \
-Wl,--wrap=zbx_history_add_values \
-Wl,--wrap=zbx_history_sql_init \
-Wl,--wrap=zbx_history_elastic_init \
-Wl,--wrap=zbx_elastic_version_extract \
-Wl,--wrap=zbx_elastic_version_get \
-Wl,--wrap=time
zbx_vc_get_values_SOURCES = \
zbx_vc_common.c \
zbx_vc_get_values.c \
@top_srcdir@/src/libs/zbxcachevalue/valuecache.c \
@top_srcdir@/src/libs/zbxhistory/history.c \
../../zbxmocktest.h
zbx_vc_get_values_LDADD = $(VALUECACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
zbx_vc_get_values_LDFLAGS = @SERVER_LDFLAGS@ $(COMMON_WRAP_FUNCS) $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
zbx_vc_get_values_CFLAGS = \
-I@top_srcdir@/src/libs/zbxalgo \
-I@top_srcdir@/src/libs/zbxcacheconfig \
-I@top_srcdir@/src/libs/zbxcachehistory \
-I@top_srcdir@/src/libs/zbxcachevalue \
-I@top_srcdir@/src/libs/zbxhistory \
-I@top_srcdir@/tests \
$(CMOCKA_CFLAGS) \
$(YAML_CFLAGS) \
$(TLS_CFLAGS)
zbx_vc_add_values_SOURCES = \
zbx_vc_common.c \
zbx_vc_add_values.c \
@top_srcdir@/src/libs/zbxcachevalue/valuecache.c \
@top_srcdir@/src/libs/zbxhistory/history.c \
../../zbxmocktest.h
zbx_vc_add_values_LDADD = $(VALUECACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
zbx_vc_add_values_LDFLAGS = @SERVER_LDFLAGS@ $(COMMON_WRAP_FUNCS) $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
zbx_vc_add_values_CFLAGS = \
-I@top_srcdir@/src/libs/zbxalgo \
-I@top_srcdir@/src/libs/zbxcacheconfig \
-I@top_srcdir@/src/libs/zbxcachehistory \
-I@top_srcdir@/src/libs/zbxcachevalue \
-I@top_srcdir@/src/libs/zbxhistory \
-I@top_srcdir@/tests \
$(CMOCKA_CFLAGS) \
$(YAML_CFLAGS) \
$(TLS_CFLAGS)
zbx_vc_get_value_SOURCES = \
zbx_vc_common.c \
zbx_vc_get_value.c \
@top_srcdir@/src/libs/zbxcachevalue/valuecache.c \
@top_srcdir@/src/libs/zbxhistory/history.c \
../../zbxmocktest.h
zbx_vc_get_value_LDADD = $(VALUECACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
zbx_vc_get_value_LDFLAGS = @SERVER_LDFLAGS@ $(COMMON_WRAP_FUNCS) $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
zbx_vc_get_value_CFLAGS = \
-I@top_srcdir@/src/libs/zbxalgo \
-I@top_srcdir@/src/libs/zbxcacheconfig \
-I@top_srcdir@/src/libs/zbxcachehistory \
-I@top_srcdir@/src/libs/zbxcachevalue \
-I@top_srcdir@/src/libs/zbxhistory \
-I@top_srcdir@/tests \
$(CMOCKA_CFLAGS) \
$(YAML_CFLAGS) \
$(TLS_CFLAGS)
dc_maintenance_match_tags_CFLAGS = \
-I@top_srcdir@/src/libs/zbxcacheconfig \
-I@top_srcdir@/src/libs/zbxcachehistory \
-I@top_srcdir@/src/libs/zbxcachevalue \
-I@top_srcdir@/tests \
$(TLS_CFLAGS) \
$(CMOCKA_CFLAGS) \
$(YAML_CFLAGS)
dc_check_maintenance_period_CFLAGS = \
-I@top_srcdir@/src/libs/zbxcacheconfig \
-I@top_srcdir@/src/libs/zbxcachehistory \
-I@top_srcdir@/src/libs/zbxcachevalue \
-I@top_srcdir@/tests \
$(TLS_CFLAGS) \
$(CMOCKA_CFLAGS) \
$(YAML_CFLAGS)
dc_maintenance_match_tags_SOURCES = dc_maintenance_match_tags.c
dc_maintenance_match_tags_LDADD = $(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
dc_maintenance_match_tags_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
dc_check_maintenance_period_SOURCES = dc_check_maintenance_period.c
dc_check_maintenance_period_LDADD = $(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
dc_check_maintenance_period_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
is_item_processed_by_server_SOURCES = is_item_processed_by_server.c
is_item_processed_by_server_LDADD = $(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
is_item_processed_by_server_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
is_item_processed_by_server_CFLAGS = -I@top_srcdir@/tests $(CMOCKA_CFLAGS) $(YAML_CFLAGS) $(TLS_CFLAGS)
dc_item_poller_type_update_SOURCES = dc_item_poller_type_update.c
dc_item_poller_type_update_LDADD = $(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
dc_item_poller_type_update_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
dc_item_poller_type_update_CFLAGS = -I@top_srcdir@/tests -I@top_srcdir@/src/libs/zbxcacheconfig \
-I@top_srcdir@/src/libs/zbxcachehistory -I@top_srcdir@/src/libs/zbxcachevalue $(CMOCKA_CFLAGS) $(YAML_CFLAGS) \
$(TLS_CFLAGS)
dc_expand_user_macros_in_func_params_CFLAGS = \
-I@top_srcdir@/tests \
-I@top_srcdir@/tests/mocks/configcache \
-I@top_srcdir@/src/libs/zbxcacheconfig \
-I@top_srcdir@/src/libs/zbxcachehistory \
-I@top_srcdir@/src/libs/zbxcachevalue \
$(CMOCKA_CFLAGS) \
$(YAML_CFLAGS) \
$(TLS_CFLAGS)
dc_expand_user_macros_in_func_params_SOURCES = \
dc_expand_user_macros_in_func_params.c
dc_expand_user_macros_in_func_params_LDADD = \
$(top_srcdir)/tests/mocks/configcache/libconfigcachemock.a \
$(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
dc_expand_user_macros_in_func_params_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) \
-Wl,--wrap=zbx_hashset_search
dc_function_calculate_nextcheck_CFLAGS = \
-I@top_srcdir@/tests $(CMOCKA_CFLAGS) $(YAML_CFLAGS) $(TLS_CFLAGS)
dc_function_calculate_nextcheck_SOURCES = \
dc_function_calculate_nextcheck.c
dc_function_calculate_nextcheck_LDADD = \
$(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
dc_function_calculate_nextcheck_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
um_cache_sync_CFLAGS = \
-I@top_srcdir@/tests \
-I@top_srcdir@/src/libs \
$(CMOCKA_CFLAGS) \
$(YAML_CFLAGS) \
$(TLS_CFLAGS)
um_cache_sync_SOURCES = \
um_cache_sync.c \
um_cache_mock.c \
um_cache_mock.h
um_cache_sync_LDADD = \
$(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
um_cache_sync_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) \
-Wl,--wrap=__zbx_shmem_malloc \
-Wl,--wrap=__zbx_shmem_realloc \
-Wl,--wrap=__zbx_shmem_free
um_cache_resolve_CFLAGS = \
-I@top_srcdir@/tests \
-I@top_srcdir@/src/libs \
$(CMOCKA_CFLAGS) \
$(TLS_CFLAGS) \
$(YAML_CFLAGS)
um_cache_resolve_SOURCES = \
um_cache_resolve.c \
um_cache_mock.c \
um_cache_mock.h
um_cache_resolve_LDADD = \
$(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
um_cache_resolve_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) \
-Wl,--wrap=__zbx_shmem_malloc \
-Wl,--wrap=__zbx_shmem_realloc \
-Wl,--wrap=__zbx_shmem_free
um_cache_resolve_cont_CFLAGS = \
-I@top_srcdir@/tests \
-I@top_srcdir@/src/libs \
$(CMOCKA_CFLAGS) \
$(YAML_CFLAGS) \
$(TLS_CFLAGS)
um_cache_resolve_cont_SOURCES = \
um_cache_resolve_cont.c \
um_cache_mock.c \
um_cache_mock.h
um_cache_resolve_cont_LDADD = \
$(CACHE_LIBS) @SERVER_LIBS@ $(CMOCKA_LIBS) $(YAML_LIBS) $(TLS_LIBS)
um_cache_resolve_cont_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS) \
-Wl,--wrap=__zbx_shmem_malloc \
-Wl,--wrap=__zbx_shmem_realloc \
-Wl,--wrap=__zbx_shmem_free
endif