Source
222
222
</exec>
223
223
</sequential>
224
224
</macrodef>
225
225
226
226
<target name="init-cmocka-test-conf-options">
227
227
<!-- Zabbix various configuration parameters for cmocka tests -->
228
228
<!-- Configuration option name must consist of prefix 'cmocka-', configuration order number
229
229
and configuration title: cmocka-<number>-<title> -->
230
230
<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"/>
231
231
<property name="cmocka-2-agent-only" value="-q CFLAGS='${COMP_FLAGS}' --enable-agent"/>
232
-
<property name="cmocka-3-server-only" value="-q CFLAGS='${COMP_FLAGS}' --enable-server --with-mysql"/>
233
-
<property name="cmocka-4-proxy-only" value="-q CFLAGS='${COMP_FLAGS}' --enable-proxy --with-sqlite3"/>
232
+
<property name="cmocka-3-server-only" value="-q CFLAGS='${COMP_FLAGS}' --enable-server --with-mysql --with-libcurl"/>
233
+
<property name="cmocka-4-proxy-only" value="-q CFLAGS='${COMP_FLAGS}' --enable-proxy --with-sqlite3 --with-libcurl"/>
234
234
<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"/>
235
235
</target>
236
236
237
237
<target name="cmocka-tests" depends="init-cmocka-test-conf-options">
238
238
<!-- Build Zabbix with cmocka tests -->
239
239
<delete dir="tests_results"/>
240
240
<mkdir dir="tests_results"/>
241
241
<exec executable="./bootstrap.sh" failonerror="on">
242
242
<arg line="tests"/>
243
243
</exec>