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:
authorAlexander Vladishev <aleksander.vladishev@zabbix.com>2020-03-28 16:40:16 +0300
committerAlexander Vladishev <aleksander.vladishev@zabbix.com>2020-03-28 19:04:26 +0300
commite6637da3c6afa66faf77918058aa5bf9a7ab6046 (patch)
tree43f464a7b7cd8a36f34a5b1bac716cc10ab4c0df /build.xml
parent54e36e1e03edaa1aaf134a2002a121329f41d2e7 (diff)
.......... [ZBXNEXT-686] buiuld.xml: added optional PHPUNIT_DRIVER_ADDRESS parameter
(cherry picked from commit b96fa2281dd0c5760d951a614dccc989be77b2f4) (cherry picked from commit 573855aa0afa64bfc07bcd61b7f6cb29e7bdeb9a)
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 8e47ef4940c..223bbfec3e0 100644
--- a/build.xml
+++ b/build.xml
@@ -24,6 +24,12 @@
<property name="phpunit_error_log" value="${PHPUNIT_ERROR_LOG}"/>
<property name="phpunit_port_prefix" value="${PHPUNIT_PORT_PREFIX}"/>
<property name="screenshot_references_dir" value="${SCREENSHOT_REFERENCES_DIR}"/>
+ <condition property="phpunit_driver_address" value="${PHPUNIT_DRIVER_ADDRESS}" else="localhost">
+ <and>
+ <isset property="PHPUNIT_DRIVER_ADDRESS" />
+ <length string="${PHPUNIT_DRIVER_ADDRESS}" when="greater" length="0"/>
+ </and>
+ </condition>
<property environment="env"/>
<!-- Create bootstrap.php -->
@@ -38,6 +44,7 @@
<replace file="frontends/php/tests/bootstrap.php" token="{COMPONENT_DIR}" value="${basedir}/runtime/"/>
<replace file="frontends/php/tests/bootstrap.php" token="{PORT_PREFIX}" value="${phpunit_port_prefix}"/>
<replace file="frontends/php/tests/bootstrap.php" token="{SCREENSHOT_REFERENCES_DIR}" value="${screenshot_references_dir}"/>
+ <replace file="frontends/php/tests/bootstrap.php" token="{PHPUNIT_DRIVER_ADDRESS}" value="${phpunit_driver_address}"/>
<!-- Create PHP config file -->
<copy overwrite="true" file="frontends/php/tests/templates/zabbix.conf.php" tofile="frontends/php/conf/zabbix.conf.php"/>