blob: c062c584b0e61d029881e3fb4012a16ae41ba528 [file] [log] [blame]
<?xml version="1.0"?>
<project
name="API tests"
basedir=".">
<import
file="${basedir}/plugins/org.eclipse.test_3.2.0/library.xml" />
<target name="ui-test">
<property
name="extraVMargs"
value="" />
<antcall target="runPIAgent">
<param
name="application"
value="org.eclipse.test.uitestapplication" />
<param
name="extraVMargs"
value="${extraVMargs} -Dwtp.autotest.noninteractive=true" />
</antcall>
</target>
<target name="core-test">
<property
name="extraVMargs"
value="" />
<antcall target="runPIAgent">
<param
name="application"
value="org.eclipse.test.coretestapplication" />
<param
name="extraVMargs"
value="${extraVMargs} -Dwtp.autotest.noninteractive=true" />
</antcall>
</target>
<target name="runPIAgent">
<property
name="wtp.api"
value="${build.home}/${env.RELENG_BUILDER}/distribution/wtp.api" />
<property
name="piagentDir"
value="${testDir}/piagent" />
<tstamp>
<format
property="TIMENOW"
pattern="HHmmssSSSS" />
</tstamp>
<property
name="vmargs"
value="" />
<property
name="launcher"
value="org.eclipse.core.launcher.Main" />
<property
name="formatter"
value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" />
<property
name="extraVMargs"
value="" />
<property
name="plugin-path"
value="" />
<property
name="timeout"
value="7200000" />
<property file="${testDir}/eclipse/configuration/config.ini" />
<echo message="Running ${classname}" />
<mkdir dir="${testDir}/apiresults/trcxml" />
<delete
file="${testDir}/apiresults/trcxml/${plugin-name}-${classname}.trcxml"
failonerror="false" />
<exec
dir="${piagentDir}"
executable="java"
timeout="${timeout}">
<env
key="LD_LIBRARY_PATH"
value="${piagentDir}" />
<env
key="java.library.path"
value="${piagentDir}" />
<env
key="PLUGIN_PATH"
value="${plugin-path}" />
<arg
line="-cp ${testDir}/eclipse/plugins/org.eclipse.equinox.launcher_*.jar -XrunpiAgent:server=standalone,profile=${wtp.api}/testScripts/piagent_options.txt,filters=${wtp.api}/testScripts/piagent_filters.txt,file=${testDir}/apiresults/trcxml/${plugin-name}-${classname}.trcxml -Xmx512M ${vmargs} ${extraVMargs} ${launcher} -application ${application} -dev bin -data ${data-dir} formatter=${formatter},${testDir}/eclipse/${classname}.xml -testPluginName ${plugin-name} -className ${classname} -os ${os} -ws ${ws} -arch ${arch} -consolelog" />
</exec>
</target>
</project>