<target name="init-cmocka-test-conf-options">
<!-- Zabbix various configuration parameters for cmocka tests -->
<!-- Configuration option name must consist of prefix 'cmocka-', configuration order number
and configuration title: cmocka-<number>-<title> -->
<property name="cmocka-1-default" value="-q CFLAGS='${COMP_FLAGS}' ${ZBX_BASE_FLAGS} --enable-ipv6 --with-mysql --with-openipmi --with-openssl --with-iconv --with-libpcre"/>
<property name="cmocka-2-agent-only" value="-q CFLAGS='${COMP_FLAGS}' --enable-agent"/>
<property name="cmocka-5-sanitizer" value="CC=clang CFLAGS='${COMP_FLAGS} -Wenum-conversion -fsanitize=leak,address' LDFLAGS='-fsanitize=leak,address' -q ${ZBX_BASE_FLAGS} --with-openssl --with-openipmi --enable-ipv6 --with-mysql --with-iconv --with-libpcre"/>
<target name="cmocka-tests" depends="init-cmocka-test-conf-options">
<!-- Build Zabbix with cmocka tests -->
<delete dir="tests_results"/>
<mkdir dir="tests_results"/>
<exec executable="./bootstrap.sh" failonerror="on">