blob: ceeabff55a7592295873850524ff9397215ed4c3 [file] [log] [blame]
<!--
Copyright (c) 2009, 2019 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->
<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="info"
message="keyCfgFile: ${keyCfgFile}"/>
<property file="${keyCfgFile}"/>
<echo
level="info"
message="starting Automated Eclipse Testing"/>
<echo
level="info"
message="ant file basedir: ${basedir}"/>
<echo
level="info"
message="testRoot: ${testRoot}"/>
<fail
message="testRoot must be set"
unless="testRoot"/>
<!--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="info"
message="keyCfgFile: ${keyCfgFile}"/>
<property file="${keyCfgFile}"/>
<!--
name that can be added to report name to identify which platform
tests results come from
-->
<property
name="platform"
value=""/>
<!-- TODO: The framework apps might need this. But we should elmimnate if posslbe. -->
<property
name="eclipse-home"
value="${testRoot}/eclipse"/>
<!--
The directory that will contain the xml and html results from
the tests that are run
-->
<property
name="results"
value="${testRoot}/results"/>
<property
name="library-file"
value="${testRoot}/wtp-junit-tests.xml"/>
<target name="init">
</target>
<target
name="all"
depends="init">
<echo
level="info"
message="Starting Unit Tests"/>
<!--
unlike other ant tasks, subant defaults to false for
inheritall!
-->
<subant
target=""
inheritall="true">
<fileset dir="${testRoot}${dropinsFolder}/eclipse/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>