blob: c71c00a2d69902205fa19394f85563718b3c7d74 [file] [log] [blame]
<?xml version="1.0"?>
<project name="JUnit tests" basedir=".">
<property environment="env" />
<!-- basedir should be "eclipse-home", the eclipse install being tested -->
<property name="library-xml-file"
value="${basedir}/plugins/org.eclipse.test_3.1.0/library.xml" />
<import file="${library-xml-file}" />
<property name="junit-report-output"
value="${basedir}/results" />
<property name="otherVMArgs"
value=" -Dwtp.autotest.noninteractive=true -Dosgi.clean=true -Dosgi.ws=${env.BASEWS} -Dosgi.os=${env.BASEOS} -Dosgi.arch=${env.BASEARCH}" />
<target name="core-test">
<echo message="test-type: core-test" />
<echo message="basedir: ${basedir}" />
<echo message="basedir: ${basedir}" />
<echo message="library-xml-file: ${library-xml-file}" />
<echo message="junit-report-output: ${junit-report-output}" />
<!-- if not otherwise set, be sure extraVMargs is at least empty string -->
<property name="extraVMargs" value="" />
<mkdir dir="${junit-report-output}" />
<ant antfile="${library-xml-file}"
target="eclipse-test">
<property name="application"
value="org.eclipse.test.coretestapplication" />
<property name="extraVMargs"
value="${extraVMargs} ${otherVMArgs}" />
<property name="timeout" value="1700000" />
<property name="junit-report-output"
value="${junit-report-output}" />
<property name="plugin-path"
value="${basedir}/plugins/${plugin-name}" />
<property name="formatter"
value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" />
<property name="test-output"
value="${eclipse-home}/${classname}.xml" />
<property name="useEclispeExe" value="true" />
</ant>
</target>
<target name="ui-test">
<echo message="test-type: ui-test" />
<echo message="basedir: ${basedir}" />
<echo message="eclipse.home: ${eclipse.home}" />
<echo message="library-xml-file: ${library-xml-file}" />
<echo message="junit-report-output: ${junit-report-output}" />
<!-- if not otherwise set, be sure extraVMargs is at least empty string -->
<property name="extraVMargs" value="" />
<mkdir dir="${junit-report-output}" />
<ant antfile="${library-xml-file}"
target="eclipse-test">
<property name="application"
value="org.eclipse.test.uitestapplication" />
<property name="extraVMargs"
value="${extraVMargs} ${otherVMArgs}" />
<property name="timeout" value="600000" />
<property name="junit-report-output"
value="${junit-report-output}" />
<property name="plugin-path"
value="${basedir}/plugins/${plugin-name}" />
<property name="formatter"
value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" />
<property name="test-output"
value="${eclipse-home}/${classname}.xml" />
<property name="useEclispeExe" value="true" />
</ant>
</target>
</project>