1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
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_expression \
dc_expand_user_macros_in_func_params \
dc_expand_user_macros_in_calcitem \
dc_function_calculate_nextcheck
endif
noinst_PROGRAMS = $(SERVER_tests)
if SERVER
VALUECACHE_LIBS = \
$(top_srcdir)/tests/libzbxmocktest.a \
$(top_srcdir)/tests/libzbxmockdata.a \
$(top_srcdir)/src/libs/zbxalgo/libzbxalgo.a \
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \
$(top_srcdir)/src/libs/zbxcomms/libzbxcomms.a \
$(top_srcdir)/src/libs/zbxcompress/libzbxcompress.a \
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \
$(top_srcdir)/src/libs/zbxnix/libzbxnix.a \
$(top_srcdir)/src/libs/zbxcrypto/libzbxcrypto.a \
$(top_srcdir)/src/libs/zbxlog/libzbxlog.a \
$(top_srcdir)/src/libs/zbxsys/libzbxsys.a \
$(top_srcdir)/src/libs/zbxconf/libzbxconf.a \
$(top_srcdir)/src/libs/zbxmemory/libzbxmemory.a \
$(top_srcdir)/tests/mocks/valuecache/libvaluecachemock.a \
$(top_srcdir)/src/libs/zbxvault/libzbxvault.a \
$(top_srcdir)/src/libs/zbxhttp/libzbxhttp.a \
$(top_srcdir)/tests/libzbxmockdata.a
CACHE_LIBS = \
$(top_srcdir)/tests/libzbxmocktest.a \
$(top_srcdir)/tests/libzbxmockdata.a \
$(top_srcdir)/src/libs/zbxdbcache/libzbxdbcache.a \
$(top_srcdir)/src/libs/zbxavailability/libzbxavailability.a \
$(top_srcdir)/src/zabbix_server/availability/libavailability.a \
$(top_srcdir)/src/libs/zbxipcservice/libzbxipcservice.a \
$(top_srcdir)/src/libs/zbxtrends/libzbxtrends.a \
$(top_srcdir)/src/zabbix_server/libzbxserver.a \
$(top_srcdir)/src/libs/zbxserver/libzbxserver.a \
$(top_srcdir)/src/libs/zbxeval/libzbxeval.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/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/zbxhttp/libzbxhttp.a \
$(top_srcdir)/src/libs/zbxregexp/libzbxregexp.a \
$(top_srcdir)/src/libs/zbxalgo/libzbxalgo.a \
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \
$(top_srcdir)/src/libs/zbxnix/libzbxnix.a \
$(top_srcdir)/src/libs/zbxexec/libzbxexec.a \
$(top_srcdir)/src/libs/zbxcrypto/libzbxcrypto.a \
$(top_srcdir)/src/libs/zbxlog/libzbxlog.a \
$(top_srcdir)/src/libs/zbxsys/libzbxsys.a \
$(top_srcdir)/src/libs/zbxconf/libzbxconf.a \
$(top_srcdir)/src/libs/zbxmemory/libzbxmemory.a \
$(top_srcdir)/src/libs/zbxdbhigh/libzbxdbhigh.a \
$(top_srcdir)/src/libs/zbxdb/libzbxdb.a \
$(top_srcdir)/tests/libzbxmocktest.a \
$(top_srcdir)/src/libs/zbxvault/libzbxvault.a \
$(top_srcdir)/src/libs/zbxhttp/libzbxhttp.a \
$(top_srcdir)/tests/libzbxmockdata.a
COMMON_WRAP_FUNCS = \
-Wl,--wrap=zbx_mutex_create \
-Wl,--wrap=zbx_mutex_destroy \
-Wl,--wrap=zbx_mem_create \
-Wl,--wrap=__zbx_mem_malloc \
-Wl,--wrap=__zbx_mem_realloc \
-Wl,--wrap=__zbx_mem_free \
-Wl,--wrap=zbx_mem_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=time
zbx_vc_get_values_SOURCES = \
zbx_vc_get_values.c \
@top_srcdir@/src/libs/zbxdbcache/valuecache.c \
@top_srcdir@/src/libs/zbxhistory/history.c \
../../zbxmocktest.h
zbx_vc_get_values_LDADD = $(VALUECACHE_LIBS) @SERVER_LIBS@
zbx_vc_get_values_LDFLAGS = @SERVER_LDFLAGS@ $(COMMON_WRAP_FUNCS)
zbx_vc_get_values_CFLAGS = \
-I@top_srcdir@/src/libs/zbxalgo \
-I@top_srcdir@/src/libs/zbxdbcache \
-I@top_srcdir@/src/libs/zbxhistory \
-I@top_srcdir@/tests
zbx_vc_add_values_SOURCES = \
zbx_vc_add_values.c \
@top_srcdir@/src/libs/zbxdbcache/valuecache.c \
@top_srcdir@/src/libs/zbxhistory/history.c \
../../zbxmocktest.h
zbx_vc_add_values_LDADD = $(VALUECACHE_LIBS) @SERVER_LIBS@
zbx_vc_add_values_LDFLAGS = @SERVER_LDFLAGS@ $(COMMON_WRAP_FUNCS)
zbx_vc_add_values_CFLAGS = \
-I@top_srcdir@/src/libs/zbxalgo \
-I@top_srcdir@/src/libs/zbxdbcache \
-I@top_srcdir@/src/libs/zbxhistory \
-I@top_srcdir@/tests
zbx_vc_get_value_SOURCES = \
zbx_vc_get_value.c \
@top_srcdir@/src/libs/zbxdbcache/valuecache.c \
@top_srcdir@/src/libs/zbxhistory/history.c \
../../zbxmocktest.h
zbx_vc_get_value_LDADD = $(VALUECACHE_LIBS) @SERVER_LIBS@
zbx_vc_get_value_LDFLAGS = @SERVER_LDFLAGS@ $(COMMON_WRAP_FUNCS)
zbx_vc_get_value_CFLAGS = \
-I@top_srcdir@/src/libs/zbxalgo \
-I@top_srcdir@/src/libs/zbxdbcache \
-I@top_srcdir@/src/libs/zbxhistory \
-I@top_srcdir@/tests
dc_maintenance_match_tags_CFLAGS = \
-I@top_srcdir@/src/libs/zbxdbcache \
-I@top_srcdir@/tests
dc_check_maintenance_period_CFLAGS = \
-I@top_srcdir@/src/libs/zbxdbcache \
-I@top_srcdir@/tests
dc_maintenance_match_tags_SOURCES = dc_maintenance_match_tags.c
dc_maintenance_match_tags_LDADD = $(CACHE_LIBS) @SERVER_LIBS@
dc_maintenance_match_tags_LDFLAGS = @SERVER_LDFLAGS@
dc_check_maintenance_period_SOURCES = dc_check_maintenance_period.c
dc_check_maintenance_period_LDADD = $(CACHE_LIBS) @SERVER_LIBS@
dc_check_maintenance_period_LDFLAGS = @SERVER_LDFLAGS@
is_item_processed_by_server_SOURCES = is_item_processed_by_server.c
is_item_processed_by_server_LDADD = $(CACHE_LIBS) @SERVER_LIBS@
is_item_processed_by_server_LDFLAGS = @SERVER_LDFLAGS@
is_item_processed_by_server_CFLAGS = -I@top_srcdir@/tests
dc_item_poller_type_update_SOURCES = dc_item_poller_type_update.c
dc_item_poller_type_update_LDADD = $(CACHE_LIBS) @SERVER_LIBS@
dc_item_poller_type_update_LDFLAGS = @SERVER_LDFLAGS@
dc_item_poller_type_update_CFLAGS = -I@top_srcdir@/tests -I@top_srcdir@/src/libs/zbxdbcache
dc_expand_user_macros_in_expression_CFLAGS = \
-I@top_srcdir@/tests \
-I@top_srcdir@/tests/mocks/configcache \
-I@top_srcdir@/src/libs/zbxdbcache
dc_expand_user_macros_in_expression_SOURCES = \
dc_expand_user_macros_in_expression.c
dc_expand_user_macros_in_expression_LDADD = \
$(top_srcdir)/tests/mocks/configcache/libconfigcachemock.a \
$(CACHE_LIBS) @SERVER_LIBS@
dc_expand_user_macros_in_expression_LDFLAGS = @SERVER_LDFLAGS@ \
-Wl,--wrap=zbx_hashset_search
dc_expand_user_macros_in_func_params_CFLAGS = \
-I@top_srcdir@/tests \
-I@top_srcdir@/tests/mocks/configcache \
-I@top_srcdir@/src/libs/zbxdbcache
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@
dc_expand_user_macros_in_func_params_LDFLAGS = @SERVER_LDFLAGS@ \
-Wl,--wrap=zbx_hashset_search
dc_expand_user_macros_in_calcitem_CFLAGS = \
-I@top_srcdir@/tests \
-I@top_srcdir@/tests/mocks/configcache \
-I@top_srcdir@/src/libs/zbxdbcache
dc_expand_user_macros_in_calcitem_SOURCES = \
dc_expand_user_macros_in_calcitem.c
dc_expand_user_macros_in_calcitem_LDADD = \
$(top_srcdir)/tests/mocks/configcache/libconfigcachemock.a \
$(CACHE_LIBS) @SERVER_LIBS@
dc_expand_user_macros_in_calcitem_LDFLAGS = @SERVER_LDFLAGS@ \
-Wl,--wrap=zbx_hashset_search
dc_function_calculate_nextcheck_CFLAGS = \
-I@top_srcdir@/tests
dc_function_calculate_nextcheck_SOURCES = \
dc_function_calculate_nextcheck.c
dc_function_calculate_nextcheck_LDADD = \
$(CACHE_LIBS) @SERVER_LIBS@
dc_function_calculate_nextcheck_LDFLAGS = @SERVER_LDFLAGS@
endif
|