Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2019-04-09 16:32:29 +0300
committerAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2019-04-09 16:32:29 +0300
commit83a338b1a0e5691f966c98d327d1f03c80147fdd (patch)
treedf16a34c18c2e8d9ca395863191a833fe249b756 /tests/zabbix_server/preprocessor/Makefile.am
parent5b15dc8ea0b0add0c5696e9f1d89c4ad58511530 (diff)
.......... [DEV-873] converted item_preproc_xpath function cunit test to cmocka framework
Diffstat (limited to 'tests/zabbix_server/preprocessor/Makefile.am')
-rw-r--r--tests/zabbix_server/preprocessor/Makefile.am23
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/zabbix_server/preprocessor/Makefile.am b/tests/zabbix_server/preprocessor/Makefile.am
index 5cdcf1209ee..6b7719e104c 100644
--- a/tests/zabbix_server/preprocessor/Makefile.am
+++ b/tests/zabbix_server/preprocessor/Makefile.am
@@ -1,5 +1,14 @@
if SERVER
-noinst_PROGRAMS = zbx_item_preproc
+SERVER_tests = zbx_item_preproc
+
+if HAVE_LIBXML2
+SERVER_tests += item_preproc_xpath
+endif
+
+noinst_PROGRAMS = $(SERVER_tests)
+
+COMMON_SRC_FILES = \
+ ../../zbxmocktest.h
JSON_LIBS = \
$(top_srcdir)/tests/libzbxmocktest.a \
@@ -32,4 +41,16 @@ zbx_item_preproc_LDADD += @SERVER_LIBS@
zbx_item_preproc_LDFLAGS = @SERVER_LDFLAGS@
zbx_item_preproc_CFLAGS = -I@top_srcdir@/tests @LIBXML2_CFLAGS@
+
+item_preproc_xpath_SOURCES = \
+ ../../../src/zabbix_server/preprocessor/item_preproc.c \
+ item_preproc_xpath.c \
+ $(COMMON_SRC_FILES)
+
+item_preproc_xpath_LDADD = $(JSON_LIBS)
+
+item_preproc_xpath_LDADD += @SERVER_LIBS@
+item_preproc_xpath_LDFLAGS = @SERVER_LDFLAGS@
+
+item_preproc_xpath_CFLAGS = -I@top_srcdir@/tests @LIBXML2_CFLAGS@
endif