From 297fe1bb134532fd6f4d1b658ce78910c81370a3 Mon Sep 17 00:00:00 2001
From: Christophe Sovant <christophe.sovant@forgerock.com>
Date: Thu, 15 May 2008 14:38:06 +0000
Subject: [PATCH] Fix the run-daily ant target and add some traces for SNMP compilation
---
opendj-sdk/opends/tests/functional-tests/staf-installer.xml | 39 ++++++++++++++++++++++-----------------
1 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/opendj-sdk/opends/tests/functional-tests/staf-installer.xml b/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
index 8b96ce7..1257393 100644
--- a/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
+++ b/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
@@ -73,14 +73,14 @@
<format property="yesterdays.date" pattern="yyyyMMdd" offset="-24" unit="hour"/>
</tstamp>
<condition property="daily.date" value="${todays.date}" else="${yesterdays.date}">
- <http url="${daily.build.url}/${todays.date}${daily.build.time}/${SHORT_NAME}/build/package/${product.name}.zip"/>
+ <http url="${daily.build.url}/${todays.date}${daily.build.time}/${SHORT_NAME}/build.jdk5/package/${product.name}.zip"/>
</condition>
<property name="daily.package.dir"
value="${staf.home}/daily-builds/${daily.date}"/>
<property name="daily.package"
value="${daily.package.dir}/${product.name}.zip"/>
<property name="daily.package.url"
- value="${daily.build.url}/${daily.date}${daily.build.time}/${SHORT_NAME}/build/package/${product.name}.zip"/>
+ value="${daily.build.url}/${daily.date}${daily.build.time}/${SHORT_NAME}/build.jdk5/package/${product.name}.zip"/>
<!-- installer wide settings - bottom -->
@@ -552,9 +552,8 @@
<then>
<echo>Daily run not set and ${product.name}.zip not found.</echo>
<if>
- <available file="${SNMP_OPENDMK_LIBDIR}/${SNMP_OPENDMK_JARFILE}" />
+ <available file="${SNMP_OPENDMK_LIBDIR}" />
<then>
- <!-- <echo>SNMP_OPENDMK_LIBDIR is set in ${tests.config.stubs}.</echo> -->
<if>
<length string="${opendmk.lib.dir}" when="equal" length="0" />
<then>
@@ -567,30 +566,40 @@
</replace>
<property name="product.package.build" value="true"/>
</then>
+ <else>
+ <echo>SNMP_OPENDMK_LIBDIR is set in ${tests.config.stubs}.</echo>
+ <echo>opendmk.lib.dir is set in ${project.home}/build.properties.</echo>
+ <echo>Build ${product.name}.zip with SNMP.</echo>
+ <property name="product.package.build" value="true"/>
+ </else>
</if>
</then>
<else>
<echo>SNMP_OPENDMK_LIBDIR is not set or is wrong in ${tests.config.stubs}.</echo>
<echo>Build ${product.name}.zip without SNMP.</echo>
+ <property name="product.package.build" value="true"/>
</else>
</if>
</then>
<else>
<if>
- <available file="${product.package}"/>
+ <isset property="tests.run.daily"/>
<then>
- <!-- <echo>${product.name}.zip found</echo> -->
+ <echo>Daily run is set.</echo>
+ <echo>Nothing to do.</echo>
+ </then>
+ <else>
+ <echo>Daily run not set and ${product.name}.zip found.</echo>
<if>
- <available file="${SNMP_OPENDMK_LIBDIR}/${SNMP_OPENDMK_JARFILE}" />
+ <available file="${SNMP_OPENDMK_LIBDIR}" />
<then>
- <!-- <echo>SNMP_OPENDMK_LIBDIR is set in ${tests.config.stubs}.</echo> -->
<if>
<not>
<length string="${opendmk.lib.dir}" when="equal" length="0" />
</not>
<then>
- <!-- <echo>opendmk.lib.dir is set in ${project.home}/build.properties.</echo> -->
- <!-- <echo>Nothing to do.</echo> -->
+ <echo>opendmk.lib.dir is set in ${project.home}/build.properties.</echo>
+ <echo>Nothing to do.</echo>
</then>
<else>
<echo>SNMP_OPENDMK_LIBDIR is set in ${tests.config.stubs}.</echo>
@@ -605,14 +614,10 @@
</if>
</then>
<else>
- <!-- <echo>SNMP_OPENDMK_LIBDIR is not set or is wrong in ${tests.config.stubs}.</echo> -->
- <!-- <echo>Nothing to do.</echo> -->
+ <echo>SNMP_OPENDMK_LIBDIR is not set or is wrong in ${tests.config.stubs}.</echo>
+ <echo>Nothing to do.</echo>
</else>
</if>
- </then>
- <else>
- <!-- <echo>Daily run is set.</echo> -->
- <!-- <echo>Nothing to do.</echo> -->
</else>
</if>
</else>
@@ -929,7 +934,7 @@
<property name="tests.run.daily" value="true"/>
</target>
- <target name="run-daily" depends="status-do,daily,download-daily,coverage-instrument,run-tests"/>
+ <target name="run-daily" depends="run-my-tests-define,status-do,daily,download-daily,coverage-instrument,run-tests"/>
<target name="coverage-init">
<path id="emma.lib">
--
Gitblit v1.10.0