| <?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="eclipse-home: ${eclipse-home}" /> |
| <echo message="class-name: ${classname}" /> |
| <echo message="plugin-name: ${plugin-name}" /> |
| <echo message="plugin-direcotory: ${testPlugin}" /> |
| <echo message="library-xml-file: ${library-xml-file}" /> |
| <echo message="junit-report-output: ${junit-report-output}" /> |
| <echo message="jvm: ${env.JAVA_5_HOME}" /> |
| <!-- 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/${testPlugin}" /> |
| <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" /> |
| <property name="classname" value="${classname}" /> |
| <property name="jvm" value="${env.JAVA_5_HOME}" /> |
| </ant> |
| </target> |
| |
| |
| <target name="ui-test"> |
| <echo message="test-type: ui-test" /> |
| |
| <echo message="basedir: ${basedir}" /> |
| <echo message="eclipse-home: ${eclipse-home}" /> |
| <echo message="class-name: ${classname}" /> |
| <echo message="plugin-name: ${plugin-name}" /> |
| <echo message="plugin-direcotory: ${testPlugin}" /> |
| <echo message="library-xml-file: ${library-xml-file}" /> |
| <echo message="junit-report-output: ${junit-report-output}" /> |
| <echo message="jvm: ${env.JAVA_5_HOME}" /> |
| <!-- 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/${testPlugin}" /> |
| <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" /> |
| <property name="classname" value="${classname}" /> |
| <property name="jvm" value="${env.JAVA_HOME}" /> |
| </ant> |
| </target> |
| |
| </project> |