1faa4b864SLei De Bin<?xml version="1.0"?> 27acce70dSLiu Zhe<!--*********************************************************** 37acce70dSLiu Zhe * 47acce70dSLiu Zhe * Licensed to the Apache Software Foundation (ASF) under one 57acce70dSLiu Zhe * or more contributor license agreements. See the NOTICE file 67acce70dSLiu Zhe * distributed with this work for additional information 77acce70dSLiu Zhe * regarding copyright ownership. The ASF licenses this file 87acce70dSLiu Zhe * to you under the Apache License, Version 2.0 (the 97acce70dSLiu Zhe * "License"); you may not use this file except in compliance 107acce70dSLiu Zhe * with the License. You may obtain a copy of the License at 117acce70dSLiu Zhe * 127acce70dSLiu Zhe * http://www.apache.org/licenses/LICENSE-2.0 137acce70dSLiu Zhe * 147acce70dSLiu Zhe * Unless required by applicable law or agreed to in writing, 157acce70dSLiu Zhe * software distributed under the License is distributed on an 167acce70dSLiu Zhe * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 177acce70dSLiu Zhe * KIND, either express or implied. See the License for the 187acce70dSLiu Zhe * specific language governing permissions and limitations 197acce70dSLiu Zhe * under the License. 207acce70dSLiu Zhe * 217acce70dSLiu Zhe ***********************************************************--> 22b164ae3eSLei De Bin 23b164ae3eSLei De Bin 24faa4b864SLei De Bin 25faa4b864SLei De Bin<project basedir="." default="test"> 2609c344eeSLiu Zhe <property environment="env" /> 2709c344eeSLiu Zhe <property file="build.properties" /> 2809c344eeSLiu Zhe <property name="env.DISPLAY" value=":0.0"/> 2909c344eeSLiu Zhe <property name="env.INPATH" value="testspace"/> 3009c344eeSLiu Zhe <property name="env.TESTSPACE" value="${env.INPATH}" /> 3109c344eeSLiu Zhe <property name="env.JUNIT_HOME" value="external/junit" /> 32faa4b864SLei De Bin <property name="junit.home" value="${env.JUNIT_HOME}" /> 33faa4b864SLei De Bin <property name="testspace" value="${env.TESTSPACE}" /> 3409c344eeSLiu Zhe <property name="classes" value="${testspace}/class" /> 3522a14f28SLiu Zhe <property name="dist" value="." /> 36d7740c70SLiu Zhe <property name="test.name" value="BVT" /> 37de586eddSLiu Zhe <property name="test.classes" value="testcase/gui/bvt/*.class" /> 38faa4b864SLei De Bin <property name="test.output" value="${testspace}/output" /> 39faa4b864SLei De Bin <property name="test.result" value="${test.output}/result" /> 40faa4b864SLei De Bin <property name="test.report" value="${test.output}/report" /> 410e2e75f4SLiu Zhe <property name="junit.style.dir" value="reportstyle" /> 427dd2b5bbSLiu Zhe 430e2e75f4SLiu Zhe <path id="junit.classpath"> 44faa4b864SLei De Bin <fileset dir="${junit.home}" erroronmissingdir="false"> 45faa4b864SLei De Bin <include name="*.jar" /> 46faa4b864SLei De Bin </fileset> 47faa4b864SLei De Bin </path> 48faa4b864SLei De Bin 490e2e75f4SLiu Zhe <target name="testcommon.init"> 50faa4b864SLei De Bin <mkdir dir="${classes}" /> 51faa4b864SLei De Bin <copy includeemptydirs="false" todir="${classes}"> 520e2e75f4SLiu Zhe <fileset dir="testcommon/source"> 53faa4b864SLei De Bin <exclude name="**/*.java" /> 54faa4b864SLei De Bin </fileset> 55faa4b864SLei De Bin </copy> 56faa4b864SLei De Bin </target> 57faa4b864SLei De Bin 5822a14f28SLiu Zhe <target name="testcommon.compile" depends="testcommon.init, prepare.junit"> 590e2e75f4SLiu Zhe <javac destdir="${classes}" debug="on" source="1.6" includeantruntime="false"> 600e2e75f4SLiu Zhe <src path="testcommon/source"/> 6122a14f28SLiu Zhe <classpath> 6222a14f28SLiu Zhe <path refid="junit.classpath"/> 6322a14f28SLiu Zhe </classpath> 640e2e75f4SLiu Zhe </javac> 65faa4b864SLei De Bin </target> 66faa4b864SLei De Bin 670e2e75f4SLiu Zhe <target name="testgui.init"> 680e2e75f4SLiu Zhe <mkdir dir="${classes}" /> 690e2e75f4SLiu Zhe <copy includeemptydirs="false" todir="${classes}"> 700e2e75f4SLiu Zhe <fileset dir="testgui/source"> 710e2e75f4SLiu Zhe <exclude name="**/*.java" /> 720e2e75f4SLiu Zhe </fileset> 730e2e75f4SLiu Zhe </copy> 740e2e75f4SLiu Zhe <copy includeemptydirs="false" todir="${classes}"> 750e2e75f4SLiu Zhe <fileset dir="testgui/data"> 760e2e75f4SLiu Zhe <exclude name="**/*.java" /> 770e2e75f4SLiu Zhe </fileset> 780e2e75f4SLiu Zhe </copy> 79faa4b864SLei De Bin </target> 80faa4b864SLei De Bin 810e2e75f4SLiu Zhe <target name="testgui.compile" depends="testgui.init, prepare.junit"> 820e2e75f4SLiu Zhe <javac destdir="${classes}" debug="on" source="1.6" includeantruntime="false"> 830e2e75f4SLiu Zhe <src path="testgui/source"/> 840e2e75f4SLiu Zhe <src path="testgui/data"/> 857acce70dSLiu Zhe <classpath> 867acce70dSLiu Zhe <pathelement location="${classes}" /> 877acce70dSLiu Zhe <path refid="junit.classpath"/> 887acce70dSLiu Zhe </classpath> 890e2e75f4SLiu Zhe </javac> 90faa4b864SLei De Bin </target> 91faa4b864SLei De Bin 920e2e75f4SLiu Zhe <target name="testuno.init"> 930e2e75f4SLiu Zhe <mkdir dir="${classes}" /> 940e2e75f4SLiu Zhe <copy includeemptydirs="false" todir="${classes}"> 950e2e75f4SLiu Zhe <fileset dir="testuno/source"> 960e2e75f4SLiu Zhe <exclude name="**/*.java" /> 970e2e75f4SLiu Zhe </fileset> 980e2e75f4SLiu Zhe </copy> 99faa4b864SLei De Bin </target> 100faa4b864SLei De Bin 10122a14f28SLiu Zhe <target name="testuno.compile" depends="testuno.init"> 1027acce70dSLiu Zhe <path id="uno.classpath"> 1032d64174bSLiu Zhe <fileset dir="${openoffice.home}" erroronmissingdir="false"> 1047acce70dSLiu Zhe <include name="**/juh.jar" /> 1057acce70dSLiu Zhe <include name="**/unoil.jar" /> 1067acce70dSLiu Zhe <include name="**/ridl.jar" /> 1077acce70dSLiu Zhe <include name="**/jurt.jar" /> 1087acce70dSLiu Zhe </fileset> 1097acce70dSLiu Zhe </path> 1100e2e75f4SLiu Zhe <javac destdir="${classes}" debug="on" source="1.6" includeantruntime="false"> 1110e2e75f4SLiu Zhe <src path="testuno/source"/> 1127acce70dSLiu Zhe <classpath> 1137acce70dSLiu Zhe <pathelement location="${classes}" /> 1147acce70dSLiu Zhe <path refid="junit.classpath"/> 1157acce70dSLiu Zhe <path refid="uno.classpath"/> 1167acce70dSLiu Zhe </classpath> 1170e2e75f4SLiu Zhe </javac> 118faa4b864SLei De Bin </target> 119faa4b864SLei De Bin 1200e2e75f4SLiu Zhe <target name="clean" description="Clean all output"> 12109c344eeSLiu Zhe <delete dir="${testspace}" /> 1220e2e75f4SLiu Zhe </target> 1230e2e75f4SLiu Zhe 1240e2e75f4SLiu Zhe <target name="check.junit"> 1250e2e75f4SLiu Zhe <available file="junit.jar" property="junit.jar.exists"> 1260e2e75f4SLiu Zhe <filepath refid="junit.classpath" /> 1270e2e75f4SLiu Zhe </available> 1280e2e75f4SLiu Zhe </target> 1290e2e75f4SLiu Zhe 1300e2e75f4SLiu Zhe <target name="prepare.junit" depends="check.junit" unless="junit.jar.exists"> 1310e2e75f4SLiu Zhe <property name="junit.jar.repos" value="http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar" /> 1320e2e75f4SLiu Zhe <mkdir dir="${junit.home}" /> 1330e2e75f4SLiu Zhe <get src="${junit.jar.repos}" dest="${junit.home}/junit.jar" skipexisting="true" /> 1340e2e75f4SLiu Zhe </target> 1350e2e75f4SLiu Zhe 1360e2e75f4SLiu Zhe <target name="compile" depends="testcommon.init, testcommon.compile, testgui.init, testgui.compile, testuno.init, testuno.compile" description="Compile source code"> 137faa4b864SLei De Bin </target> 138faa4b864SLei De Bin 13922a14f28SLiu Zhe <target name="dist"> 140faa4b864SLei De Bin <tstamp /> 1410e2e75f4SLiu Zhe <property name="dist.archive" value="aoo_test_${DSTAMP}.zip" /> 14222a14f28SLiu Zhe <zip destfile="${dist}/${dist.archive}" basedir="." update="true" includes="testcommon/**,testgui/**,testuno/**,build.xml,build.example.properties,external/**,reportstyle/**" excludes="**/bin/**"> 14322a14f28SLiu Zhe </zip> 144faa4b864SLei De Bin </target> 145faa4b864SLei De Bin 146faa4b864SLei De Bin <target name="check.build" description="Check the build context"> 147*e90ed1f0SLiu Zhe <condition property="openoffice.pack.dir" value="${env.SRC_ROOT}/instsetoo_native/${env.INPATH}/OpenOffice/archive/install/en-US"> 1487acce70dSLiu Zhe <isset property="env.SRC_ROOT" /> 149faa4b864SLei De Bin </condition> 150faa4b864SLei De Bin <condition property="find.build.skip"> 151faa4b864SLei De Bin <or> 152*e90ed1f0SLiu Zhe <isset property="openoffice.pack.url" /> 153*e90ed1f0SLiu Zhe <isset property="openoffice.pack.dir" /> 154faa4b864SLei De Bin <isset property="openoffice.home" /> 155faa4b864SLei De Bin </or> 156faa4b864SLei De Bin </condition> 157faa4b864SLei De Bin <condition property="download.build.skip"> 158faa4b864SLei De Bin <or> 159*e90ed1f0SLiu Zhe <isset property="openoffice.pack.dir" /> 160faa4b864SLei De Bin <isset property="openoffice.home" /> 161faa4b864SLei De Bin </or> 162faa4b864SLei De Bin </condition> 163faa4b864SLei De Bin <condition property="install.build.skip"> 164*e90ed1f0SLiu Zhe <isset property="openoffice.home" /> 165faa4b864SLei De Bin </condition> 166faa4b864SLei De Bin </target> 167faa4b864SLei De Bin 168faa4b864SLei De Bin <target name="find.build" unless="find.build.skip" description="Find the newest build on the remote server"> 169faa4b864SLei De Bin <loadresource property="openoffice.build"> 170faa4b864SLei De Bin <url url="${openoffice.build.url}" /> 171faa4b864SLei De Bin <filterchain> 172faa4b864SLei De Bin <deletecharacters chars=" \t\r\n" /> 173faa4b864SLei De Bin </filterchain> 174faa4b864SLei De Bin </loadresource> 175*e90ed1f0SLiu Zhe 176*e90ed1f0SLiu Zhe <echo message="openoffice.pack.url=${openoffice.archive.url}" file="${testspace}/.temp.properties" /> 177*e90ed1f0SLiu Zhe <property file="${testspace}/.temp.properties"/> 178*e90ed1f0SLiu Zhe <property name="openoffice.build.name" value="${openoffice.build}" /> 179*e90ed1f0SLiu Zhe <echo>#OpenOffice Build Name: ${openoffice.build.name}</echo> 180*e90ed1f0SLiu Zhe <echo>#OpenOffice Package URL: ${openoffice.pack.url}</echo> 181faa4b864SLei De Bin </target> 182faa4b864SLei De Bin 183*e90ed1f0SLiu Zhe <target name="download" unless="${skip}"> 184*e90ed1f0SLiu Zhe <delete dir="${dest}" /> 185*e90ed1f0SLiu Zhe <mkdir dir="${dest}" /> 186*e90ed1f0SLiu Zhe <get src="${src}" dest="${dest}" verbose="false" usetimestamp="true" skipexisting="true" /> 187*e90ed1f0SLiu Zhe </target> 188*e90ed1f0SLiu Zhe 189faa4b864SLei De Bin <target name="download.build" unless="download.build.skip" description="Download the specified build from the remote server"> 190*e90ed1f0SLiu Zhe <property name="openoffice.pack.dir" value="${testspace}/download" /> 191*e90ed1f0SLiu Zhe <property name="openoffice.pack.download.mark" value="${testspace}/download/url.txt"/> 192*e90ed1f0SLiu Zhe <loadfile property="openoffice.pack.download.url" srcFile="${openoffice.pack.download.mark}" quiet="true" failonerror="false"/> 193*e90ed1f0SLiu Zhe <condition property="download.build.skip" value="true" else="false"> 194*e90ed1f0SLiu Zhe <equals arg1="${openoffice.pack.download.url}" arg2="${openoffice.pack.url}"/> 195*e90ed1f0SLiu Zhe </condition> 196*e90ed1f0SLiu Zhe 197*e90ed1f0SLiu Zhe <echo>#Build is Downloaded: ${download.build.skip}</echo> 198*e90ed1f0SLiu Zhe <antcall target="download" inheritAll="false"> 199*e90ed1f0SLiu Zhe <param name="skip" value="${download.build.skip}"/> 200*e90ed1f0SLiu Zhe <param name="src" value="${openoffice.pack.url}"/> 201*e90ed1f0SLiu Zhe <param name="dest" value="${openoffice.pack.dir}"/> 202*e90ed1f0SLiu Zhe </antcall> 203*e90ed1f0SLiu Zhe <!-- 204*e90ed1f0SLiu Zhe <get src="${openoffice.pack.url}" dest="${openoffice.pack.dir}" verbose="false" usetimestamp="true" skipexisting="true" /> 205*e90ed1f0SLiu Zhe --> 206*e90ed1f0SLiu Zhe <echo message="${openoffice.pack.url}" file="${openoffice.pack.download.mark}" /> 207*e90ed1f0SLiu Zhe <echo>#OpenOffice Package Dir: ${openoffice.pack.dir}</echo> 208faa4b864SLei De Bin </target> 209faa4b864SLei De Bin 210faa4b864SLei De Bin <target name="install.build" unless="install.build.skip" description="Install the build to the local"> 211*e90ed1f0SLiu Zhe <property name="openoffice.install.dir" value="${testspace}/install/aoo" /> 212*e90ed1f0SLiu Zhe <property name="openoffice.install.temp" value="${testspace}/install/temp" /> 213*e90ed1f0SLiu Zhe <delete dir="${openoffice.install.temp}"/> 214*e90ed1f0SLiu Zhe <mkdir dir="${openoffice.install.temp}" /> 215*e90ed1f0SLiu Zhe <unzip dest="${openoffice.install.temp}"> 216*e90ed1f0SLiu Zhe <fileset dir="${openoffice.pack.dir}"> 2177acce70dSLiu Zhe <include name="**/Apache_OpenOffice*.zip" /> 218faa4b864SLei De Bin </fileset> 219faa4b864SLei De Bin </unzip> 220faa4b864SLei De Bin <pathconvert property="gz.files" pathsep=" " setonempty="false"> 221faa4b864SLei De Bin <path> 222*e90ed1f0SLiu Zhe <fileset dir="${openoffice.pack.dir}" includes="Apache_OpenOffice*.gz" /> 223faa4b864SLei De Bin </path> 224faa4b864SLei De Bin </pathconvert> 225*e90ed1f0SLiu Zhe <exec dir="${openoffice.install.temp}" executable="tar" failifexecutionfails="false"> 226d7740c70SLiu Zhe <arg line="-zxpf ${gz.files}" /> 227faa4b864SLei De Bin </exec> 228*e90ed1f0SLiu Zhe <pathconvert property="openoffice.root.dir" pathsep=" " setonempty="false"> 22909c344eeSLiu Zhe <path> 230*e90ed1f0SLiu Zhe <dirset dir="${openoffice.install.temp}"> 23109c344eeSLiu Zhe <include name="*"/> 23209c344eeSLiu Zhe </dirset> 23309c344eeSLiu Zhe </path> 23409c344eeSLiu Zhe </pathconvert> 235*e90ed1f0SLiu Zhe <delete dir="${openoffice.install.dir}"/> 236*e90ed1f0SLiu Zhe <move file="${openoffice.root.dir}" tofile="${openoffice.install.dir}"/> 237*e90ed1f0SLiu Zhe <delete dir="${openoffice.install.temp}"/> 238faa4b864SLei De Bin <pathconvert property="openoffice.bin" pathsep=" " setonempty="false"> 239faa4b864SLei De Bin <path> 240*e90ed1f0SLiu Zhe <fileset dir="${openoffice.install.dir}" includes="**/*/soffice.bin" followsymlinks="false" /> 241faa4b864SLei De Bin </path> 242faa4b864SLei De Bin </pathconvert> 2432d64174bSLiu Zhe <dirname property="openoffice.bin.parent" file="${openoffice.bin}" /> 2442d64174bSLiu Zhe <property name="openoffice.home" location="${openoffice.bin.parent}/../" /> 245faa4b864SLei De Bin <fail unless="openoffice.home" /> 246*e90ed1f0SLiu Zhe <echo>#Openoffice Home: ${openoffice.home}</echo> 247faa4b864SLei De Bin </target> 248faa4b864SLei De Bin 249*e90ed1f0SLiu Zhe <target name="run.test" depends="compile, detect.testenv" description="Run junit"> 250faa4b864SLei De Bin <tstamp> 251faa4b864SLei De Bin <format property="output.stamp" pattern="yyMMdd.hhmm" /> 252faa4b864SLei De Bin </tstamp> 253faa4b864SLei De Bin 254faa4b864SLei De Bin <move file="${test.output}" tofile="${test.output}.${output.stamp}" failonerror="false" /> 255faa4b864SLei De Bin <mkdir dir="${test.result}" /> 256faa4b864SLei De Bin <mkdir dir="${test.report}" /> 257faa4b864SLei De Bin <mkdir dir="${test.output}/temp" /> 2582d64174bSLiu Zhe 259faa4b864SLei De Bin <junit fork="yes" forkmode="once" tempdir="${test.output}/temp" printsummary="yes" showoutput="false" errorProperty="test.failed" failureProperty="test.failed" dir="."> 26009c344eeSLiu Zhe <env key="DISPLAY" value="${env.DISPLAY}"/> 26109c344eeSLiu Zhe <sysproperty key="openoffice.home" value="${openoffice.home}" /> 262faa4b864SLei De Bin <sysproperty key="testspace" value="${testspace}" /> 263faa4b864SLei De Bin <syspropertyset> 264faa4b864SLei De Bin <propertyref builtin="commandline" /> 265faa4b864SLei De Bin </syspropertyset> 266faa4b864SLei De Bin <batchtest todir="${test.result}"> 267faa4b864SLei De Bin <fileset dir="${classes}" includes="${test.classes}" /> 268faa4b864SLei De Bin </batchtest> 269faa4b864SLei De Bin 270faa4b864SLei De Bin <formatter type="xml" /> 2717acce70dSLiu Zhe <classpath> 2727acce70dSLiu Zhe <pathelement location="${classes}" /> 2737acce70dSLiu Zhe <path refid="junit.classpath"/> 2747acce70dSLiu Zhe <path refid="uno.classpath"/> 2757acce70dSLiu Zhe </classpath> 276faa4b864SLei De Bin </junit> 277*e90ed1f0SLiu Zhe 278faa4b864SLei De Bin <junitreport todir="${test.report}"> 279faa4b864SLei De Bin <fileset dir="${test.result}"> 280faa4b864SLei De Bin <include name="TEST-*.xml" /> 281faa4b864SLei De Bin </fileset> 282faa4b864SLei De Bin <report format="frames" styledir="${junit.style.dir}" todir="${test.report}"> 283*e90ed1f0SLiu Zhe <param name="TITLE" expression="${test.name}: ${openoffice.build.name}, ${test.os.name}-${test.os.version}-${test.os.arch}"/> 284faa4b864SLei De Bin </report> 285faa4b864SLei De Bin </junitreport> 2867acce70dSLiu Zhe <property name="test.report.index" location="${test.report}/index.html" /> 2877acce70dSLiu Zhe <echo>Open ${test.report.index} in browser to view the test report.</echo> 288faa4b864SLei De Bin </target> 289faa4b864SLei De Bin 2900e2e75f4SLiu Zhe <target name="test" depends="check.build,find.build,download.build,install.build,run.test" description="Run testing on the specified build. The build is automatically downloaded and installed according to the context."> 291faa4b864SLei De Bin <fail message="Test Failed" if="test.failed" /> 292faa4b864SLei De Bin </target> 293*e90ed1f0SLiu Zhe 294*e90ed1f0SLiu Zhe <target name="detect.testenv"> 29596b3c68eSLiu Zhe <exec outputproperty="test.os.name" executable="lsb_release" failifexecutionfails="false" os="Linux"> 296d7740c70SLiu Zhe <arg line="-is" /> 297d7740c70SLiu Zhe </exec> 29896b3c68eSLiu Zhe <exec outputproperty="test.os.version" executable="lsb_release" failifexecutionfails="false" os="Linux"> 299d7740c70SLiu Zhe <arg line="-rs" /> 300d7740c70SLiu Zhe </exec> 301d7740c70SLiu Zhe <property name="test.os.name" value="${os.name}" /> 302d7740c70SLiu Zhe <property name="test.os.version" value="${os.version}" /> 303d7740c70SLiu Zhe <property name="test.os.arch" value="${os.arch}" /> 304d7740c70SLiu Zhe <echo>${test.os.name}-${test.os.version}-${test.os.arch}</echo> 305*e90ed1f0SLiu Zhe <property file="${openoffice.home}/program/versionrc" prefix="openoffice"/> 306*e90ed1f0SLiu Zhe <property file="${openoffice.home}/program/version.ini" prefix="openoffice"/> 307*e90ed1f0SLiu Zhe <property name="openoffice.build.name" value=""/> 308d7740c70SLiu Zhe </target> 309d7740c70SLiu Zhe 310faa4b864SLei De Bin 311d7740c70SLiu Zhe <target name="report.test" unless="report.test.skip" description="Upload the testing result to report repository." depends="detect.testenv"> 312*e90ed1f0SLiu Zhe <property name="report.to" value="${openoffice.build.name}/${test.name}/${test.os.name}-${test.os.version}-${test.os.arch}" /> 3137dd2b5bbSLiu Zhe <echo>Uploading report to ${report.repos}/${report.to}</echo> 31409c344eeSLiu Zhe <property name="report.to.temp" location="${testspace}/.temp.ouput"/> 31509c344eeSLiu Zhe <delete dir="${report.to.temp}" deleteonexit="true"/> 3167dd2b5bbSLiu Zhe <copy todir="${report.to.temp}/${report.to}"> 3177dd2b5bbSLiu Zhe <fileset dir="${test.output}" /> 3187dd2b5bbSLiu Zhe </copy> 31909c344eeSLiu Zhe <scp todir="${report.repos}" trust="true"> 3207dd2b5bbSLiu Zhe <fileset dir="${report.to.temp}"/> 3217dd2b5bbSLiu Zhe </scp> 32209c344eeSLiu Zhe <delete dir="${report.to.temp}" deleteonexit="true"/> 323faa4b864SLei De Bin </target> 324faa4b864SLei De Bin 325faa4b864SLei De Bin <target name="detect.build" depends="find.build" description="Check if new build is available. If no new build is available, the target will be failed."> 326d7740c70SLiu Zhe <property name="test.mark.file" location="${testspace}/${test.name}.build"/> 327d7740c70SLiu Zhe <loadfile property="local.build" srcFile="${test.mark.file}" quiet="true" failonerror="false" /> 328faa4b864SLei De Bin <fail message="The build has been tested! We don't want to test it twice."> 329faa4b864SLei De Bin <condition> 330faa4b864SLei De Bin <equals arg1="${openoffice.build}" arg2="${local.build}" trim="true" /> 331faa4b864SLei De Bin </condition> 332faa4b864SLei De Bin </fail> 333faa4b864SLei De Bin <mkdir dir="${testspace}" /> 334d7740c70SLiu Zhe <echo file="${test.mark.file}">${openoffice.build}</echo> 335faa4b864SLei De Bin </target> 336faa4b864SLei De Bin 3370e2e75f4SLiu Zhe <target name="routine.test" depends="detect.build,download.build,install.build,run.test,report.test" description="Periodically run testing."> 338faa4b864SLei De Bin <fail message="Test Failed" if="test.failed" /> 339faa4b864SLei De Bin </target> 340faa4b864SLei De Bin</project> 341