blob: cbd5798353e33f22f09428a0a570eff18667e1a9 [file] [log] [blame]
<project
name="Automated Eclipse Testing"
default="all"
basedir=".">
<property
environment="env"/>
<!-- required to get proper value of dropinsFolder -->
<property
name="keyCfgFile"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
<echo
level="debug"
message="keyCfgFile: ${keyCfgFile}"/>
<property
file="${keyCfgFile}"/>
<echo
level="info"
message="starting Automated Eclipse Testing"/>
<echo
level="debug"
message="basedir: ${basedir}"/>
<echo
level="debug"
message="testRoot: ${testRoot}"/>
<fail
message="testRoot must be set"
unless="testRoot"/>
<!--properties file containing the some server name properties -->
<property
file="${testRoot}/testServer.properties"/>
<!--properties file containing the build information-->
<property
file="${buildDirectory}/label.properties"/>
<!-- required to get proper value of dropinsFolder -->
<property
name="keyCfgFile"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
<echo
level="debug"
message="keyCfgFile: ${keyCfgFile}"/>
<property
file="${keyCfgFile}"/>
<!--default directory where test-eclipse will be installed-->
<property
name="install"
value="${testRoot}"/>
<!--
name that can be added to report name to identify which platform
tests results come from
-->
<property
name="platform"
value=""/>
<!-- The root of the eclipse installation -->
<property
name="eclipse-home"
value="${testRoot}${dropinsFolder}/eclipse/"/>
<!--
The directory that will contain the xml and html results from
the tests that are run
-->
<property
name="results"
value="${testRoot}/results"/>
<!-- jonas install directory -->
<!-- TODO: why do this twice? Here and in init? -->
<property
name="jonas432Dir"
value="${testRoot}/${jonas432DirName}"/>
<target
name="init">
<antcall
target="setPropertyJOnAS432Dir"/>
</target>
<target
name="setPropertyJOnAS432Dir"
unless="jonas432Dir">
<property
name="jonas432Dir"
value="${testRoot}/${jonas432DirName}"/>
</target>
<target
name="all"
depends="init">
<echo
level="info"
message="Starting Unit Tests"/>
<subant
target="">
<property
name="eclipse-home"
value="${testRoot}${dropinsFolder}/eclipse/"/>
<property
name="library-file"
value="${testRoot}/wtp-junit-tests.xml"/>
<!--properties file containing the build information-->
<property
file="${buildDirectory}/label.properties"/>
<!-- required to get proper value of dropinsFolder -->
<property
name="keyCfgFile"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
<property
file="${keyCfgFile}"/>
<!--
TODO: seems this properties file shold not be necessary
... at least there, that it can be found by test scripts
themselves, at least. But will put here for now, to try
and complete bug 295153.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295153
-->
<property
file="${testRoot}/testServer.properties"/>
<fileset
dir="${eclipse-home}/plugins/">
<exclude
name="**/*performance*/test.xml"/>
<include
name="**/test.xml"/>
</fileset>
</subant>
<echo
level="info"
message="Ended Unit Tests"/>
<antcall
target="genHtml"/>
</target>
<target
name="genHtml"
description="Generates HTML results with provided JUNIT.XSL provided"
unless="genHtml.disable">
<xslt
style="JUNIT.XSL"
basedir="${results}/xml"
destdir="${results}/html"/>
</target>
</project>