blob: c71c00a2d69902205fa19394f85563718b3c7d74 [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"
8 value="${basedir}/plugins/org.eclipse.test_3.1.0/library.xml" />
david_williams02ac65b2007-03-13 05:06:34 +00009
david_williams746e7d62007-03-11 09:17:59 +000010 <import file="${library-xml-file}" />
ndaib8cedc82005-09-13 18:00:32 +000011
david_williams02ac65b2007-03-13 05:06:34 +000012
david_williamse00bd352007-03-11 22:41:46 +000013 <property name="junit-report-output"
david_williams50c0a0a2007-03-12 07:33:53 +000014 value="${basedir}/results" />
david_williamse00bd352007-03-11 22:41:46 +000015
david_williams02ac65b2007-03-13 05:06:34 +000016 <property name="otherVMArgs"
17 value=" -Dwtp.autotest.noninteractive=true -Dosgi.clean=true -Dosgi.ws=${env.BASEWS} -Dosgi.os=${env.BASEOS} -Dosgi.arch=${env.BASEARCH}" />
18
david_williams746e7d62007-03-11 09:17:59 +000019 <target name="core-test">
david_williams02ac65b2007-03-13 05:06:34 +000020 <echo message="test-type: core-test" />
21
22 <echo message="basedir: ${basedir}" />
23 <echo message="basedir: ${basedir}" />
24 <echo message="library-xml-file: ${library-xml-file}" />
25 <echo message="junit-report-output: ${junit-report-output}" />
26 <!-- if not otherwise set, be sure extraVMargs is at least empty string -->
david_williams746e7d62007-03-11 09:17:59 +000027 <property name="extraVMargs" value="" />
david_williamsb9b04772007-03-13 06:34:15 +000028
david_williams746e7d62007-03-11 09:17:59 +000029 <mkdir dir="${junit-report-output}" />
ndaib8cedc82005-09-13 18:00:32 +000030
david_williams02ac65b2007-03-13 05:06:34 +000031 <ant antfile="${library-xml-file}"
32 target="eclipse-test">
david_williamsdd6480b2007-03-13 07:43:22 +000033 <property name="application"
david_williams02ac65b2007-03-13 05:06:34 +000034 value="org.eclipse.test.coretestapplication" />
35 <property name="extraVMargs"
36 value="${extraVMargs} ${otherVMArgs}" />
david_williams5b60a132007-03-13 22:44:25 +000037 <property name="timeout" value="1700000" />
david_williams02ac65b2007-03-13 05:06:34 +000038 <property name="junit-report-output"
39 value="${junit-report-output}" />
40 <property name="plugin-path"
41 value="${basedir}/plugins/${plugin-name}" />
42 <property name="formatter"
43 value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" />
44 <property name="test-output"
45 value="${eclipse-home}/${classname}.xml" />
46 <property name="useEclispeExe" value="true" />
47 </ant>
david_williams746e7d62007-03-11 09:17:59 +000048 </target>
49
david_williams02ac65b2007-03-13 05:06:34 +000050
david_williams746e7d62007-03-11 09:17:59 +000051 <target name="ui-test">
david_williams02ac65b2007-03-13 05:06:34 +000052 <echo message="test-type: ui-test" />
53
54 <echo message="basedir: ${basedir}" />
55 <echo message="eclipse.home: ${eclipse.home}" />
56 <echo message="library-xml-file: ${library-xml-file}" />
57 <echo message="junit-report-output: ${junit-report-output}" />
58 <!-- if not otherwise set, be sure extraVMargs is at least empty string -->
david_williams746e7d62007-03-11 09:17:59 +000059 <property name="extraVMargs" value="" />
60 <mkdir dir="${junit-report-output}" />
david_williams746e7d62007-03-11 09:17:59 +000061
david_williams02ac65b2007-03-13 05:06:34 +000062 <ant antfile="${library-xml-file}"
63 target="eclipse-test">
64 <property name="application"
65 value="org.eclipse.test.uitestapplication" />
66 <property name="extraVMargs"
david_williamsb9b04772007-03-13 06:34:15 +000067 value="${extraVMargs} ${otherVMArgs}" />
david_williams02ac65b2007-03-13 05:06:34 +000068 <property name="timeout" value="600000" />
69 <property name="junit-report-output"
70 value="${junit-report-output}" />
71 <property name="plugin-path"
72 value="${basedir}/plugins/${plugin-name}" />
73 <property name="formatter"
74 value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" />
75 <property name="test-output"
76 value="${eclipse-home}/${classname}.xml" />
77 <property name="useEclispeExe" value="true" />
78 </ant>
david_williams746e7d62007-03-11 09:17:59 +000079 </target>
ndaib8cedc82005-09-13 18:00:32 +000080
81</project>