blob: 86ddfb7bd032a40a322af0e0dac7781c0ba61eff [file] [log] [blame]
ndaib8cedc82005-09-13 18:00:32 +00001<?xml version="1.0"?>
david_williams746e7d62007-03-11 09:17:59 +00002<project name="JUnit tests" basedir=".">
ndaib8cedc82005-09-13 18:00:32 +00003
david_williams02ac65b2007-03-13 05:06:34 +00004 <property environment="env" />
5 <!-- basedir should be "eclipse-home", the eclipse install being tested -->
6
david_williams746e7d62007-03-11 09:17:59 +00007 <property name="library-xml-file"
david_williams626c6982007-03-16 06:02:16 +00008 value="${testRoot}/library.xml" />
9 <!-- value="${basedir}/plugins/org.eclipse.test_3.1.0/library.xml" /> -->
10
david_williams02ac65b2007-03-13 05:06:34 +000011
david_williams746e7d62007-03-11 09:17:59 +000012 <import file="${library-xml-file}" />
ndaib8cedc82005-09-13 18:00:32 +000013
david_williams02ac65b2007-03-13 05:06:34 +000014
david_williamse00bd352007-03-11 22:41:46 +000015 <property name="junit-report-output"
david_williams50c0a0a2007-03-12 07:33:53 +000016 value="${basedir}/results" />
david_williamse00bd352007-03-11 22:41:46 +000017
david_williams02ac65b2007-03-13 05:06:34 +000018 <property name="otherVMArgs"
19 value=" -Dwtp.autotest.noninteractive=true -Dosgi.clean=true -Dosgi.ws=${env.BASEWS} -Dosgi.os=${env.BASEOS} -Dosgi.arch=${env.BASEARCH}" />
20
david_williams746e7d62007-03-11 09:17:59 +000021 <target name="core-test">
david_williams02ac65b2007-03-13 05:06:34 +000022 <echo message="test-type: core-test" />
23
24 <echo message="basedir: ${basedir}" />
david_williams82fded12007-03-15 20:19:07 +000025 <echo message="eclipse-home: ${eclipse-home}" />
david_williams9d23a9d2007-03-16 02:23:53 +000026 <echo message="class-name: ${classname}" />
david_williams82fded12007-03-15 20:19:07 +000027 <echo message="plugin-name: ${plugin-name}" />
david_williams9d23a9d2007-03-16 02:23:53 +000028 <echo message="plugin-direcotory: ${testPlugin}" />
david_williams02ac65b2007-03-13 05:06:34 +000029 <echo message="library-xml-file: ${library-xml-file}" />
30 <echo message="junit-report-output: ${junit-report-output}" />
david_williams9d23a9d2007-03-16 02:23:53 +000031 <echo message="jvm: ${env.JAVA_5_HOME}/bin/java" />
david_williams02ac65b2007-03-13 05:06:34 +000032 <!-- if not otherwise set, be sure extraVMargs is at least empty string -->
david_williams746e7d62007-03-11 09:17:59 +000033 <property name="extraVMargs" value="" />
david_williams9d23a9d2007-03-16 02:23:53 +000034
david_williams746e7d62007-03-11 09:17:59 +000035 <mkdir dir="${junit-report-output}" />
ndaib8cedc82005-09-13 18:00:32 +000036
david_williams02ac65b2007-03-13 05:06:34 +000037 <ant antfile="${library-xml-file}"
38 target="eclipse-test">
david_williamsdd6480b2007-03-13 07:43:22 +000039 <property name="application"
david_williams02ac65b2007-03-13 05:06:34 +000040 value="org.eclipse.test.coretestapplication" />
41 <property name="extraVMargs"
42 value="${extraVMargs} ${otherVMArgs}" />
david_williams626c6982007-03-16 06:02:16 +000043 <property name="timeout" value="600000" />
david_williams02ac65b2007-03-13 05:06:34 +000044 <property name="junit-report-output"
45 value="${junit-report-output}" />
46 <property name="plugin-path"
david_williams82fded12007-03-15 20:19:07 +000047 value="${basedir}/plugins/${testPlugin}" />
david_williams02ac65b2007-03-13 05:06:34 +000048 <property name="formatter"
49 value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" />
50 <property name="test-output"
51 value="${eclipse-home}/${classname}.xml" />
52 <property name="useEclispeExe" value="true" />
david_williams9d23a9d2007-03-16 02:23:53 +000053 <property name="classname" value="${classname}" />
54 <property name="jvm" value="${env.JAVA_5_HOME}/bin/java" />
david_williams02ac65b2007-03-13 05:06:34 +000055 </ant>
david_williams746e7d62007-03-11 09:17:59 +000056 </target>
57
david_williams02ac65b2007-03-13 05:06:34 +000058
david_williams746e7d62007-03-11 09:17:59 +000059 <target name="ui-test">
david_williams02ac65b2007-03-13 05:06:34 +000060 <echo message="test-type: ui-test" />
61
62 <echo message="basedir: ${basedir}" />
david_williams82fded12007-03-15 20:19:07 +000063 <echo message="eclipse-home: ${eclipse-home}" />
david_williams9d23a9d2007-03-16 02:23:53 +000064 <echo message="class-name: ${classname}" />
david_williams82fded12007-03-15 20:19:07 +000065 <echo message="plugin-name: ${plugin-name}" />
david_williams9d23a9d2007-03-16 02:23:53 +000066 <echo message="plugin-direcotory: ${testPlugin}" />
david_williams02ac65b2007-03-13 05:06:34 +000067 <echo message="library-xml-file: ${library-xml-file}" />
68 <echo message="junit-report-output: ${junit-report-output}" />
david_williams9d23a9d2007-03-16 02:23:53 +000069 <echo message="jvm: ${env.JAVA_5_HOME}/bin/java" />
david_williams02ac65b2007-03-13 05:06:34 +000070 <!-- if not otherwise set, be sure extraVMargs is at least empty string -->
david_williams746e7d62007-03-11 09:17:59 +000071 <property name="extraVMargs" value="" />
72 <mkdir dir="${junit-report-output}" />
david_williams746e7d62007-03-11 09:17:59 +000073
david_williams02ac65b2007-03-13 05:06:34 +000074 <ant antfile="${library-xml-file}"
75 target="eclipse-test">
76 <property name="application"
77 value="org.eclipse.test.uitestapplication" />
78 <property name="extraVMargs"
david_williams626c6982007-03-16 06:02:16 +000079 value="${extraVMargs} ${otherVMArgs}" />
david_williams02ac65b2007-03-13 05:06:34 +000080 <property name="timeout" value="600000" />
81 <property name="junit-report-output"
82 value="${junit-report-output}" />
83 <property name="plugin-path"
david_williams82fded12007-03-15 20:19:07 +000084 value="${basedir}/plugins/${testPlugin}" />
david_williams02ac65b2007-03-13 05:06:34 +000085 <property name="formatter"
86 value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" />
87 <property name="test-output"
88 value="${eclipse-home}/${classname}.xml" />
89 <property name="useEclispeExe" value="true" />
david_williams9d23a9d2007-03-16 02:23:53 +000090 <property name="classname" value="${classname}" />
david_williams626c6982007-03-16 06:02:16 +000091 <property name="jvm" value="${env.JAVA_5_HOME}/bin/java" />
david_williams02ac65b2007-03-13 05:06:34 +000092 </ant>
david_williams746e7d62007-03-11 09:17:59 +000093 </target>
ndaib8cedc82005-09-13 18:00:32 +000094
95</project>