Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 395099 | Differences between
and this patch

Collapse All | Expand All

(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/readme.html (-65 / +64 lines)
Lines 7-110 Link Here
7
7
8
<body bgcolor="#FFFFFF" text="#000000">
8
<body bgcolor="#FFFFFF" text="#000000">
9
<font size="+2"> Automated Testing of Eclipse Builds</font>
9
<font size="+2"> Automated Testing of Eclipse Builds</font>
10
<p>Last updated: March 2, 2011</p><p><font size="+1">Description</font></p><p>This document describes how to run Eclipse JUnit plugin tests from the command 
10
<p>Last updated: March 2, 2011</p><p><font size="+1">Description</font></p><p>This document describes how to run Eclipse JUnit plugin tests from the command
11
  line using Eclipse SDK  JUnit test plug-ins and a testing framework. This method of running tests is intended 
11
  line using Eclipse SDK  JUnit test plug-ins and a testing framework. This method of running tests is intended
12
  for anyone who wishes to automate their testing process or reproduce the testing 
12
  for anyone who wishes to automate their testing process or reproduce the testing
13
  mechanism used in Eclipse builds by the Eclipse Platform  Release Engineering team.</p><p>Click <a href="http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/org.eclipse.test/testframework.html?rev=HEAD">here</a> for a description of the testing 
13
  mechanism used in Eclipse builds by the Eclipse Platform  Release Engineering team.</p><p>Click <a href="http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/org.eclipse.test/testframework.html?rev=HEAD">here</a> for a description of the testing
14
  framework, and how it can be used outside of the setup described here.</p><p>If you simply wish to write and run JUnit tests interactively from an Eclipse 
14
  framework, and how it can be used outside of the setup described here.</p><p>If you simply wish to write and run JUnit tests interactively from an Eclipse
15
  workbench, try one of the links below:</p><p><a href="http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/gettingStarted/qs-junit.htm">JUnit Support in Eclipse</a><br>
15
  workbench, try one of the links below:</p><p><a href="http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/gettingStarted/qs-junit.htm">JUnit Support in Eclipse</a><br>
16
<a href="http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.pde.doc.user/guide/tools/launchers/junit_launcher.htm">Testing Eclipse Plug-ins with JUnit</a></p><p><font size="+1">Requirements</font></p>
16
<a href="http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.pde.doc.user/guide/tools/launchers/junit_launcher.htm">Testing Eclipse Plug-ins with JUnit</a></p><p><font size="+1">Requirements</font></p>
17
<ol>
17
<ol>
18
  <li>All test machines will require 1.4 and 1.5 java runtime environments installed to run all tests.  See <A HREF="#testtargets">test targets</A> 
18
  <li>All test machines will require 1.4 and 1.5 java runtime environments installed to run all tests.  See <A HREF="#testtargets">test targets</A>
19
  for details on which tests require a 1.5 level jre.  All other tests can be executed with either jre levels.</li>
19
  for details on which tests require a 1.5 level jre.  All other tests can be executed with either jre levels.</li>
20
  
20
21
  <li>A properties file containing the following   key-value pair: J2SE-5.0=&lt;path to 1.5  java executable&gt;. On Windows,  the path must be enclosed with double quotes if it contains any space characters, e.g. J2SE-5.0=&quot;c:/program files/jdk1.5.0/jre/bin/java&quot;.</li>
21
  <li>A properties file containing the following   key-value pair: J2SE-5.0=&lt;path to 1.5  java executable&gt;. On Windows,  the path must be enclosed with double quotes if it contains any space characters, e.g. J2SE-5.0=&quot;c:/program files/jdk1.5.0/jre/bin/java&quot;.</li>
22
  
22
23
  <li><a href="http://www.info-zip.org/pub/infozip/UnZip.html">Info-ZIP UnZip</a> version 5.41 or later installed and added to the path.</li>
23
  <li><a href="http://www.info-zip.org/pub/infozip/UnZip.html">Info-ZIP UnZip</a> version 5.41 or later installed and added to the path.</li>
24
  
24
25
  <li>The JUnit Plugin Tests <code>eclipse-Automated-Tests-&lt;buildId&gt;.zip</code> from an Eclipse build (<a href="http://download.eclipse.org/eclipse/downloads/">http://download.eclipse.org/eclipse/downloads/</a>). 
25
  <li>The JUnit Plugin Tests <code>eclipse-Automated-Tests-&lt;buildId&gt;.zip</code> from an Eclipse build (<a href="http://download.eclipse.org/eclipse/downloads/">http://download.eclipse.org/eclipse/downloads/</a>).
26
  This ZIP contains this document, scripts to run the tests, the test framework plug-ins and the JUnit test plug-ins.</li>
26
  This ZIP contains this document, scripts to run the tests, the test framework plug-ins and the JUnit test plug-ins.</li>
27
27
28
  <li>An Eclipse SDK distribution (<a href="http://download.eclipse.org/eclipse/downloads/">http://download.eclipse.org/eclipse/downloads/</a>) 
28
  <li>An Eclipse SDK distribution (<a href="http://download.eclipse.org/eclipse/downloads/">http://download.eclipse.org/eclipse/downloads/</a>)
29
  to test. Usually you will want to test a particular Eclipse build using a matching 
29
  to test. Usually you will want to test a particular Eclipse build using a matching
30
  Automated Tests feature.
30
  Automated Tests feature.
31
  
31
32
  <li>To run the pde build tests you will need the eclipse-&lt;buildId&gt;delta-pack.zip.</li> 
32
  <li>To run the pde build tests you will need the eclipse-&lt;buildId&gt;delta-pack.zip.</li>
33
  
33
34
  <li>To run the Team CVS tests you will need extssh access to a CVS repository. 
34
  <li>To run the Team CVS tests you will need extssh access to a CVS repository.
35
  The tests create a lot of junk modules and tags so you will want to keep the 
35
  The tests create a lot of junk modules and tags so you will want to keep the
36
  test repository seperate from your development repository. While it is not necessary 
36
  test repository seperate from your development repository. While it is not necessary
37
  to clean up the repository between each Team test run you will probably want 
37
  to clean up the repository between each Team test run you will probably want
38
  to clean it up periodically.</li>
38
  to clean it up periodically.</li>
39
  
39
40
  <li>Some of the p2 tests require a copy of the Eclipse Platform Runtime Binary archive for the platform you
40
  <li>Some of the p2 tests require a copy of the Eclipse Platform Runtime Binary archive for the platform you
41
  are testing. More information is available from the <a href="http://wiki.eclipse.org/Equinox/p2/Testing">Equinox Testing Wiki page</a>.</li>
41
  are testing. More information is available from the <a href="http://wiki.eclipse.org/Equinox/p2/Testing">Equinox Testing Wiki page</a>.</li>
42
</ol> 
42
</ol>
43
  
43
44
  <p><font size="+1">Setup</font></p>
44
  <p><font size="+1">Setup</font></p>
45
  <ol>
45
  <ol>
46
  <li>Extract the eclipse-Automated-Tests-&lt;buildId&gt;.zip or tar.gz. On Window, extract this file close to the root of the drive to prevent some path names from exceeding 
46
  <li>Extract the eclipse-Automated-Tests-&lt;buildId&gt;.zip or tar.gz. On Window, extract this file close to the root of the drive to prevent some path names from exceeding
47
  the 255 character limit. This will create a top-level directory <code>eclipse-testing</code>.</li>
47
  the 255 character limit. This will create a top-level directory <code>eclipse-testing</code>.</li>
48
  
48
49
  <li>Place the Eclipse SDK distribution to test (and the Eclipse Platform Runtime Binary) in the eclipse-testing directory. 
49
  <li>Place the Eclipse SDK distribution to test (and the Eclipse Platform Runtime Binary) in the eclipse-testing directory.
50
  Do not extract these files as the test scripts will take care of this.</li>
50
  Do not extract these files as the test scripts will take care of this.</li>
51
  <li>To run the Team CVS tests, edit the test.xml script to provide connection 
51
  <li>To run the Team CVS tests, edit the test.xml script to provide connection
52
  information. Replace the following strings in the <strong>teamcvs</strong> target of the <code>test.xml</code> file with the information described below:
52
  information. Replace the following strings in the <strong>teamcvs</strong> target of the <code>test.xml</code> file with the information described below:
53
  <ul>
53
  <ul>
54
  <li>@cvs_user@ - the account used to connect to the cvs repository</li>
54
  <li>@cvs_user@ - the account used to connect to the cvs repository</li>
55
  <li>@cvs_password@ - the account password</li><li>@cvs_host@- the name of the cvs server</li>
55
  <li>@cvs_password@ - the account password</li><li>@cvs_host@- the name of the cvs server</li>
56
  <li>@cvs_root@ - the repository path</li>
56
  <li>@cvs_root@ - the repository path</li>
57
  </ul> 
57
  </ul>
58
  These values are used at test time to automatically replace strings in 
58
  These values are used at test time to automatically replace strings in
59
      org.eclipse.team.tests.cvs.core/repository.properties. For more information 
59
      org.eclipse.team.tests.cvs.core/repository.properties. For more information
60
      on how this file is used in the team CVS tests, click <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.team.tests.cvs.core/readme.html?rev=HEAD">here</a>.</li>
60
      on how this file is used in the team CVS tests, click <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.team.tests.cvs.core/readme.html?rev=HEAD">here</a>.</li>
61
  </li>
61
  </li>
62
     
62
63
  <li>To Run the PDE build scripts, save the eclipse-&lt;buildId&gt;delta-pack.zip to the eclipse-testing directory.</li>
63
  <li>To Run the PDE build scripts, save the eclipse-&lt;buildId&gt;delta-pack.zip to the eclipse-testing directory.</li>
64
  </ol>
64
  </ol>
65
    
65
66
    <p><font size="+1">Running Tests</font></p><p>From a command prompt or terminal:</p>
66
    <p><font size="+1">Running Tests</font></p><p>From a command prompt or terminal:</p>
67
<ol>
67
<ol>
68
  <li><code>cd</code> to the <code>eclipse-testing</code> directory</li>
68
  <li><code>cd</code> to the <code>eclipse-testing</code> directory</li>
69
  <li>Execute the following script:</p><p><b>runtests -properties &lt;path to properties file&gt; [-os &lt;operating system&gt;] [-ws &lt;windowing system&gt;] [-arch 
69
  <li>Execute the following script:</p><p><b>runtests -properties &lt;path to properties file&gt; [-os &lt;operating system&gt;] [-ws &lt;windowing system&gt;] [-arch
70
  &lt;architecture&gt;] [-noclean] [-vm 
70
  &lt;architecture&gt;] [-noclean] [-vm
71
  &lt;path to java executable&gt;][-Dtest.target=performance][<I>targetname1 targetname2 targetname3 etc...</I>] </b></p><p>All parameters and targets are optional on windows systems with the exception of  &quot;-properties&quot;.  On *nix systems, the os, ws and arch parameters
71
  &lt;path to java executable&gt;][-Dtest.target=performance][<I>targetname1 targetname2 targetname3 etc...</I>] </b></p><p>All parameters and targets are optional on windows systems with the exception of  &quot;-properties&quot;.  On *nix systems, the os, ws and arch parameters
72
  must be specified in addition to the -properties parameter.</p><p>The JUnit test results are produced in individual xml files for each test plug-in with a test.xml. These 
72
  must be specified in addition to the -properties parameter.</p><p>The JUnit test results are produced in individual xml files for each test plug-in with a test.xml. These
73
  results are copied to the eclipse-testing\results\xml directory. These results 
73
  results are copied to the eclipse-testing\results\xml directory. These results
74
  can be converted into html by running the &quot;genHtml&quot; target as described 
74
  can be converted into html by running the &quot;genHtml&quot; target as described
75
  in the table below. Please be aware that &quot;Build Successful&quot; printed 
75
  in the table below. Please be aware that &quot;Build Successful&quot; printed
76
  to the console is NOT indicative of tests passing.</li>
76
  to the console is NOT indicative of tests passing.</li>
77
</ol>
77
</ol>
78
78
79
<p><font size="+1"><a name="vm"></a>Parameters</font></p><table width="90%" border="1">
79
<p><font size="+1"><a name="vm"></a>Parameters</font></p><table width="90%" border="1">
80
  <tr> 
80
  <tr>
81
    <td>Parameter</td><td>Description</td></tr>
81
    <td>Parameter</td><td>Description</td></tr>
82
  <tr> 
82
  <tr>
83
    <td>-os &lt;operating system&gt;</td><td>The OS the tests are being run on. One of: aix, hpux, linux, macosx, solaris, 
83
    <td>-os &lt;operating system&gt;</td><td>The OS the tests are being run on. One of: aix, hpux, linux, macosx, solaris,
84
      win32. <b>Default win32</b></td></tr>
84
      win32. <b>Default win32</b></td></tr>
85
  <tr> 
85
  <tr>
86
    <td>-ws &lt;windowing system&gt;</td><td>The windowing system the tests are being run on. One of: cocoa, gtk, photon, 
86
    <td>-ws &lt;windowing system&gt;</td><td>The windowing system the tests are being run on. One of: cocoa, gtk, photon,
87
      win32. <b>Default win32</b></td></tr>
87
      win32. <b>Default win32</b></td></tr>
88
  <tr> 
88
  <tr>
89
    <td>-arch &lt;architecture&gt;</td><td>The architecture the tests are being run on. One of: ppc, PA_RISC, x86, 
89
    <td>-arch &lt;architecture&gt;</td><td>The architecture the tests are being run on. One of: ppc, PA_RISC, x86,
90
      sparc. <b>Default x86</b></td></tr>
90
      sparc. <b>Default x86</b></td></tr>
91
  <tr> 
91
  <tr>
92
    <td>-noclean</td><td>Run tests without installing a clean Eclipse (in &quot;test-eclipse&quot;) between test targets. Default 
92
    <td>-noclean</td><td>Run tests without installing a clean Eclipse (in &quot;test-eclipse&quot;) between test targets. Default
93
      is to delete an existing test-eclipse directory and re-extract the Eclipse distribution between test targets.</td></tr>
93
      is to delete an existing test-eclipse directory and re-extract the Eclipse distribution between test targets.</td></tr>
94
  <tr> 
94
  <tr>
95
    <td>-properties</td><td><P>As per requirements noted above, this is used to reference a properties file containing additional Ant properties 
95
    <td>-properties</td><td><P>As per requirements noted above, this is used to reference a properties file containing additional Ant properties
96
      used in running tests.Can be used to pass additional vm arguments to the 
96
      used in running tests.Can be used to pass additional vm arguments to the
97
      Java virtual machine running the tests by adding the entry &quot;extraVMargs=&lt;the 
97
      Java virtual machine running the tests by adding the entry &quot;extraVMargs=&lt;the
98
      args to pass to the vm&gt;&quot; to the specified properties file.<BR><BR>At a minimum, the property file must include a &quot;J2SE-5.0&quot; property which specifies a path to a 1.5 java executable, for example:<BR><BR><B>J2SE-5.0=&quot;c:/program files/jdk1.5.0_06/jre/bin/java&quot;</B></P><P>The path must be enclosed in double quotes if it contains spaces.  This key-value pair is required to run JUnit plug-in tests that require a 1.5 level jvm.</P></td></tr>
98
      args to pass to the vm&gt;&quot; to the specified properties file.<BR><BR>At a minimum, the property file must include a &quot;J2SE-5.0&quot; property which specifies a path to a 1.5 java executable, for example:<BR><BR><B>J2SE-5.0=&quot;c:/program files/jdk1.5.0_06/jre/bin/java&quot;</B></P><P>The path must be enclosed in double quotes if it contains spaces.  This key-value pair is required to run JUnit plug-in tests that require a 1.5 level jvm.</P></td></tr>
99
  <tr> 
99
  <tr>
100
    <td>-vm</td><td><P>When runtests is executed, two instances of eclipse are started:  one to invoke the org.eclipse.ant.core.antRunner application to run a test.xml script in a test plug-in (outer instance) and another in which the JUnit tests are being executed (inner).  By default, both will use the java executable on the system path.  The -vm property is used to specify an alternate java executable. 
100
    <td>-vm</td><td><P>When runtests is executed, two instances of eclipse are started:  one to invoke the org.eclipse.ant.core.antRunner application to run a test.xml script in a test plug-in (outer instance) and another in which the JUnit tests are being executed (inner).  By default, both will use the java executable on the system path.  The -vm property is used to specify an alternate java executable.
101
      For example, &quot;-vm c:\jdk142\jre\bin\java&quot;.<BR><BR>    However, the -vm value is ignored by the inner vm for JUnit plug-in tests requiring a 1.5 JRE to execute (see <A HREF="#testtargets">test targets</A>).  This property must be used in conjunction with the -properties parameter described above at all times.</P></td></tr>
101
      For example, &quot;-vm c:\jdk142\jre\bin\java&quot;.<BR><BR>    However, the -vm value is ignored by the inner vm for JUnit plug-in tests requiring a 1.5 JRE to execute (see <A HREF="#testtargets">test targets</A>).  This property must be used in conjunction with the -properties parameter described above at all times.</P></td></tr>
102
  <tr>
102
  <tr>
103
    <td>-Dtest.target=performance</td><td>Runs the performance target only in each test plug-in's test.xml. When running tests on Windows, 
103
    <td>-Dtest.target=performance</td><td>Runs the performance target only in each test plug-in's test.xml. When running tests on Windows,
104
      enclose this parameter in double quotes, ie. runtests &quot;-Dtest.target=performance&quot;.</td></tr><tr><td>targetname1 targetname2 targetname3 etc..</td><td><P>Replace  with a list of <A HREF="#testtargets">test targets</A> to execute (space delineated).  Each corresponds to an Ant target in the eclipse-testing/test.xml script.  <BR><BR>For example, <BR><B>runtests -os linux -ws gtk -arch x86  ant antui -properties vm.properties</B><BR> This will execute the &quot;ant&quot; and &quot;antui&quot; test targets only.  If not specified, the  &quot;all&quot; target will be executed.<BR></P></td></tr>
104
      enclose this parameter in double quotes, ie. runtests &quot;-Dtest.target=performance&quot;.</td></tr><tr><td>targetname1 targetname2 targetname3 etc..</td><td><P>Replace  with a list of <A HREF="#testtargets">test targets</A> to execute (space delineated).  Each corresponds to an Ant target in the eclipse-testing/test.xml script.  <BR><BR>For example, <BR><B>runtests -os linux -ws gtk -arch x86  ant antui -properties vm.properties</B><BR> This will execute the &quot;ant&quot; and &quot;antui&quot; test targets only.  If not specified, the  &quot;all&quot; target will be executed.<BR></P></td></tr>
105
</table><p><font size="+1"><A NAME="testtargets"></A>Appendix A - Test Targets</font></p><p>Ant targets in the main test.xml which execute tests. Typically each corresponds
105
</table><p><font size="+1"><A NAME="testtargets"></A>Appendix A - Test Targets</font></p><p>Ant targets in the main test.xml which execute tests. Typically each corresponds
106
   to the execution of a test plug-in's test.xml.<BR></p><table width="90%" border="1"><tr><td WIDTH="34%">Target name (special jvm requirements)</td><td WIDTH="66%">Description / test plug-in</td></tr>
106
   to the execution of a test plug-in's test.xml.<BR></p><table width="90%" border="1"><tr><td WIDTH="34%">Target name (special jvm requirements)</td><td WIDTH="66%">Description / test plug-in</td></tr>
107
  <tr> 
107
  <tr>
108
    <td WIDTH="34%">all (<B>1.4, 1.5 and 1.6 JREs required</B>)</td><td WIDTH="66%">Runs all the targets below.  Default.</td></tr>
108
    <td WIDTH="34%">all (<B>1.4, 1.5 and 1.6 JREs required</B>)</td><td WIDTH="66%">Runs all the targets below.  Default.</td></tr>
109
  <tr><td>ant</td><td>org.eclipse.ant.tests.core</td></tr>		
109
  <tr><td>ant</td><td>org.eclipse.ant.tests.core</td></tr>		
110
<tr><td>antui</td><td>org.eclipse.ant.tests.ui</td></tr>	
110
<tr><td>antui</td><td>org.eclipse.ant.tests.ui</td></tr>	
Lines 148-169 Link Here
148
<tr><td>uiperformance</td><td>org.eclipse.ui.tests.performance</td></tr> 		
148
<tr><td>uiperformance</td><td>org.eclipse.ui.tests.performance</td></tr> 		
149
<tr><td>uircp</td><td>org.eclipse.ui.tests.rcp</td></tr>		
149
<tr><td>uircp</td><td>org.eclipse.ui.tests.rcp</td></tr>		
150
<tr><td>uiviews</td><td>org.eclipse.ui.tests.views.properties.tabbed</td></tr> 		
150
<tr><td>uiviews</td><td>org.eclipse.ui.tests.views.properties.tabbed</td></tr> 		
151
<tr><td>uiworkbenchtexteditor</td><td>org.eclipse.ui.workbench.texteditor.tests</td></tr>		
151
<tr><td>uiworkbenchtexteditor</td><td>org.eclipse.ui.workbench.texteditor.tests</td></tr>			
152
<tr><td>update</td><td>org.eclipse.update.tests.core</td></tr>		
153
152
154
153
155
</table><p><br>
154
</table><p><br>
156
</p><p><font size="+1"><a name="appendixb"></a>Appendix B - Supported os, ws, and arch 
155
</p><p><font size="+1"><a name="appendixb"></a>Appendix B - Supported os, ws, and arch
157
  value combinations</font></p><p>The following table contains the values that can be used with the -os, -ws, 
156
  value combinations</font></p><p>The following table contains the values that can be used with the -os, -ws,
158
  and -arch switches.</p><table width="75%" border="1">
157
  and -arch switches.</p><table width="75%" border="1">
159
  <tr> 
158
  <tr>
160
    <td>Operating System (os)</td><td>Windowing System (ws)</td><td>Architecture (arch)</td></tr> 
159
    <td>Operating System (os)</td><td>Windowing System (ws)</td><td>Architecture (arch)</td></tr>
161
  <tr> 
160
  <tr>
162
    <td>hpux</td><td>motif</td><td>PA_RISC</td></tr>
161
    <td>hpux</td><td>motif</td><td>PA_RISC</td></tr>
163
  <tr> 
162
  <tr>
164
    <td>linux</td><td>gtk</td><td>x86</td></tr>
163
    <td>linux</td><td>gtk</td><td>x86</td></tr>
165
  <tr>
164
  <tr>
166
    <td>linux</td><td>gtk</td><td>x86_64</td></tr>  
165
    <td>linux</td><td>gtk</td><td>x86_64</td></tr>
167
  <tr>
166
  <tr>
168
    <td>macosx</td><td>carbox</td><td>ppc</td></tr>
167
    <td>macosx</td><td>carbox</td><td>ppc</td></tr>
169
  <tr>
168
  <tr>
Lines 174-182 Link Here
174
    <td>solaris</td><td>gtk</td><td>sparc</td></tr>
173
    <td>solaris</td><td>gtk</td><td>sparc</td></tr>
175
     <tr>
174
     <tr>
176
    <td>solaris</td><td>gtk</td><td>x86</td></tr>
175
    <td>solaris</td><td>gtk</td><td>x86</td></tr>
177
  <tr> 
176
  <tr>
178
    <td>solaris</td><td>motif</td><td>sparc</td></tr>
177
    <td>solaris</td><td>motif</td><td>sparc</td></tr>
179
  <tr> 
178
  <tr>
180
    <td>win32</td><td>win32</td><td>x86</td></tr>
179
    <td>win32</td><td>win32</td><td>x86</td></tr>
181
</table>
180
</table>
182
</body>
181
</body>
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/runtests (-86 / +2 lines)
Lines 1-87 Link Here
1
# !/bin/sh
1
#!/bin/sh
2
3
#set the DISPLAY for running tests on Linux
4
DISPLAY=:0.0;export DISPLAY
5
6
# by default, use the java executable on the path for outer and test jvm
7
vmcmd=java
8
9
#this value must be set when using rsh to execute this script, otherwise the script will execute from the user's home directory
10
dir=.
11
12
# operating system, windowing system and architecture variables
13
os=
14
ws=
15
arch=
16
17
# list of tests (targets) to execute in test.xml
18
tests=
19
20
# default value to determine if eclipse should be reinstalled between running of tests
21
installmode="clean"
22
23
# name of a property file to pass to Ant
24
properties=
25
26
# message printed to console
27
usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-noclean] [<test target>][-properties <path>]"
28
29
30
# proces command line arguments
31
while [ $# -gt 0 ]
32
do
33
	case "$1" in
34
		-dir) dir="$2"; shift;;
35
		-os) os="$2"; shift;;
36
		-ws) ws="$2"; shift;;
37
		-arch) arch="$2"; shift;;
38
		-noclean) installmode="noclean";;
39
		-properties) properties="-propertyfile $2";shift;;
40
		-vm) vmcmd="$2"; shift;;
41
		*) tests=$tests\ $1;;
42
	esac
43
	shift
44
done
45
46
# for *nix systems, os, ws and arch values must be specified
47
if [ "x$os" = "x" ]
48
then
49
	echo >&2 "$usage"
50
	exit 1
51
fi
52
53
if [ "x$ws" = "x" ]
54
then
55
	echo >&2 "$usage"
56
	exit 1
57
fi
58
59
if [ "x$arch" = "x" ]
60
then
61
	echo >&2 "$usage"
62
	exit 1
63
fi
64
65
#necessary when invoking this script through rsh
66
cd $dir
67
68
# verify os, ws and arch values passed in are valid before running tests
69
if [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "macosx-cocoa-ppc" ] || [ "$os-$ws-$arch" = "macosx-cocoa-x86" ] || [ "$os-$ws-$arch" = "macosx-cocoa-x86_64" ] || [ "$os-$ws-$arch" = "aix-gtk-ppc" ] || [ "$os-$ws-$arch" = "aix-gtk-ppc64" ]  || [ "$os-$ws-$arch" = "solaris-gtk-sparc" ] || [ "$os-$ws-$arch" = "solaris-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc64" ] ||  [ "$os-$ws-$arch" = "linux-gtk-ia64" ] ||  [ "$os-$ws-$arch" = "linux-gtk-x86_64" ] ||  [ "$os-$ws-$arch" = "hpux-gtk-ia64_32"]
70
then
71
	if [ ! -r eclipse ]
72
	then
73
		tar -xzf eclipse-SDK-*.tar.gz
74
		unzip -qq -o -C eclipse-junit-tests-*.zip */plugins/org.eclipse.test* -d eclipse/dropins/
75
fi
76
77
# run tests
78
launcher=`ls eclipse/plugins/org.eclipse.equinox.launcher_*.jar`
79
$vmcmd -Dosgi.os=$os -Dosgi.ws=$ws -Dosgi.arch=$arch -jar $launcher -data workspace -application org.eclipse.ant.core.antRunner -file `pwd`/test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger
80
81
# display message to user if os, ws and arch are invalid
82
else
83
	echo "The os, ws and arch values are either invalid or are an invalid combination"
84
85
exit 1
86
fi
87
2
3
exec ./runtests.sh "$@"
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/runtests.bat (-5 / +31 lines)
Lines 1-8 Link Here
1
@echo off
1
@echo off
2
SETLOCAL
2
3
3
REM default java executable for outer and test vm
4
REM default java executable for outer and test vm
4
set vmcmd=java
5
set vmcmd=java
5
set no_proxy=localhost,dev.eclipse.org,hudson.eclipse.org
6
6
7
REM reset list of ant targets in test.xml to execute
7
REM reset list of ant targets in test.xml to execute
8
set tests=
8
set tests=
Lines 21-26 set arch=x86 Link Here
21
REM reset ant command line args
21
REM reset ant command line args
22
set ANT_CMD_LINE_ARGS=
22
set ANT_CMD_LINE_ARGS=
23
23
24
IF EXIST localTestsProperties.bat CALL localTestsProperties.bat
25
26
24
REM ****************************************************************
27
REM ****************************************************************
25
REM
28
REM
26
REM Install Eclipse if it does not exist
29
REM Install Eclipse if it does not exist
Lines 39-52 REM **************************************************************** Link Here
39
42
40
if x%1==x goto run
43
if x%1==x goto run
41
if x%1==x-ws set ws=%2 && shift && shift && goto processcmdlineargs
44
if x%1==x-ws set ws=%2 && shift && shift && goto processcmdlineargs
42
if x%1==x-os set os =%2 && shift && shift && goto processcmdlineargs
45
if x%1==x-os set os=%2 && shift && shift && goto processcmdlineargs
43
if x%1==x-arch set arch=%2 && shift && shift && goto processcmdlineargs
46
if x%1==x-arch set arch=%2 && shift && shift && goto processcmdlineargs
44
if x%1==x-noclean set installmode=noclean&& shift && goto processcmdlineargs
47
if x%1==x-noclean set installmode=noclean&& shift && goto processcmdlineargs
45
if x%1==x-properties set properties=-propertyfile %2 && shift && shift && goto processcmdlineargs
48
if x%1==x-properties set properties=-propertyfile %2 && shift && shift && goto processcmdlineargs
46
if x%1==x-vm set vmcmd="%2" && shift && shift && goto processcmdlineargs
49
if x%1==x-vm set vmcmd="%2" && shift && shift && goto processcmdlineargs
50
if x%1==x-extdirprop SET extdirproperty="-Djava.ext.dirs=%2" && shift && shift && goto processcmdlineargs
51
52
47
53
48
set tests=%tests% %1 && shift && goto processcmdlineargs
54
set tests=%tests% %1 && shift && goto processcmdlineargs
49
55
56
echo Specified test targets (if any): %tests%
57
echo Specified extdirs (if any): %extdirprop%
50
58
51
:run
59
:run
52
REM ***************************************************************************
60
REM ***************************************************************************
Lines 56-63 REM get name of org.eclipse.equinox.launcher_*.jar with version label Link Here
56
dir /b eclipse\plugins\org.eclipse.equinox.launcher_*.jar>launcher-jar-name.txt
64
dir /b eclipse\plugins\org.eclipse.equinox.launcher_*.jar>launcher-jar-name.txt
57
set /p launcher-jar=<launcher-jar-name.txt
65
set /p launcher-jar=<launcher-jar-name.txt
58
66
59
%vmcmd% -Dosgi.os=%os% -Dosgi.ws=%ws% -Dosgi.arch=%arch% -jar eclipse\plugins\%launcher-jar% -data workspace -application org.eclipse.ant.core.antRunner -file test.xml %tests% -Dws=%ws% -Dos=%os% -Darch=%arch% -D%installmode%=true %properties% -logger org.apache.tools.ant.DefaultLogger
60
67
61
goto end
68
echo "list all environment variables in effect as tests start"
69
set
70
71
rem -Dtimeout=300000 "%ANT_OPTS%"
72
73
IF NOT EXIST %vmcmd% (
74
ECHO ERROR: vmcmd not defined or does not exist: %vmcmd%
75
exit 1
76
)
77
78
REM -XshowSettings is supported on windows VMs but ... not every where. So where not supported
79
REM causes VM to not start at all. Can be handy for diagnostics. (without running ant <echoproperties/>
80
81
IF DEFINED extdirproperty (
82
%vmcmd%  %extdirproperty%  -Dosgi.os=%os% -Dosgi.ws=%ws% -Dosgi.arch=%arch% -jar eclipse\plugins\%launcher-jar% -data workspace -application org.eclipse.ant.core.antRunner -file test.xml %tests% -Dws=%ws% -Dos=%os% -Darch=%arch%  -D%installmode%=true %properties% -logger org.apache.tools.ant.DefaultLogger
83
GOTO END
84
)
85
86
%vmcmd%  -Dosgi.os=%os% -Dosgi.ws=%ws% -Dosgi.arch=%arch% -jar eclipse\plugins\%launcher-jar% -data workspace -application org.eclipse.ant.core.antRunner -file test.xml %tests% -Dws=%ws% -Dos=%os% -Darch=%arch%  -D%installmode%=true %properties% -logger org.apache.tools.ant.DefaultLogger
87
88
:END
62
89
63
:end
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/runtests.sh (-39 / +97 lines)
Lines 1-15 Link Here
1
#!/bin/sh
1
#!/usr/bin/env bash
2
3
# This file should never exist or be needed for production machine,
4
# but allows an easy way for a "local user" to provide this file
5
# somewhere on the search path ($HOME/bin is common),
6
# and it will be included here, thus can provide "override values"
7
# to those defined by defaults for production machine.,
8
# such as for vmcmd
9
10
source localTestsProperties.shsource
2
11
3
#set the DISPLAY for running tests on Linux
4
#DISPLAY=`$HOST`:0.0;export DISPLAY
5
export no_proxy=localhost,dev.eclipse.org,hudson.eclipse.org
6
12
7
# by default, use the java executable on the path for outer and test jvm
13
# by default, use the java executable on the path for outer and test jvm
8
#vmcmd=/shared/common/jdk-1.6.x86_64/jre/bin/java
14
#vmcmd=${vmcmd:-/shared/common/jdk-1.6.x86_64/jre/bin/java}
9
vmcmd=java
15
vmcmd=java
10
16
17
echo "vmcmd: $vmcmd"
18
11
#this value must be set when using rsh to execute this script, otherwise the script will execute from the user's home directory
19
#this value must be set when using rsh to execute this script, otherwise the script will execute from the user's home directory
12
dir=.
20
dir=${PWD}
13
21
14
# operating system, windowing system and architecture variables
22
# operating system, windowing system and architecture variables
15
os=
23
os=
Lines 25-30 installmode="clean" Link Here
25
# name of a property file to pass to Ant
33
# name of a property file to pass to Ant
26
properties=
34
properties=
27
35
36
# ext dir customization. Be sure "blank", if not defined explicitly on command line
37
extdirproperty=
38
28
# message printed to console
39
# message printed to console
29
usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-noclean] [<test target>][-properties <path>]"
40
usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-noclean] [<test target>][-properties <path>]"
30
41
Lines 32-89 usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-n Link Here
32
# proces command line arguments
43
# proces command line arguments
33
while [ $# -gt 0 ]
44
while [ $# -gt 0 ]
34
do
45
do
35
	case "$1" in
46
    case "${1}" in
36
		-dir) dir="$2"; shift;;
47
        -dir)
37
		-os) os="$2"; shift;;
48
            dir="${2}"; shift;;
38
		-ws) ws="$2"; shift;;
49
        -os)
39
		-arch) arch="$2"; shift;;
50
            os="${2}"; shift;;
40
		-noclean) installmode="noclean";;
51
        -ws)
41
		-properties) properties="-propertyfile $2";shift;;
52
            ws="${2}"; shift;;
42
		-vm) vmcmd="$2"; shift;;
53
        -arch)
43
		*) tests=$tests\ $1;;
54
            arch="${2}"; shift;;
44
	esac
55
        -noclean)
45
	shift
56
            installmode="noclean";;
57
        -properties)
58
            properties="-propertyfile ${2}";shift;;
59
        -extdirprop)
60
            extdirproperty="-Djava.ext.dirs=${2}";shift;;
61
        -vm)
62
            vmcmd="${2}"; shift;;
63
        *)
64
            tests=$tests\ ${1};;
65
    esac
66
    shift
46
done
67
done
47
68
69
echo "Specified test targets (if any): ${tests}"
70
71
echo "Specified ext dir (if any): ${extdirproperty}"
72
48
# for *nix systems, os, ws and arch values must be specified
73
# for *nix systems, os, ws and arch values must be specified
49
if [ "x$os" = "x" ]
74
if [ "x$os" = "x" ]
50
then
75
then
51
	echo >&2 "$usage"
76
    echo >&2 "$usage"
52
	exit 1
77
    exit 1
53
fi
78
fi
54
79
55
if [ "x$ws" = "x" ]
80
if [ "x$ws" = "x" ]
56
then
81
then
57
	echo >&2 "$usage"
82
    echo >&2 "$usage"
58
	exit 1
83
    exit 1
59
fi
84
fi
60
85
61
if [ "x$arch" = "x" ]
86
if [ "x$arch" = "x" ]
62
then
87
then
63
	echo >&2 "$usage"
88
    echo >&2 "$usage"
64
	exit 1
89
    exit 1
65
fi
90
fi
66
91
67
#necessary when invoking this script through rsh
92
#necessary when invoking this script through rsh
68
cd $dir
93
cd $dir
69
94
70
# verify os, ws and arch values passed in are valid before running tests
95
    if [ ! -r eclipse ]
71
if [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "macosx-cocoa-ppc" ] || [ "$os-$ws-$arch" = "macosx-cocoa-x86" ] || [ "$os-$ws-$arch" = "aix-gtk-ppc" ] || [ "$os-$ws-$arch" = "aix-gtk-ppc64" ]  || [ "$os-$ws-$arch" = "solaris-gtk-sparc" ] || [ "$os-$ws-$arch" = "solaris-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc64" ] ||  [ "$os-$ws-$arch" = "linux-gtk-ia64" ] ||  [ "$os-$ws-$arch" = "linux-gtk-x86_64" ] ||  [ "$os-$ws-$arch" = "hpux-gtk-ia64_32"]
96
    then
72
then
97
        tar -xzf eclipse-SDK-*.tar.gz
73
	if [ ! -r eclipse ]
98
        # note, the file pattern to match, must not start with */plugins because there is no leading '/' in the zip file, since they are repos.
74
	then
99
        unzip -qq -o -C eclipse-junit-tests-*.zip plugins/org.eclipse.test* -d eclipse/dropins/
75
		tar -xzf eclipse-SDK-*.tar.gz
100
    fi
76
		unzip -qq -o -C eclipse-junit-tests-*.zip */plugins/org.eclipse.test* -d eclipse/dropins/
77
fi
78
101
79
# run tests
102
    # run tests
80
launcher=`ls eclipse/plugins/org.eclipse.equinox.launcher_*.jar`
103
    launcher=`ls eclipse/plugins/org.eclipse.equinox.launcher_*.jar`
81
$vmcmd -Dosgi.os=$os -Dosgi.ws=$ws -Dosgi.arch=$arch -jar $launcher -data workspace -application org.eclipse.ant.core.antRunner -file `pwd`/test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger
82
104
83
# display message to user if os, ws and arch are invalid
84
else
85
	echo "The os, ws and arch values are either invalid or are an invalid combination"
86
105
87
exit 1
106
    # make sure there is a window manager running. See bug 379026
88
fi
107
    # we should not have to, but may be a quirk/bug of hudson setup
108
    # assuming metacity attaches to "current" display by default (which should have
109
    # already been set by Hudson). We echo its value here just for extra reference/cross-checks.
110
111
    echo "Check if any window managers are running (xfwm|twm|metacity|beryl|fluxbox|compiz):"
112
    wmpss=$(ps -ef | egrep -i "xfwm|twm|metacity|beryl|fluxbox|compiz" | grep -v egrep)
113
    echo "Window Manager processes: $wmpss"
114
    echo
115
116
    if [[ -z $wmpss ]]
117
    then
118
             echo "No window managers processes found running, so will start metacity"
119
             metacity --replace --sm-disable  &
120
             METACITYPID=$!
121
             echo $METACITYPID > epmetacity.pid
122
     else
123
             echo "Existing window manager found running, so did not force start of metacity"
124
    fi
125
126
    echo
127
128
    # list out metacity processes so overtime we can see if they accumulate, or if killed automatically
129
    # when our process exits. If not automatic, should use epmetacity.pid to kill it when we are done.
130
    echo "Current metacity processes running (check for accumulation):"
131
    ps -ef | grep "metacity" | grep -v grep
132
    echo
133
134
    echo "Triple check if any window managers are running (at least metacity should be!):"
135
    wmpss=$(ps -ef | egrep -i "xfwm|twm|metacity|beryl|fluxbox|compiz" | grep -v egrep)
136
    echo "Window Manager processes: $wmpss"
137
    echo
138
    echo "extdirprop in runtest: ${extdirprop}"
139
    echo "extdirproperty in runtest: ${extdirproperty}"
89
140
141
    # -Dtimeout=300000 "${ANT_OPTS}"
142
 if [[ ! -z "${extdirproperty}" ]]
143
 then
144
	$vmcmd "${extdirproperty}" -Dosgi.os=$os -Dosgi.ws=$ws -Dosgi.arch=$arch -jar $launcher -data workspace -application org.eclipse.ant.core.antRunner -file ${PWD}/test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger
145
 else
146
	$vmcmd -Dosgi.os=$os -Dosgi.ws=$ws -Dosgi.arch=$arch  -jar $launcher -data workspace -application org.eclipse.ant.core.antRunner -file ${PWD}/test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger
147
 fi
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/runtestsmac.sh (+123 lines)
Added Link Here
1
#!/usr/bin/env bash
2
3
# This file should never exist or be needed for production machine,
4
# but allows an easy way for a "local user" to provide this file
5
# somewhere on the search path ($HOME/bin is common),
6
# and it will be included here, thus can provide "override values"
7
# to those defined by defaults for production machine.,
8
# such as for vmcmd
9
10
source localTestsProperties.shsource
11
12
# by default, use the java executable on the path for outer and test jvm
13
#vmcmd=/shared/common/jdk-1.6.x86_64/jre/bin/java
14
if [[ -z "{vmcmd}" ]]
15
then
16
    vmcmd=java
17
fi
18
19
echo "vmcmd: $vmcmd"
20
21
#this value must be set when using rsh to execute this script, otherwise the script will execute from the user's home directory
22
dir=.
23
24
# operating system, windowing system and architecture variables
25
os=
26
ws=
27
arch=
28
29
# list of tests (targets) to execute in test.xml
30
tests=
31
32
# default value to determine if eclipse should be reinstalled between running of tests
33
installmode="clean"
34
35
# name of a property file to pass to Ant
36
properties=
37
38
# ext dir customization. Be sure "blank", if not defined explicitly on command line
39
extdirproperty=
40
41
# message printed to console
42
usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-noclean] [<test target>][-properties <path>]"
43
44
45
# proces command line arguments
46
while [ $# -gt 0 ]
47
do
48
    case "${1}" in
49
        -dir)
50
            dir="${2}"; shift;;
51
        -os)
52
            os="${2}"; shift;;
53
        -ws)
54
            ws="${2}"; shift;;
55
        -arch)
56
            arch="${2}"; shift;;
57
        -noclean)
58
            installmode="noclean";;
59
        -properties)
60
            properties="-propertyfile ${2}";shift;;
61
        -extdirprop)
62
            extdirproperty="-Djava.ext.dirs=${2}";shift;;
63
        -vm)
64
            vmcmd="${2}"; shift;;
65
        *)
66
            tests=$tests\ ${1};;
67
	esac
68
	shift
69
done
70
71
echo "Specified test targets (if any): ${tests}"
72
73
echo "Specified ext dir (if any): ${extdirproperty}"
74
75
# for *nix systems, os, ws and arch values must be specified
76
if [ "x$os" = "x" ]
77
then
78
	echo >&2 "$usage"
79
	exit 1
80
fi
81
82
if [ "x$ws" = "x" ]
83
then
84
	echo >&2 "$usage"
85
	exit 1
86
fi
87
88
if [ "x$arch" = "x" ]
89
then
90
	echo >&2 "$usage"
91
	exit 1
92
fi
93
94
#necessary when invoking this script through rsh
95
cd $dir
96
97
if [[ ! -r eclipse ]]
98
then
99
	tar -xzf eclipse-SDK-*.tar.gz
100
    # note, the file pattern to match, must not start with */plugins because there is no leading '/' in the zip file, since they are repos.
101
	unzip -qq -o -C eclipse-junit-tests-*.zip plugins/org.eclipse.test* -d eclipse/dropins/
102
fi
103
104
105
# run tests
106
launcher=`ls eclipse/plugins/org.eclipse.equinox.launcher_*.jar`
107
108
# it have been recommended not to "probe and publish" information about systems
109
# for slight improvement in security. Bug 387747
110
# so I have commented out most such probes, so they won't be routine.
111
112
    #echo "list all environment variables in effect as tests start"
113
    #printenv
114
115
# -Dtimeout=300000 "${ANT_OPTS}"
116
 if [[ ! -z "${extdirproperty}" ]]
117
 then
118
	$vmcmd "${extdirproperty}" -Dosgi.os=$os -Dosgi.ws=$ws -Dosgi.arch=$arch  -jar $launcher -data workspace -application org.eclipse.ant.core.antRunner -file ${PWD}/test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger
119
 else
120
	$vmcmd -Dosgi.os=$os -Dosgi.ws=$ws -Dosgi.arch=$arch  -jar $launcher -data workspace -application org.eclipse.ant.core.antRunner -file ${PWD}/test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger
121
 fi
122
123
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/test.xml (-703 / +1316 lines)
Lines 1-404 Link Here
1
<project name="Automated Eclipse Testing" default="all" basedir="." >
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project
3
    name="Automated Eclipse Testing"
4
    default="all"
5
    basedir=".">
2
6
3
	<!--properties file containing the plugin directory name including version number,
7
	<!--properties file containing the plugin directory name including version number,
4
		 and list of required test plug-ins expressed as command-line argument to unzip executable.
8
		 and list of required test plug-ins expressed as command-line argument to unzip executable.
5
		 Generated and packaged at build time.-->
9
		 Generated and packaged at build time.-->
6
	<property file="test.properties" />
10
    <property file="test.properties" />
7
11
8
	<!--properties file containing the build information-->
12
	<!--properties file containing the build information-->
9
	<property file="label.properties" />
13
    <property file="label.properties" />
10
14
11
	<!--default directory where test-eclipse will be installed-->
15
	<!--default directory where test-eclipse will be installed-->
12
	<property name="install" value="${basedir}/test-eclipse" />
16
    <property
17
        name="install"
18
        value="${basedir}/test-eclipse" />
13
19
14
	<!--suffix added to test output files to identify platform on which tests ran.-->
20
	<!--suffix added to test output files to identify platform on which tests ran.-->
15
	<property name="platform" value="${os}.${ws}.${arch}" />
21
    <property
22
        name="platform"
23
        value="${os}.${ws}.${arch}" />
16
24
17
	<!-- The root of the eclipse installation -->
25
	<!-- The root of the eclipse installation -->
18
	<property name="eclipse-home" value="${install}/eclipse" />
26
    <property
27
        name="eclipse-home"
28
        value="${install}/eclipse" />
19
29
20
	<property name="repoZip" value="${basedir}/eclipse-junit-tests-${buildId}.zip" />
30
    <property
21
	<property name="repoLocation" value="${basedir}/testRepo" />
31
        name="repoZip"
22
	<property name="platformLocation" value="${basedir}/platformLocation" />
32
        value="${basedir}/eclipse-junit-tests-${buildId}.zip" />
33
    <property
34
        name="repoLocation"
35
        value="${basedir}/testRepo" />
36
    <property
37
        name="platformLocation"
38
        value="${basedir}/platformLocation" />
23
39
24
	<!-- The directory that will contain all files containing information on the tests that ran.-->
40
	<!-- The directory that will contain all files containing information on the tests that ran.-->
25
	<property name="results" value="${basedir}/results" />
41
    <property
42
        name="results"
43
        value="${basedir}/results" />
26
44
27
	<!--Directory for JUnit report output, console log output and .log content for each test suite.  
45
	<!--Directory for JUnit report output, console log output and .log content for each test suite.  
28
			Overrides default in org.eclipse.test/library.xml-->
46
			Overrides default in org.eclipse.test/library.xml-->
29
	<property name="junit-report-output" value="${results}/${platform}" />
47
    <property
30
	<property name="coverage-output" value="${results}/coverage" />
48
        name="junit-report-output"
49
        value="${results}/${platform}" />
50
	
51
	<!-- this dirctory, with some sort files are created during unit tests 
52
	... need to find where to disable jacoco -->
53
    <property
54
        name="coverage-output"
55
        value="${results}/coverageIGNORE" />
31
56
57
    <echo message="DEBUG: org.eclipse.core.net.prefs: ${org.eclipse.core.net.prefs}" /> 
58
    
32
	<!--Directory name of org.eclipse.test plug-in installed in ${eclipse-home}-->
59
	<!--Directory name of org.eclipse.test plug-in installed in ${eclipse-home}-->
33
	<target name="setup" unless="noclean" depends="init">
60
    <target
34
		<condition property="setupTarget" value="setup-zip">
61
        name="setup"
35
			<contains string="${runtimeArchive}" substring=".zip" />
62
        unless="noclean"
36
		</condition>
63
        depends="init">
37
		<condition property="setupTarget" value="setup-tar.gz">
64
        <condition
38
			<contains string="${runtimeArchive}" substring=".tar.gz" />
65
            property="setupTarget"
39
		</condition>
66
            value="setup-zip">
40
		<condition property="repoexists" value="true">
67
            <contains
41
			<available file="${repoLocation}" />
68
                string="${runtimeArchive}"
42
		</condition>
69
                substring=".zip" />
43
		<condition property="extraIU" value="org.eclipse.equinox.p2.discovery.feature.feature.group">
70
        </condition>
44
			<equals arg1="${testPlugin}" arg2="org.eclipse.equinox.p2.tests.discovery" />
71
        <condition
45
		</condition>
72
            property="setupTarget"
46
		<antcall target="setupRepo" />
73
            value="setup-tar.gz">
47
		<antcall target="${setupTarget}" />
74
            <contains
48
		<antcall target="configureDeltaPack" />
75
                string="${runtimeArchive}"
49
	</target>
76
                substring=".tar.gz" />
77
        </condition>
78
        <condition
79
            property="repoexists"
80
            value="true">
81
            <available file="${repoLocation}" />
82
        </condition>
83
        <condition
84
            property="extraIU"
85
            value="org.eclipse.equinox.p2.discovery.feature.feature.group">
86
            <equals
87
                arg1="${testPlugin}"
88
                arg2="org.eclipse.equinox.p2.tests.discovery" />
89
        </condition>
90
        <antcall target="setupRepo" />
91
        <antcall target="${setupTarget}" />
92
        <antcall target="configureDeltaPack" />
93
        <antcall target="installPreferences" />
94
    </target>
95
96
    <target name="installPreferences">
97
        <property
98
            name="preferenceDirectory"
99
            value="${install}/eclipse/configuration/.settings/" />
100
        <mkdir dir="${preferenceDirectory}" />
101
102
        <antcall target="installNetworkPreferences" />
103
104
    </target>
105
106
107
    <target
108
        name="installNetworkPreferences"
109
        if="org.eclipse.core.net.prefs">
110
111
        <copy
112
            file="${org.eclipse.core.net.prefs}"
113
            todir="${preferenceDirectory}"
114
            failonerror="false"
115
            verbose="true" />
116
        <echo message="copied ${org.eclipse.core.net.prefs} to ${preferenceDirectory}" />
117
    </target>
50
118
51
	<!--Extract test bundles repo -->
119
	<!--Extract test bundles repo -->
52
	<target name="setupRepo" unless="repoexists">
120
    <target
53
		<mkdir dir="${repoLocation}" />
121
        name="setupRepo"
54
		<exec dir="." executable="unzip">
122
        unless="repoexists">
55
			<arg line="-o ${repoZip} -d ${repoLocation}" />
123
        <mkdir dir="${repoLocation}" />
56
		</exec>
124
        <exec
57
	</target>
125
            dir="."
126
            executable="unzip">
127
            <arg line="-o ${repoZip} -d ${repoLocation}" />
128
        </exec>
129
    </target>
58
130
59
	<!--setup for zip archives-->
131
	<!--setup for zip archives-->
60
	<target name="setup-zip" description="Reinstall the test Eclipse installation if specified by user">
132
    <target
61
		<delete dir="${install}" />
133
        name="setup-zip"
62
		<mkdir dir="${install}" />
134
        description="Reinstall the test Eclipse installation if specified by user">
63
		<exec dir="." executable="unzip">
135
        <delete dir="${install}" />
64
			<arg line="-o -qq ${runtimeArchive} -d ${install}" />
136
        <mkdir dir="${install}" />
65
		</exec>
137
        <exec
66
		<antcall target="installExtraPlugins" />
138
            dir="."
67
		<antcall target="installTestPlugins" />
139
            executable="unzip">
68
	</target>
140
            <arg line="-o -qq ${runtimeArchive} -d ${install}" />
141
        </exec>
142
        <antcall target="installExtraPlugins" />
143
        <antcall target="installTestPlugins" />
144
    </target>
69
145
70
	<!--setup for tar.gz archives-->
146
	<!--setup for tar.gz archives-->
71
	<target name="setup-tar.gz" description="Reinstall the test Eclipse installation if specified by user">
147
    <target
72
		<property name="currentDir" value="${basedir}" />
148
        name="setup-tar.gz"
73
		<delete dir="${install}" />
149
        description="Reinstall the test Eclipse installation if specified by user">
74
		<mkdir dir="${install}" />
150
        <property
75
		<exec dir="${install}" executable="tar">
151
            name="currentDir"
76
			<arg line="-xzf ${currentDir}/${runtimeArchive}" />
152
            value="${basedir}" />
77
		</exec>
153
        <delete dir="${install}" />
78
		<antcall target="installExtraPlugins" />
154
        <mkdir dir="${install}" />
79
		<antcall target="installTestPlugins" />
155
        <exec
80
	</target>
156
            dir="${install}"
157
            executable="tar">
158
            <arg line="-xzf ${currentDir}/${runtimeArchive}" />
159
        </exec>
160
        <antcall target="installExtraPlugins" />
161
        <antcall target="installTestPlugins" />
162
    </target>
81
163
82
	<!--use an stable version of the director so that instability in the current build doesn't cause all the tests to fail -->
164
	<!--use an stable version of the director so that instability in the current build doesn't cause all the tests to fail -->
83
	<target name="setupPlatform">
165
    <target name="setupPlatform">
84
		<echo message="os.arch ${os.arch}" />
166
        <echo message="os.arch ${os.arch}" />
85
		<property file="equinoxp2tests.properties" />
167
        <property file="equinoxp2tests.properties" />
86
		<condition property="platformArchive" value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.linux}">
168
        <condition
87
			<and>
169
            property="platformArchive"
88
				<os family="unix" />
170
            value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.linux}">
89
				<not>
171
            <and>
90
					<or>
172
                <os family="unix" />
91
						<or>
173
                <not>
92
							<os arch="x86_64" />
174
                    <or>
93
							<os arch="amd64" />
175
                        <or>
94
						</or>
176
                            <os arch="x86_64" />
95
						<os family="mac" />
177
                            <os arch="amd64" />
96
					</or>
178
                        </or>
97
				</not>
179
                        <os family="mac" />
98
			</and>
180
                    </or>
99
		</condition>
181
                </not>
100
		<condition property="platformArchive" value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.macosx-x86_64}">
182
            </and>
101
			<and>
183
        </condition>
102
				<os family="mac" />
184
        <condition
103
				<os family="unix" />
185
            property="platformArchive"
104
				<or>
186
            value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.macosx-x86_64}">
105
				<os arch="x86_64" />
187
            <and>
106
				<os arch="amd64" />
188
                <os family="mac" />
107
				</or>
189
                <os family="unix" />
108
			</and>
190
                <or>
109
		</condition>
191
                    <os arch="x86_64" />
110
		<condition property="platformArchive" value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.win32}">
192
                    <os arch="amd64" />
111
			<and>
193
                </or>
112
				<os family="windows" />
194
            </and>
113
				<os arch="x86" />
195
        </condition>
114
			</and>
196
        <condition
115
		</condition>
197
            property="platformArchive"
116
		<condition property="platformArchive" value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.win32-x86_64}">
198
            value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.macosx}">
117
			<and>
199
            <and>
118
				<os family="windows" />
200
                <os family="mac" />
119
				<or>
201
                <os family="unix" />
120
				<os arch="x86_64" />
202
                <!-- should not need, as long as x86_64 rules (above) comes first
121
				<os arch="amd64" />
203
                <os arch="i386" />
122
				</or>
204
                -->
123
			</and>
205
            </and>
124
		</condition>
206
        </condition>
125
		<condition property="platformArchive" value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.linux-x86_64}">
207
        <condition
126
			<and>
208
            property="platformArchive"
127
				<os family="unix" />
209
            value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.win32}">
128
				<or>
210
            <and>
129
					<os arch="x86_64" />
211
                <os family="windows" />
130
					<os arch="amd64" />
212
                <os arch="x86" />
131
				</or>
213
            </and>
132
			</and>
214
        </condition>
133
		</condition>
215
        <condition
134
		<condition property="platformTarget" value="platform-zip">
216
            property="platformArchive"
135
			<contains string="${platformArchive}" substring=".zip" />
217
            value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.win32-x86_64}">
136
		</condition>
218
            <and>
137
		<condition property="platformTarget" value="platform-tar.gz">
219
                <os family="windows" />
138
			<contains string="${platformArchive}" substring=".tar.gz" />
220
                <or>
139
		</condition>
221
                    <os arch="x86_64" />
140
		<echo message="platformTarget ${platformTarget} platformArchive ${platformArchive}" />
222
                    <os arch="amd64" />
141
		<antcall target="${platformTarget}" />
223
                </or>
142
	</target>
224
            </and>
225
        </condition>
226
        <condition
227
            property="platformArchive"
228
            value="${org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.linux-x86_64}">
229
            <and>
230
                <os family="unix" />
231
                <or>
232
                    <os arch="x86_64" />
233
                    <os arch="amd64" />
234
                </or>
235
            </and>
236
        </condition>
237
238
        <fail
239
            unless="platformArchive"
240
            message="platformArchive is not defined. Check that condidtions cover os arch ${os.arch}. May be VM dependent.)" />
241
242
        <condition
243
            property="platformTarget"
244
            value="platform-zip">
245
            <contains
246
                string="${platformArchive}"
247
                substring=".zip" />
248
        </condition>
249
        <condition
250
            property="platformTarget"
251
            value="platform-tar.gz">
252
            <contains
253
                string="${platformArchive}"
254
                substring=".tar.gz" />
255
        </condition>
256
        <fail
257
            unless="platformTarget"
258
            message="platformTarget is not defined. Check that platformArchive variable and value is defined correctly, such as in equinoxp2tests.properties in the appropriate testConfig" />
259
        <echo message="platformTarget ${platformTarget} platformArchive ${platformArchive}" />
260
        <antcall target="${platformTarget}" />
261
    </target>
143
262
144
263
145
	<!--setup for platform zip archives-->
264
	<!--setup for platform zip archives-->
146
	<target name="platform-zip" description="Reinstall the test Eclipse installation if specified by user">
265
    <target
147
		<delete dir="${platformLocation}" />
266
        name="platform-zip"
148
		<mkdir dir="${platformLocation}" />
267
        description="Reinstall the test Eclipse installation if specified by user">
149
		<exec dir="${platformLocation}" executable="unzip">
268
        <delete dir="${platformLocation}" />
150
			<arg line="-o -qq ${platformArchive} -d ${platformLocation}" />
269
        <mkdir dir="${platformLocation}" />
151
		</exec>
270
        <exec
152
	</target>
271
            dir="${platformLocation}"
272
            executable="unzip">
273
            <arg line="-o -qq ${platformArchive} -d ${platformLocation}" />
274
        </exec>
275
    </target>
153
276
154
	<!--setup for platform tar.gz archives-->
277
	<!--setup for platform tar.gz archives-->
155
	<target name="platform-tar.gz" description="Reinstall the test Eclipse installation if specified by user">
278
    <target
156
		<delete dir="${platformLocation}" />
279
        name="platform-tar.gz"
157
		<mkdir dir="${platformLocation}" />
280
        description="Reinstall the test Eclipse installation if specified by user">
158
		<exec dir="${platformLocation}" executable="tar">
281
        <delete dir="${platformLocation}" />
159
			<arg line="-xzf ${platformArchive}" />
282
        <mkdir dir="${platformLocation}" />
160
		</exec>
283
        <exec
161
	</target>
284
            dir="${platformLocation}"
285
            executable="tar">
286
            <arg line="-xzf ${platformArchive}" />
287
        </exec>
288
    </target>
162
289
163
	<target name="installExtraPlugins" if="extraIU">
290
    <target
164
		<property file="equinoxp2tests.properties" />
291
        name="installExtraPlugins"
165
		<path id="launcher.paths">
292
        if="extraIU">
166
			<fileset dir="${eclipse-home}" includes="plugins/org.eclipse.equinox.launcher_*" />
293
        <property file="equinoxp2tests.properties" />
167
		</path>
294
        <path id="launcher.paths">
168
		<property name="launcherPath" refid="launcher.paths" />
295
            <fileset
296
                dir="${eclipse-home}"
297
                includes="plugins/org.eclipse.equinox.launcher_*" />
298
        </path>
299
        <property
300
            name="launcherPath"
301
            refid="launcher.paths" />
169
302
170
		<property name="currentBuildRepo" value="${org.eclipse.equinox.p2.tests.current.build.repo}" />
303
        <property
171
		<echo>-installIU ${extraIU} +</echo>
304
            name="currentBuildRepo"
172
		<java jar="${launcherPath}" failonerror="false" dir="${eclipse-home}" timeout="900000" fork="true" output="${basedir}/director.log" resultproperty="directorcode">
305
            value="${org.eclipse.equinox.p2.tests.current.build.repo}" />
173
			<arg line="-vm ${java.home}/bin/java" />
306
        <echo>-installIU ${extraIU} +</echo>
174
			<arg line="-application org.eclipse.equinox.p2.director" />
307
        <java
175
			<arg line="-consoleLog" />
308
            jar="${launcherPath}"
176
			<arg line="-flavor tooling" />
309
            failonerror="false"
177
			<arg line="-installIUs ${extraIU}" />
310
            dir="${eclipse-home}"
178
			<arg line="-p2.os ${os}" />
311
            timeout="900000"
179
			<arg line="-p2.ws ${ws}" />
312
            fork="true"
180
			<arg line="-p2.arch ${arch}" />
313
            output="${basedir}/director.log"
181
			<arg line="-roaming" />
314
            resultproperty="directorcode">
182
			<arg line="-profile SDKProfile" />
315
            <arg line="-vm ${java.home}/bin/java" />
183
			<arg line="-repository ${currentBuildRepo}" />
316
            <arg line="-application org.eclipse.equinox.p2.director" />
184
			<arg line="-destination ${eclipse-home}" />
317
            <arg line="-consoleLog" />
185
			<arg line="-bundlepool ${eclipse-home}" />
318
            <arg line="-flavor tooling" />
186
		</java>
319
            <arg line="-installIUs ${extraIU}" />
187
	</target>
320
            <arg line="-p2.os ${os}" />
321
            <arg line="-p2.ws ${ws}" />
322
            <arg line="-p2.arch ${arch}" />
323
            <arg line="-roaming" />
324
            <arg line="-profile SDKProfile" />
325
            <arg line="-repository ${currentBuildRepo}" />
326
            <arg line="-destination ${eclipse-home}" />
327
            <arg line="-bundlepool ${eclipse-home}" />
328
        </java>
329
    </target>
188
330
189
	<target name="installTestPlugins">
331
    <target name="installTestPlugins">
190
		<path id="launcher.paths">
332
        <path id="launcher.paths">
191
			<fileset dir="${eclipse-home}" includes="plugins/org.eclipse.equinox.launcher_*" />
333
            <fileset
192
		</path>
334
                dir="${eclipse-home}"
193
		<property name="launcherPath" refid="launcher.paths" />
335
                includes="plugins/org.eclipse.equinox.launcher_*" />
194
		<antcall target="setupPlatform" />
336
        </path>
195
		<echo>-installIU ${testPlugin} +</echo>
337
        <property
196
		<java jar="${launcherPath}" failonerror="false" dir="${eclipse-home}" timeout="900000" fork="true" output="${basedir}/director.log" resultproperty="directorcode">
338
            name="launcherPath"
197
			<arg line="-vm ${java.home}/bin/java" />
339
            refid="launcher.paths" />
198
			<arg line="-application org.eclipse.equinox.p2.director" />
340
        <antcall target="setupPlatform" />
199
			<arg line="-consoleLog" />
341
        <echo>-installIU ${testPlugin} +</echo>
200
			<arg line="-flavor tooling" />
342
        <java
201
			<arg line="-installIUs ${testPlugin},org.eclipse.test,org.eclipse.ant.optional.junit,org.eclipse.test.performance,org.eclipse.test.performance.win32,org.easymock" />
343
            jar="${launcherPath}"
202
			<arg line="-p2.os ${os}" />
344
            failonerror="false"
203
			<arg line="-p2.ws ${ws}" />
345
            dir="${eclipse-home}"
204
			<arg line="-p2.arch ${arch}" />
346
            timeout="900000"
205
			<arg line="-roaming" />
347
            fork="true"
206
			<arg line="-profile SDKProfile" />
348
            output="${basedir}/director.log"
207
			<arg line="-repository file:${repoLocation}" />
349
            resultproperty="directorcode">
208
			<arg line="-destination ${eclipse-home}" />
350
            <arg line="-vm ${java.home}/bin/java" />
209
			<arg line="-bundlepool ${eclipse-home}" />
351
            <arg line="-application org.eclipse.equinox.p2.director" />
210
		</java>
352
            <arg line="-consoleLog" />
211
		<antcall target="configureTeamTest" />
353
            <arg line="-flavor tooling" />
212
		<antcall target="unzipderby" />
354
            <arg
213
	</target>
355
                line="-installIUs ${testPlugin},org.eclipse.test,org.eclipse.ant.optional.junit,org.eclipse.test.performance,org.eclipse.test.performance.win32,org.easymock" />
356
            <arg line="-p2.os ${os}" />
357
            <arg line="-p2.ws ${ws}" />
358
            <arg line="-p2.arch ${arch}" />
359
            <arg line="-roaming" />
360
            <arg line="-profile SDKProfile" />
361
            <arg line="-repository file:${repoLocation}" />
362
            <arg line="-destination ${eclipse-home}" />
363
            <arg line="-bundlepool ${eclipse-home}" />
364
        </java>
365
        <antcall target="configureTeamTest" />
366
        <antcall target="unzipderby" />
367
    </target>
214
368
215
369
216
	<target name="unzipderby" if="derby">
370
    <target
217
		<exec dir="." executable="unzip">
371
        name="unzipderby"
218
			<arg line="-o eclipse-junit-tests-*.zip ${derby} -d ${install}" />
372
        if="derby"
219
		</exec>
373
        unless="skipDerby">
220
		<copy todir="${install}/eclipse/dropins/eclipse/plugins">
374
        <exec
221
			<fileset dir="${repoLocation}/eclipse/dropins/eclipse/plugins" includes="org.apache.derby**/*" />
375
            dir="."
222
		</copy>
376
            executable="unzip">
223
	</target>
377
            <arg line="-o eclipse-junit-tests-*.zip ${derby} -d ${install}" />
378
        </exec>
379
        <copy todir="${install}/eclipse/dropins/eclipse/plugins">
380
            <fileset
381
                dir="${repoLocation}/eclipse/dropins/eclipse/plugins"
382
                includes="org.apache.derby**/*" />
383
        </copy>
384
    </target>
224
385
225
	<target name="init" depends="setRuntimeArchive">
386
    <target
226
		<mkdir dir="${results}/xml" />
387
        name="init"
227
		<mkdir dir="${results}/html" />
388
        depends="setRuntimeArchive">
228
		<mkdir dir="${junit-report-output}" />
389
        <mkdir dir="${results}/xml" />
390
        <mkdir dir="${results}/html" />
391
        <mkdir dir="${junit-report-output}" />
229
		<!--Unlock files on the Mac before starting tests.
392
		<!--Unlock files on the Mac before starting tests.
230
		  Required to delete some workspace directories (org.eclipse.core.filebuffers.tests and Team CVS tests).-->
393
		  Required to delete some workspace directories (org.eclipse.core.filebuffers.tests and Team CVS tests).-->
231
		<exec dir="${basedir}" executable="chflags" os="Mac OS X">
394
        <exec
232
			<arg line="-R nouchg ${install}" />
395
            dir="${basedir}"
233
		</exec>
396
            executable="chflags"
234
	</target>
397
            os="Mac OS X">
398
            <arg line="-R nouchg ${install}" />
399
        </exec>
400
    </target>
235
401
236
	<target name="setRuntimeArchive">
402
    <target name="setRuntimeArchive">
237
		<echo message="setRuntimeArchive os ${os} ws ${ws} arch ${arch}" />
403
        <echo message="setRuntimeArchive os ${os} ws ${ws} arch ${arch}" />
238
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-win32.zip">
404
        <condition
239
			<and>
405
            property="runtimeArchive"
240
				<equals arg1="${os}" arg2="win32" />
406
            value="eclipse-SDK-${buildId}-win32.zip">
241
				<equals arg1="${ws}" arg2="win32" />
407
            <and>
242
				<equals arg1="${arch}" arg2="x86" />
408
                <equals
243
			</and>
409
                    arg1="${os}"
244
		</condition>
410
                    arg2="win32" />
245
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-win32-x86_64.zip">
411
                <equals
246
			<and>
412
                    arg1="${ws}"
247
				<equals arg1="${os}" arg2="win32" />
413
                    arg2="win32" />
248
				<equals arg1="${ws}" arg2="win32" />
414
                <equals
249
				<equals arg1="${arch}" arg2="x86_64" />
415
                    arg1="${arch}"
250
			</and>
416
                    arg2="x86" />
251
		</condition>
417
            </and>
252
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-linux-gtk.tar.gz">
418
        </condition>
253
			<and>
419
        <condition
254
				<equals arg1="${os}" arg2="linux" />
420
            property="runtimeArchive"
255
				<equals arg1="${ws}" arg2="gtk" />
421
            value="eclipse-SDK-${buildId}-win32-x86_64.zip">
256
				<equals arg1="${arch}" arg2="x86" />
422
            <and>
257
			</and>
423
                <equals
258
		</condition>
424
                    arg1="${os}"
259
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-linux-gtk-ppc64.tar.gz">
425
                    arg2="win32" />
260
			<and>
426
                <equals
261
				<equals arg1="${os}" arg2="linux" />
427
                    arg1="${ws}"
262
				<equals arg1="${ws}" arg2="gtk" />
428
                    arg2="win32" />
263
				<equals arg1="${arch}" arg2="ppc64" />
429
                <equals
264
			</and>
430
                    arg1="${arch}"
265
		</condition>
431
                    arg2="x86_64" />
266
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-linux-gtk-x86_64.tar.gz">
432
            </and>
267
			<and>
433
        </condition>
268
				<equals arg1="${os}" arg2="linux" />
434
        <condition
269
				<equals arg1="${ws}" arg2="gtk" />
435
            property="runtimeArchive"
270
				<equals arg1="${arch}" arg2="x86_64" />
436
            value="eclipse-SDK-${buildId}-linux-gtk.tar.gz">
271
			</and>
437
            <and>
272
		</condition>
438
                <equals
273
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-macosx-cocoa-ppc.tar.gz">
439
                    arg1="${os}"
274
			<and>
440
                    arg2="linux" />
275
				<equals arg1="${os}" arg2="macosx" />
441
                <equals
276
				<equals arg1="${ws}" arg2="cocoa" />
442
                    arg1="${ws}"
277
				<equals arg1="${arch}" arg2="ppc" />
443
                    arg2="gtk" />
278
			</and>
444
                <equals
279
		</condition>
445
                    arg1="${arch}"
280
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-macosx-cocoa.tar.gz">
446
                    arg2="x86" />
281
			<and>
447
            </and>
282
				<equals arg1="${os}" arg2="macosx" />
448
        </condition>
283
				<equals arg1="${ws}" arg2="cocoa" />
449
        <condition
284
				<equals arg1="${arch}" arg2="x86" />
450
            property="runtimeArchive"
285
			</and>
451
            value="eclipse-SDK-${buildId}-linux-gtk-ppc64.tar.gz">
286
		</condition>
452
            <and>
287
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-macosx-cocoa-x86_64.tar.gz">
453
                <equals
288
			<and>
454
                    arg1="${os}"
289
				<equals arg1="${os}" arg2="macosx" />
455
                    arg2="linux" />
290
				<equals arg1="${ws}" arg2="cocoa" />
456
                <equals
291
				<equals arg1="${arch}" arg2="x86_64" />
457
                    arg1="${ws}"
292
			</and>
458
                    arg2="gtk" />
293
		</condition>
459
                <equals
294
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-hpux-gtk.zip">
460
                    arg1="${arch}"
295
			<and>
461
                    arg2="ppc64" />
296
				<equals arg1="${os}" arg2="hpux" />
462
            </and>
297
				<equals arg1="${ws}" arg2="gtk" />
463
        </condition>
298
				<equals arg1="${arch}" arg2="ia64_32" />
464
        <condition
299
			</and>
465
            property="runtimeArchive"
300
		</condition>
466
            value="eclipse-SDK-${buildId}-linux-gtk-x86_64.tar.gz">
301
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-solaris-gtk.zip">
467
            <and>
302
			<and>
468
                <equals
303
				<equals arg1="${os}" arg2="solaris" />
469
                    arg1="${os}"
304
				<equals arg1="${ws}" arg2="gtk" />
470
                    arg2="linux" />
305
				<equals arg1="${arch}" arg2="sparc" />
471
                <equals
306
			</and>
472
                    arg1="${ws}"
307
		</condition>
473
                    arg2="gtk" />
308
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-solaris-gtk-x86.zip">
474
                <equals
309
			<and>
475
                    arg1="${arch}"
310
				<equals arg1="${os}" arg2="solaris" />
476
                    arg2="x86_64" />
311
				<equals arg1="${ws}" arg2="gtk" />
477
            </and>
312
				<equals arg1="${arch}" arg2="x86" />
478
        </condition>
313
			</and>
479
        <condition
314
		</condition>
480
            property="runtimeArchive"
315
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-aix-gtk-ppc.zip">
481
            value="eclipse-SDK-${buildId}-macosx-cocoa-ppc.tar.gz">
316
			<and>
482
            <and>
317
				<equals arg1="${os}" arg2="aix" />
483
                <equals
318
				<equals arg1="${ws}" arg2="gtk" />
484
                    arg1="${os}"
319
				<equals arg1="${arch}" arg2="ppc" />
485
                    arg2="macosx" />
320
			</and>
486
                <equals
321
		</condition>
487
                    arg1="${ws}"
322
		<condition property="runtimeArchive" value="eclipse-SDK-${buildId}-aix-gtk-ppc64.zip">
488
                    arg2="cocoa" />
323
			<and>
489
                <equals
324
				<equals arg1="${os}" arg2="aix" />
490
                    arg1="${arch}"
325
				<equals arg1="${ws}" arg2="gtk" />
491
                    arg2="ppc" />
326
				<equals arg1="${arch}" arg2="ppc64" />
492
            </and>
327
			</and>
493
        </condition>
328
		</condition>
494
        <condition
329
		<echo message="runtimeArchive ${runtimeArchive} !!! " />
495
            property="runtimeArchive"
330
	</target>
496
            value="eclipse-SDK-${buildId}-macosx-cocoa.tar.gz">
497
            <and>
498
                <equals
499
                    arg1="${os}"
500
                    arg2="macosx" />
501
                <equals
502
                    arg1="${ws}"
503
                    arg2="cocoa" />
504
                <equals
505
                    arg1="${arch}"
506
                    arg2="x86" />
507
            </and>
508
        </condition>
509
        <condition
510
            property="runtimeArchive"
511
            value="eclipse-SDK-${buildId}-macosx-cocoa-x86_64.tar.gz">
512
            <and>
513
                <equals
514
                    arg1="${os}"
515
                    arg2="macosx" />
516
                <equals
517
                    arg1="${ws}"
518
                    arg2="cocoa" />
519
                <equals
520
                    arg1="${arch}"
521
                    arg2="x86_64" />
522
            </and>
523
        </condition>
524
        <condition
525
            property="runtimeArchive"
526
            value="eclipse-SDK-${buildId}-hpux-gtk.zip">
527
            <and>
528
                <equals
529
                    arg1="${os}"
530
                    arg2="hpux" />
531
                <equals
532
                    arg1="${ws}"
533
                    arg2="gtk" />
534
                <equals
535
                    arg1="${arch}"
536
                    arg2="ia64_32" />
537
            </and>
538
        </condition>
539
        <condition
540
            property="runtimeArchive"
541
            value="eclipse-SDK-${buildId}-solaris-gtk.zip">
542
            <and>
543
                <equals
544
                    arg1="${os}"
545
                    arg2="solaris" />
546
                <equals
547
                    arg1="${ws}"
548
                    arg2="gtk" />
549
                <equals
550
                    arg1="${arch}"
551
                    arg2="sparc" />
552
            </and>
553
        </condition>
554
        <condition
555
            property="runtimeArchive"
556
            value="eclipse-SDK-${buildId}-solaris-gtk-x86.zip">
557
            <and>
558
                <equals
559
                    arg1="${os}"
560
                    arg2="solaris" />
561
                <equals
562
                    arg1="${ws}"
563
                    arg2="gtk" />
564
                <equals
565
                    arg1="${arch}"
566
                    arg2="x86" />
567
            </and>
568
        </condition>
569
        <condition
570
            property="runtimeArchive"
571
            value="eclipse-SDK-${buildId}-aix-gtk-ppc.zip">
572
            <and>
573
                <equals
574
                    arg1="${os}"
575
                    arg2="aix" />
576
                <equals
577
                    arg1="${ws}"
578
                    arg2="gtk" />
579
                <equals
580
                    arg1="${arch}"
581
                    arg2="ppc" />
582
            </and>
583
        </condition>
584
        <condition
585
            property="runtimeArchive"
586
            value="eclipse-SDK-${buildId}-aix-gtk-ppc64.zip">
587
            <and>
588
                <equals
589
                    arg1="${os}"
590
                    arg2="aix" />
591
                <equals
592
                    arg1="${ws}"
593
                    arg2="gtk" />
594
                <equals
595
                    arg1="${arch}"
596
                    arg2="ppc64" />
597
            </and>
598
        </condition>
599
        <echo message="runtimeArchive ${runtimeArchive} !!! " />
600
    </target>
331
601
332
	<target name="setJVMProperties" depends="setJVMfromUserSpecified">
602
    <target
603
        name="setJVMProperties"
604
        depends="setJVMfromUserSpecified">
333
		<!--enable tests requiring 1.5 or 1.6 vms to run if running vm level detected matches required execution environment-->
605
		<!--enable tests requiring 1.5 or 1.6 vms to run if running vm level detected matches required execution environment-->
334
		<condition property="J2SE-5.0" value="${java.home}/bin/java">
606
        <condition
335
			<or>
607
            property="J2SE-5.0"
336
				<or>
608
            value="${java.home}/bin/java">
337
					<equals arg1="${ant.java.version}" arg2="1.5" />
609
            <or>
338
					<equals arg1="${ant.java.version}" arg2="1.6" />
610
                <or>
339
				</or>
611
                    <equals
340
				<equals arg1="${ant.java.version}" arg2="1.7" />
612
                        arg1="${ant.java.version}"
341
			</or>
613
                        arg2="1.5" />
342
		</condition>
614
                    <equals
343
		<condition property="J2SE-6.0" value="${java.home}/bin/java">
615
                        arg1="${ant.java.version}"
344
			<or>
616
                        arg2="1.6" />
345
				<equals arg1="${ant.java.version}" arg2="1.6" />
617
                </or>
346
				<equals arg1="${ant.java.version}" arg2="1.7" />
618
                <equals
347
			</or>
619
                    arg1="${ant.java.version}"
348
		</condition>
620
                    arg2="1.7" />
349
		<condition property="J2SE-7.0" value="${java.home}/bin/java">
621
            </or>
350
			<equals arg1="${ant.java.version}" arg2="1.7" />
622
        </condition>
351
		</condition>
623
        <condition
352
	</target>
624
            property="J2SE-6.0"
353
	<target name="setJVMfromUserSpecified" if="jvm">
625
            value="${java.home}/bin/java">
354
		<exec executable="${jvm}" outputproperty="javaversion">
626
            <or>
355
			<arg line="-version" />
627
                <equals
356
		</exec>
628
                    arg1="${ant.java.version}"
357
		<echo message="java version of ${jvm} is ${javaversion}" />
629
                    arg2="1.6" />
358
		<condition property="J2SE-7.0" value="${jvm}">
630
                <equals
359
			<contains string="${javaversion}" substring="java version &quot;1.7" />
631
                    arg1="${ant.java.version}"
360
		</condition>
632
                    arg2="1.7" />
361
		<condition property="J2SE-6.0" value="${jvm}">
633
            </or>
362
			<or>
634
        </condition>
363
				<contains string="${javaversion}" substring="java version &quot;1.6" />
635
        <condition
364
				<contains string="${javaversion}" substring="java version &quot;1.7" />
636
            property="J2SE-7.0"
365
			</or>
637
            value="${java.home}/bin/java">
366
		</condition>
638
            <equals
367
		<condition property="J2SE-5.0" value="${jvm}">
639
                arg1="${ant.java.version}"
368
			<or>
640
                arg2="1.7" />
369
				<or>
641
        </condition>
370
					<contains string="${javaversion}" substring="java version &quot;1.7" />
642
    </target>
371
					<contains string="${javaversion}" substring="java version &quot;1.6" />
643
    <target
372
				</or>
644
        name="setJVMfromUserSpecified"
373
				<contains string="${javaversion}" substring="java version &quot;1.5" />
645
        if="jvm">
374
			</or>
646
        <exec
375
		</condition>
647
            executable="${jvm}"
376
		<echo message="J2SE-7.0:  ${J2SE-7.0}" />
648
            outputproperty="javaversion">
377
		<echo message="J2SE-6.0:  ${J2SE-6.0}" />
649
            <arg line="-version" />
378
		<echo message="J2SE-5.0:  ${J2SE-5.0}" />
650
        </exec>
379
	</target>
651
        <echo message="java version of ${jvm} is ${javaversion}" />
380
	<target name="configureTeamTest" if="teamcvs">
652
        <condition
653
            property="J2SE-7.0"
654
            value="${jvm}">
655
            <contains
656
                string="${javaversion}"
657
                substring="java version &quot;1.7" />
658
        </condition>
659
        <condition
660
            property="J2SE-6.0"
661
            value="${jvm}">
662
            <or>
663
                <contains
664
                    string="${javaversion}"
665
                    substring="java version &quot;1.6" />
666
                <contains
667
                    string="${javaversion}"
668
                    substring="java version &quot;1.7" />
669
            </or>
670
        </condition>
671
        <condition
672
            property="J2SE-5.0"
673
            value="${jvm}">
674
            <or>
675
                <or>
676
                    <contains
677
                        string="${javaversion}"
678
                        substring="java version &quot;1.7" />
679
                    <contains
680
                        string="${javaversion}"
681
                        substring="java version &quot;1.6" />
682
                </or>
683
                <contains
684
                    string="${javaversion}"
685
                    substring="java version &quot;1.5" />
686
            </or>
687
        </condition>
688
        <echo message="J2SE-7.0:  ${J2SE-7.0}" />
689
        <echo message="J2SE-6.0:  ${J2SE-6.0}" />
690
        <echo message="J2SE-5.0:  ${J2SE-5.0}" />
691
    </target>
692
    <target
693
        name="configureTeamTest"
694
        if="teamcvs">
381
		<!-- Fill in cvs repository information -->
695
		<!-- Fill in cvs repository information -->
382
		<replace file="${eclipse-home}/plugins/${org.eclipse.team.tests.cvs.core}/repository.properties" token="@user@" value="${cvs_user}" />
696
        <replace
383
		<replace file="${eclipse-home}/plugins/${org.eclipse.team.tests.cvs.core}/repository.properties" token="@password@" value="${cvs_password}" />
697
            file="${eclipse-home}/plugins/${org.eclipse.team.tests.cvs.core}/repository.properties"
384
		<replace file="${eclipse-home}/plugins/${org.eclipse.team.tests.cvs.core}/repository.properties" token="@host@" value="${cvs_host}" />
698
            token="@user@"
385
		<replace file="${eclipse-home}/plugins/${org.eclipse.team.tests.cvs.core}/repository.properties" token="@root@" value="${cvs_root}" />
699
            value="${cvs_user}" />
386
	</target>
700
        <replace
387
701
            file="${eclipse-home}/plugins/${org.eclipse.team.tests.cvs.core}/repository.properties"
388
	<target name="configureDeltaPack" if="pdebuild">
702
            token="@password@"
389
		<property name="deltapackArchive" value="eclipse-${buildId}-delta-pack.zip" />
703
            value="${cvs_password}" />
390
		<property name="installDeltapack" value="${install}/deltapack" />
704
        <replace
391
		<mkdir dir="${installDeltapack}" />
705
            file="${eclipse-home}/plugins/${org.eclipse.team.tests.cvs.core}/repository.properties"
392
		<exec dir="." executable="unzip">
706
            token="@host@"
393
			<arg line="-o -qq ${deltapackArchive} -d ${installDeltapack}" />
707
            value="${cvs_host}" />
394
		</exec>
708
        <replace
395
	</target>
709
            file="${eclipse-home}/plugins/${org.eclipse.team.tests.cvs.core}/repository.properties"
710
            token="@root@"
711
            value="${cvs_root}" />
712
    </target>
396
713
714
    <target
715
        name="configureDeltaPack"
716
        if="pdebuild">
717
        <property
718
            name="deltapackArchive"
719
            value="eclipse-${buildId}-delta-pack.zip" />
720
        <property
721
            name="installDeltapack"
722
            value="${install}/deltapack" />
723
        <mkdir dir="${installDeltapack}" />
724
        <exec
725
            dir="."
726
            executable="unzip">
727
            <arg line="-o -qq ${deltapackArchive} -d ${installDeltapack}" />
728
        </exec>
729
    </target>
397
730
398
	<macrodef name="runTests">
399
		<attribute name="testPlugin" />
400
		<sequential>
401
731
732
    <macrodef name="runTests">
733
        <attribute name="testPlugin" />
734
        <sequential>
735
            <antcall target="markCurrentTime">
736
                <param
737
                    name="message"
738
                    value="start @{testPlugin}" />
739
            </antcall>
402
			<!--alwasy use eclipse executable to launch tests with the exception of performance tests-->
740
			<!--alwasy use eclipse executable to launch tests with the exception of performance tests-->
403
			<!--condition property="useEclipseExe" value="true">
741
			<!--condition property="useEclipseExe" value="true">
404
				<not>
742
				<not>
Lines 406-842 Link Here
406
				</not>
744
				</not>
407
			</condition-->
745
			</condition-->
408
746
409
			<condition property="performance.target.present" value="true">
747
            <condition
410
				<isset property="@{testPlugin}.has.performance.target" />
748
                property="performance.target.present"
411
			</condition>
749
                value="true">
750
                <isset property="@{testPlugin}.has.performance.target" />
751
            </condition>
412
752
413
			<!--override the value of this property with performance if the tests run on performance machine-->
753
			<!--override the value of this property with performance if the tests run on performance machine-->
414
			<property name="test.target" value="junit" />
754
            <property
415
			<property name="report" value="@{testPlugin}" />
755
                name="test.target"
756
                value="junit" />
757
            <property
758
                name="report"
759
                value="@{testPlugin}" />
416
760
417
			<!--install db plug-ins if running performance tests-->
761
			<!--install db plug-ins if running performance tests-->
418
			<condition property="derby" value="eclipse/dropins/eclipse/plugins/org.apache.derby*/**">
762
            <condition
419
				<equals arg1="${test.target}" arg2="performance" />
763
                property="derby"
420
			</condition>
764
                value="eclipse/dropins/eclipse/plugins/org.apache.derby*/**">
765
                <equals
766
                    arg1="${test.target}"
767
                    arg2="performance" />
768
            </condition>
421
			<!--	<property name="derby" value="" />  -->
769
			<!--	<property name="derby" value="" />  -->
422
			<!--			<param name="testPlugin" value="${@{testPlugin}}" /> -->
770
			<!--			<param name="testPlugin" value="${@{testPlugin}}" /> -->
423
			<antcall target="${test.target}">
771
            <antcall target="${test.target}">
424
				<param name="testPlugin" value="@{testPlugin}" />
772
                <param
425
				<param name="output-file" value="@{testPlugin}.xml" />
773
                    name="testPlugin"
426
			</antcall>
774
                    value="@{testPlugin}" />
427
		</sequential>
775
                <param
428
	</macrodef>
776
                    name="output-file"
777
                    value="@{testPlugin}.xml" />
778
            </antcall>
779
            <antcall target="markCurrentTime">
780
                <param
781
                    name="message"
782
                    value="end @{testPlugin}" />
783
            </antcall>
784
        </sequential>
785
    </macrodef>
429
786
430
	<target name="junit" unless="skip.test">
787
    <target
431
		<antcall target="setup">
788
        name="junit"
432
		</antcall>
789
        unless="skip.test">
433
		<property file="finalPluginsVersions.properties" />
790
        <antcall target="setup">
434
		<property name="library-file" value="${basedir}/test-eclipse/eclipse/plugins/org.eclipse.test_${org.eclipse.test}/library.xml" />
791
        </antcall>
435
		<property name="junit-stylesheet" value="${eclipse-home}/plugins/org.eclipse.test_${org.eclipse.test}/JUNIT.XSL" />
792
        <property file="finalPluginsVersions.properties" />
436
		<echo>trying to find ${testPlugin}_*</echo>
793
        <property
437
		<fileset id="test.plugin.file" dir="${eclipse-home}/plugins">
794
            name="library-file"
438
			<filename name="${testPlugin}_*/test.xml" />
795
            value="${basedir}/test-eclipse/eclipse/plugins/org.eclipse.test_${org.eclipse.test}/library.xml" />
439
		</fileset>
796
        <property
440
		<property name="testPluginX" refid="test.plugin.file" />
797
            name="junit-stylesheet"
441
		<echo>trying to find ${testPluginX}</echo>
798
            value="${eclipse-home}/plugins/org.eclipse.test_${org.eclipse.test}/JUNIT.XSL" />
442
		<condition property="pluginexists" value="true">
799
        <echo>trying to find ${testPlugin}_*</echo>
443
			<not>
800
        <fileset
444
				<equals arg1="${testPluginX}" arg2="" />
801
            id="test.plugin.file"
445
			</not>
802
            dir="${eclipse-home}/plugins">
446
		</condition>
803
            <filename name="${testPlugin}_*/test.xml" />
447
		<antcall target="runSuite" />
804
        </fileset>
448
		<antcall target="genResults" />
805
        <property
449
	</target>
806
            name="testPluginX"
807
            refid="test.plugin.file" />
808
        <echo>trying to find ${testPluginX}</echo>
809
        <condition
810
            property="pluginexists"
811
            value="true">
812
            <not>
813
                <equals
814
                    arg1="${testPluginX}"
815
                    arg2="" />
816
            </not>
817
        </condition>
818
        <antcall target="runSuite" />
819
        <antcall target="genResults" />
820
    </target>
450
821
451
	<target name="runSuite" if="pluginexists">
822
    <target
452
		<ant antfile="${eclipse-home}/plugins/${testPluginX}" dir="${eclipse-home}" />
823
        name="runSuite"
453
	</target>
824
        if="pluginexists">
825
        <ant
826
            antfile="${eclipse-home}/plugins/${testPluginX}"
827
            dir="${eclipse-home}" />
828
    </target>
454
829
455
830
456
	<target name="runSuitePerf" if="pluginexists">
831
    <target
457
		<echo message="testPluginX ${testPluginX}" />
832
        name="runSuitePerf"
458
		<property name="junit-stylesheet" value="${eclipse-home}/plugins/org.eclipse.test_${org.eclipse.test}/JUNIT.XSL" />
833
        if="pluginexists">
459
		<ant antfile="${eclipse-home}/plugins/${testPluginX}" dir="${eclipse-home}" target="performance" />
834
        <echo message="testPluginX ${testPluginX}" />
460
	</target>
835
        <property
836
            name="junit-stylesheet"
837
            value="${eclipse-home}/plugins/org.eclipse.test_${org.eclipse.test}/JUNIT.XSL" />
838
        <ant
839
            antfile="${eclipse-home}/plugins/${testPluginX}"
840
            dir="${eclipse-home}"
841
            target="performance" />
842
    </target>
461
843
462
	<target name="performance" if="performance.target.present" unless="skip.test">
844
    <target
463
		<antcall target="setup" />
845
        name="performance"
464
		<property file="finalPluginsVersions.properties" />
846
        if="performance.target.present"
465
		<property name="library-file" value="${basedir}/test-eclipse/eclipse/plugins/org.eclipse.test_${org.eclipse.test}/library.xml" />
847
        unless="skip.test">
848
        <antcall target="setup" />
849
        <property file="finalPluginsVersions.properties" />
850
        <property
851
            name="library-file"
852
            value="${basedir}/test-eclipse/eclipse/plugins/org.eclipse.test_${org.eclipse.test}/library.xml" />
466
853
467
		<echo>trying to find ${testPlugin}_*</echo>
854
        <echo>trying to find ${testPlugin}_*</echo>
468
		<fileset id="test.plugin.file" dir="${eclipse-home}/plugins">
855
        <fileset
469
			<filename name="${testPlugin}_*/test.xml" />
856
            id="test.plugin.file"
470
		</fileset>
857
            dir="${eclipse-home}/plugins">
471
		<property name="testPluginX" refid="test.plugin.file" />
858
            <filename name="${testPlugin}_*/test.xml" />
472
		<echo>trying to find ${testPluginX}</echo>
859
        </fileset>
473
		<condition property="pluginexists" value="true">
860
        <property
474
			<not>
861
            name="testPluginX"
475
				<equals arg1="${testPluginX}" arg2="" />
862
            refid="test.plugin.file" />
476
			</not>
863
        <echo>trying to find ${testPluginX}</echo>
477
		</condition>
864
        <condition
478
		<antcall target="runSuitePerf" />
865
            property="pluginexists"
479
		<antcall target="genResults" />
866
            value="true">
480
	</target>
867
            <not>
868
                <equals
869
                    arg1="${testPluginX}"
870
                    arg2="" />
871
            </not>
872
        </condition>
873
        <antcall target="runSuitePerf" />
874
        <antcall target="genResults" />
875
    </target>
481
876
482
	<target name="genResults">
877
    <target name="genResults">
483
		<copy file="${eclipse-home}/${report}.xml" tofile="${results}/xml/${report}_${platform}.xml" failonerror="false" />
878
        <copy
484
		<property name="junit-stylesheet" value="${eclipse-home}/plugins/org.eclipse.test_${org.eclipse.test}/JUNIT.XSL" />
879
            file="${eclipse-home}/${report}.xml"
485
		<xslt style="${junit-stylesheet}" basedir="${results}/xml" destdir="${results}/html" />
880
            tofile="${results}/xml/${report}_${platform}.xml"
486
	</target>
881
            failonerror="false" />
882
        <property
883
            name="junit-stylesheet"
884
            value="${eclipse-home}/plugins/org.eclipse.test_${org.eclipse.test}/JUNIT.XSL" />
885
        <xslt
886
            style="${junit-stylesheet}"
887
            basedir="${results}/xml"
888
            destdir="${results}/html" />
889
    </target>
487
890
488
	<target name="ant">
891
    <target name="ant">
489
		<runTests testPlugin="org.eclipse.ant.tests.core" />
892
        <runTests testPlugin="org.eclipse.ant.tests.core" />
490
	</target>
893
    </target>
491
894
492
	<target name="antui">
895
    <target name="antui">
493
		<runTests testPlugin="org.eclipse.ant.tests.ui" />
896
        <runTests testPlugin="org.eclipse.ant.tests.ui" />
494
	</target>
897
    </target>
495
898
496
	<target name="compare">
899
    <target name="compare">
497
		<runTests testPlugin="org.eclipse.compare.tests" />
900
        <runTests testPlugin="org.eclipse.compare.tests" />
498
	</target>
901
    </target>
499
902
500
	<target name="equinoxds">
903
    <target name="equinoxds">
501
		<runTests testPlugin="org.eclipse.equinox.ds.tests" />
904
        <runTests testPlugin="org.eclipse.equinox.ds.tests" />
502
	</target>
905
    </target>
503
906
504
	<target name="debug">
907
    <target name="debug">
505
		<runTests testPlugin="org.eclipse.debug.tests" />
908
        <runTests testPlugin="org.eclipse.debug.tests" />
506
	</target>
909
    </target>
507
910
508
	<target name="coreresources">
911
    <target name="coreresources">
509
		<runTests testPlugin="org.eclipse.core.tests.resources" />
912
        <runTests testPlugin="org.eclipse.core.tests.resources" />
510
	</target>
913
    </target>
511
914
512
	<target name="coreruntime">
915
    <target name="coreruntime">
513
		<runTests testPlugin="org.eclipse.core.tests.runtime" />
916
        <runTests testPlugin="org.eclipse.core.tests.runtime" />
514
	</target>
917
    </target>
515
918
516
	<target name="osgi">
919
    <target name="osgi">
517
		<runTests testPlugin="org.eclipse.osgi.tests" />
920
        <runTests testPlugin="org.eclipse.osgi.tests" />
518
	</target>
921
    </target>
519
922
520
	<target name="coreexpressions">
923
    <target name="coreexpressions">
521
		<runTests testPlugin="org.eclipse.core.expressions.tests" />
924
        <runTests testPlugin="org.eclipse.core.expressions.tests" />
522
	</target>
925
    </target>
523
926
524
	<target name="ltkuirefactoringtests">
927
    <target name="ltkuirefactoringtests">
525
		<runTests testPlugin="org.eclipse.ltk.ui.refactoring.tests" />
928
        <runTests testPlugin="org.eclipse.ltk.ui.refactoring.tests" />
526
	</target>
929
    </target>
527
930
528
	<target name="ltkcorerefactoringtests">
931
    <target name="ltkcorerefactoringtests">
529
		<runTests testPlugin="org.eclipse.ltk.core.refactoring.tests" />
932
        <runTests testPlugin="org.eclipse.ltk.core.refactoring.tests" />
530
	</target>
933
    </target>
531
934
532
	<target name="text">
935
    <target name="text">
533
		<runTests testPlugin="org.eclipse.text.tests" />
936
        <runTests testPlugin="org.eclipse.text.tests" />
534
	</target>
937
    </target>
535
938
536
	<target name="jface">
939
    <target name="jface">
537
		<runTests testPlugin="org.eclipse.jface.text.tests" />
940
        <runTests testPlugin="org.eclipse.jface.text.tests" />
538
	</target>
941
    </target>
539
942
540
	<target name="jfacedatabinding">
943
    <target name="jfacedatabinding">
541
		<runTests testPlugin="org.eclipse.jface.tests.databinding" />
944
        <runTests testPlugin="org.eclipse.jface.tests.databinding" />
542
	</target>
945
    </target>
543
946
544
	<target name="filebuffers">
947
    <target name="filebuffers">
545
		<runTests testPlugin="org.eclipse.core.filebuffers.tests" />
948
        <runTests testPlugin="org.eclipse.core.filebuffers.tests" />
546
	</target>
949
    </target>
547
950
548
	<target name="jdttext" unless="skip.jdttext">
951
    <target
549
		<runTests testPlugin="org.eclipse.jdt.text.tests" />
952
        name="jdttext"
550
	</target>
953
        unless="skip.jdttext">
954
        <runTests testPlugin="org.eclipse.jdt.text.tests" />
955
    </target>
551
956
552
	<target name="relEng" depends="setRuntimeArchive">
957
    <target
553
		<runTests testPlugin="org.eclipse.releng.tests" />
958
        name="relEng"
554
		<move todir="${results}/chkpii" includeEmptyDirs="no" failonerror="false">
959
        depends="setRuntimeArchive">
555
			<fileset dir="${results}/chkpii" />
960
        <runTests testPlugin="org.eclipse.releng.tests" />
556
			<mapper type="glob" from="*" to="${platform}_*" />
961
        <move
557
		</move>
962
            todir="${results}/chkpii"
558
	</target>
963
            includeEmptyDirs="no"
964
            failonerror="false">
965
            <fileset dir="${results}/chkpii" />
966
            <mapper
967
                type="glob"
968
                from="*"
969
                to="${platform}_*" />
970
        </move>
971
    </target>
559
972
560
	<target name="ua">
973
    <target name="ua">
561
		<runTests testPlugin="org.eclipse.ua.tests" />
974
        <runTests testPlugin="org.eclipse.ua.tests" />
562
	</target>
975
    </target>
563
976
564
	<target name="uadoc">
977
    <target name="uadoc">
565
		<runTests testPlugin="org.eclipse.ua.tests.doc" />
978
        <runTests testPlugin="org.eclipse.ua.tests.doc" />
566
	</target>
979
    </target>
567
980
568
	<target name="coretestsnet">
981
    <target name="coretestsnet">
569
		<runTests testPlugin="org.eclipse.core.tests.net" />
982
        <runTests testPlugin="org.eclipse.core.tests.net" />
570
	</target>
983
    </target>
571
984
572
	<target name="jdtcorecompiler" depends="setJVMProperties">
985
    <target
573
		<condition property="jvm" value="${J2SE-5.0}">
986
        name="jdtcorecompiler"
574
			<isset property="J2SE-5.0" />
987
        depends="setJVMProperties">
575
		</condition>
988
        <condition
576
		<runTests testPlugin="org.eclipse.jdt.core.tests.compiler" />
989
            property="jvm"
577
	</target>
990
            value="${J2SE-5.0}">
991
            <isset property="J2SE-5.0" />
992
        </condition>
993
        <runTests testPlugin="org.eclipse.jdt.core.tests.compiler" />
994
    </target>
578
995
579
	<target name="jdtapt" depends="setJVMProperties">
996
    <target
580
		<property name="jvm" value="${J2SE-5.0}" />
997
        name="jdtapt"
998
        depends="setJVMProperties">
999
        <property
1000
            name="jvm"
1001
            value="${J2SE-5.0}" />
581
		<!--only run test if J2SE-5.0 property  set-->
1002
		<!--only run test if J2SE-5.0 property  set-->
582
		<condition property="skip.test">
1003
        <condition property="skip.test">
583
			<not>
1004
            <not>
584
				<isset property="J2SE-5.0" />
1005
                <isset property="J2SE-5.0" />
585
			</not>
1006
            </not>
586
		</condition>
1007
        </condition>
587
		<runTests testPlugin="org.eclipse.jdt.apt.tests" />
1008
        <runTests testPlugin="org.eclipse.jdt.apt.tests" />
588
	</target>
1009
    </target>
589
1010
590
	<target name="jdtaptpluggable" depends="setJVMProperties">
1011
    <target
591
		<property name="jvm" value="${J2SE-6.0}" />
1012
        name="jdtaptpluggable"
1013
        depends="setJVMProperties">
1014
        <property
1015
            name="jvm"
1016
            value="${J2SE-6.0}" />
592
		<!--only run test if J2SE-5.0 property  set-->
1017
		<!--only run test if J2SE-5.0 property  set-->
593
		<condition property="skip.test">
1018
        <condition property="skip.test">
594
			<not>
1019
            <not>
595
				<or>
1020
                <or>
596
					<isset property="J2SE-6.0" />
1021
                    <isset property="J2SE-6.0" />
597
					<isset property="J2SE-7.0" />
1022
                    <isset property="J2SE-7.0" />
598
				</or>
1023
                </or>
599
			</not>
1024
            </not>
600
		</condition>
1025
        </condition>
601
		<runTests testPlugin="org.eclipse.jdt.apt.pluggable.tests" />
1026
        <runTests testPlugin="org.eclipse.jdt.apt.pluggable.tests" />
602
	</target>
1027
    </target>
603
1028
604
1029
605
	<target name="jdtcorebuilder" depends="setJVMProperties">
1030
    <target
1031
        name="jdtcorebuilder"
1032
        depends="setJVMProperties">
606
		<!--Run with 1.5 vm if it is available-->
1033
		<!--Run with 1.5 vm if it is available-->
607
		<condition property="jvm" value="${J2SE-5.0}">
1034
        <condition
608
			<isset property="J2SE-5.0" />
1035
            property="jvm"
609
		</condition>
1036
            value="${J2SE-5.0}">
610
		<runTests testPlugin="org.eclipse.jdt.core.tests.builder" />
1037
            <isset property="J2SE-5.0" />
611
	</target>
1038
        </condition>
1039
        <runTests testPlugin="org.eclipse.jdt.core.tests.builder" />
1040
    </target>
612
1041
613
	<target name="jdtcompilertool" depends="setJVMProperties">
1042
    <target
614
		<property name="jvm" value="${J2SE-6.0}" />
1043
        name="jdtcompilertool"
1044
        depends="setJVMProperties">
1045
        <property
1046
            name="jvm"
1047
            value="${J2SE-6.0}" />
615
		<!--only run test if J2SE-6.0 property  set-->
1048
		<!--only run test if J2SE-6.0 property  set-->
616
		<condition property="skip.test">
1049
        <condition property="skip.test">
617
			<not>
1050
            <not>
618
				<or>
1051
                <or>
619
					<isset property="J2SE-6.0" />
1052
                    <isset property="J2SE-6.0" />
620
					<isset property="J2SE-7.0" />
1053
                    <isset property="J2SE-7.0" />
621
				</or>
1054
                </or>
622
			</not>
1055
            </not>
623
		</condition>
1056
        </condition>
624
		<runTests testPlugin="org.eclipse.jdt.compiler.tool.tests" />
1057
        <runTests testPlugin="org.eclipse.jdt.compiler.tool.tests" />
625
	</target>
1058
    </target>
626
1059
627
	<target name="jdtcompilerapt" depends="setJVMProperties">
1060
    <target
628
		<property name="jvm" value="${J2SE-6.0}" />
1061
        name="jdtcompilerapt"
1062
        depends="setJVMProperties">
1063
        <property
1064
            name="jvm"
1065
            value="${J2SE-6.0}" />
629
		<!--only run test if J2SE-6.0 property  set-->
1066
		<!--only run test if J2SE-6.0 property  set-->
630
		<condition property="skip.test">
1067
        <condition property="skip.test">
631
			<not>
1068
            <not>
632
				<or>
1069
                <or>
633
					<isset property="J2SE-6.0" />
1070
                    <isset property="J2SE-6.0" />
634
					<isset property="J2SE-7.0" />
1071
                    <isset property="J2SE-7.0" />
635
				</or>
1072
                </or>
636
			</not>
1073
            </not>
637
		</condition>
1074
        </condition>
638
		<runTests testPlugin="org.eclipse.jdt.compiler.apt.tests" />
1075
        <runTests testPlugin="org.eclipse.jdt.compiler.apt.tests" />
639
	</target>
1076
    </target>
640
1077
641
	<target name="jdtcoremodel" depends="setJVMProperties">
1078
    <target
642
		<condition property="jvm" value="${J2SE-5.0}">
1079
        name="jdtcoremodel"
643
			<isset property="J2SE-5.0" />
1080
        depends="setJVMProperties">
644
		</condition>
1081
        <condition
645
		<runTests testPlugin="org.eclipse.jdt.core.tests.model" />
1082
            property="jvm"
646
	</target>
1083
            value="${J2SE-5.0}">
1084
            <isset property="J2SE-5.0" />
1085
        </condition>
1086
        <runTests testPlugin="org.eclipse.jdt.core.tests.model" />
1087
    </target>
647
1088
648
	<target name="jdtcoreperf">
1089
    <target name="jdtcoreperf">
649
		<runTests testPlugin="org.eclipse.jdt.core.tests.performance" />
1090
        <runTests testPlugin="org.eclipse.jdt.core.tests.performance" />
650
	</target>
1091
    </target>
651
1092
652
	<target name="jdtdebug">
1093
    <target name="jdtdebug">
653
		<runTests testPlugin="org.eclipse.jdt.debug.tests" />
1094
        <runTests testPlugin="org.eclipse.jdt.debug.tests" />
654
	</target>
1095
    </target>
655
1096
656
	<target name="jdtui">
1097
    <target name="jdtui">
657
		<runTests testPlugin="org.eclipse.jdt.ui.tests" />
1098
        <runTests testPlugin="org.eclipse.jdt.ui.tests" />
658
	</target>
1099
    </target>
659
1100
660
	<target name="jdtuirefactoring">
1101
    <target name="jdtuirefactoring">
661
		<runTests testPlugin="org.eclipse.jdt.ui.tests.refactoring" />
1102
        <runTests testPlugin="org.eclipse.jdt.ui.tests.refactoring" />
662
	</target>
1103
    </target>
663
1104
664
	<target name="pdeui">
1105
    <target name="pdeui">
665
		<runTests testPlugin="org.eclipse.pde.ui.tests" />
1106
        <runTests testPlugin="org.eclipse.pde.ui.tests" />
666
	</target>
1107
    </target>
667
1108
668
	<target name="pdebuild">
1109
    <target name="pdebuild">
669
		<property name="pdebuild" value="true" />
1110
        <property
670
		<runTests testPlugin="org.eclipse.pde.build.tests" />
1111
            name="pdebuild"
671
	</target>
1112
            value="true" />
1113
        <runTests testPlugin="org.eclipse.pde.build.tests" />
1114
    </target>
672
1115
673
	<target name="swt">
1116
    <target name="swt">
674
		<runTests testPlugin="org.eclipse.swt.tests" />
1117
        <runTests testPlugin="org.eclipse.swt.tests" />
675
	</target>
1118
    </target>
676
1119
677
	<target name="teamcore">
1120
    <target name="teamcore">
678
		<runTests testPlugin="org.eclipse.team.tests.core" />
1121
        <runTests testPlugin="org.eclipse.team.tests.core" />
679
	</target>
1122
    </target>
680
1123
681
	<target name="teamcvs">
1124
    <target name="teamcvs">
682
		<property name="teamcvs" value="true" />
1125
        <property
683
		<runTests testPlugin="org.eclipse.team.tests.cvs.core" />
1126
            name="teamcvs"
684
	</target>
1127
            value="true" />
1128
        <runTests testPlugin="org.eclipse.team.tests.cvs.core" />
1129
    </target>
685
1130
686
	<target name="ui">
1131
    <target name="ui">
687
		<runTests testPlugin="org.eclipse.ui.tests" />
1132
        <runTests testPlugin="org.eclipse.ui.tests" />
688
	</target>
1133
    </target>
689
1134
690
	<target name="uinavigator">
1135
    <target name="uinavigator">
691
		<runTests testPlugin="org.eclipse.ui.tests.navigator" />
1136
        <runTests testPlugin="org.eclipse.ui.tests.navigator" />
692
	</target>
1137
    </target>
693
1138
694
	<target name="uircp">
1139
    <target name="uircp">
695
		<runTests testPlugin="org.eclipse.ui.tests.rcp" />
1140
        <runTests testPlugin="org.eclipse.ui.tests.rcp" />
696
	</target>
1141
    </target>
697
1142
698
	<target name="uiforms">
1143
    <target name="uiforms">
699
		<runTests testPlugin="org.eclipse.ui.tests.forms" />
1144
        <runTests testPlugin="org.eclipse.ui.tests.forms" />
700
	</target>
1145
    </target>
701
1146
702
	<target name="uieditors">
1147
    <target name="uieditors">
703
		<runTests testPlugin="org.eclipse.ui.editors.tests" />
1148
        <runTests testPlugin="org.eclipse.ui.editors.tests" />
704
	</target>
1149
    </target>
705
1150
706
	<target name="uiperformance">
1151
    <target name="uiperformance">
707
		<runTests testPlugin="org.eclipse.ui.tests.performance" />
1152
        <runTests testPlugin="org.eclipse.ui.tests.performance" />
708
	</target>
1153
    </target>
709
1154
710
	<target name="uiviews">
1155
    <target name="uiviews">
711
		<runTests testPlugin="org.eclipse.ui.tests.views.properties.tabbed" />
1156
        <runTests testPlugin="org.eclipse.ui.tests.views.properties.tabbed" />
712
	</target>
1157
    </target>
713
1158
714
	<target name="uiworkbenchtexteditor">
1159
    <target name="uiworkbenchtexteditor">
715
		<runTests testPlugin="org.eclipse.ui.workbench.texteditor.tests" />
1160
        <runTests testPlugin="org.eclipse.ui.workbench.texteditor.tests" />
716
	</target>
1161
    </target>
717
1162
718
	<target name="update">
1163
    <target name="update">
719
		<runTests testPlugin="org.eclipse.update.tests.core" />
1164
        <runTests testPlugin="org.eclipse.update.tests.core" />
720
	</target>
1165
    </target>
721
1166
722
	<target name="pdeapitooling" depends="setJVMProperties">
1167
    <target
723
		<property name="jvm" value="${J2SE-5.0}" />
1168
        name="pdeapitooling"
1169
        depends="setJVMProperties">
1170
        <property
1171
            name="jvm"
1172
            value="${J2SE-5.0}" />
724
		<!--only run test if J2SE-5.0 property  set-->
1173
		<!--only run test if J2SE-5.0 property  set-->
725
		<condition property="skip.test">
1174
        <condition property="skip.test">
726
			<not>
1175
            <not>
727
				<isset property="J2SE-5.0" />
1176
                <isset property="J2SE-5.0" />
728
			</not>
1177
            </not>
729
		</condition>
1178
        </condition>
730
		<runTests testPlugin="org.eclipse.pde.api.tools.tests" />
1179
        <runTests testPlugin="org.eclipse.pde.api.tools.tests" />
731
	</target>
1180
    </target>
732
1181
733
	<target name="equinoxsecurity">
1182
    <target name="equinoxsecurity">
734
		<runTests testPlugin="org.eclipse.equinox.security.tests" />
1183
        <runTests testPlugin="org.eclipse.equinox.security.tests" />
735
	</target>
1184
    </target>
736
1185
737
	<target name="equinoxp2" depends="setJVMProperties">
1186
    <!--
738
		<property name="jvm" value="${J2SE-5.0}" />
1187
       disable this tests for mac, for now, since always DNSs. See
1188
       https://bugs.eclipse.org/bugs/show_bug.cgi?id=390392
1189
    -->
1190
    <target
1191
        name="equinoxp2"
1192
        depends="setJVMProperties, checkOS"
1193
        unless="isMac">
1194
        <property
1195
            name="jvm"
1196
            value="${J2SE-5.0}" />
739
		<!--only run test if J2SE-5.0 property  set-->
1197
		<!--only run test if J2SE-5.0 property  set-->
740
		<condition property="skip.test">
1198
        <condition property="skip.test">
741
			<not>
1199
            <not>
742
				<isset property="J2SE-5.0" />
1200
                <isset property="J2SE-5.0" />
743
			</not>
1201
            </not>
744
		</condition>
1202
        </condition>
745
		<runTests testPlugin="org.eclipse.equinox.p2.tests" />
1203
        <runTests testPlugin="org.eclipse.equinox.p2.tests" />
746
	</target>
1204
    </target>
747
1205
748
	<target name="equinoxp2ui" depends="setJVMProperties">
1206
    <!--
749
		<property name="jvm" value="${J2SE-5.0}" />
1207
       disable this tests for mac, for now, since always DNSs. See
1208
       https://bugs.eclipse.org/bugs/show_bug.cgi?id=390392
1209
    -->
1210
    <target
1211
        name="equinoxp2ui"
1212
        depends="setJVMProperties, checkOS"
1213
        unless="isMac">
1214
        <property
1215
            name="jvm"
1216
            value="${J2SE-5.0}" />
750
		<!--only run test if J2SE-5.0 property  set-->
1217
		<!--only run test if J2SE-5.0 property  set-->
751
		<condition property="skip.test">
1218
        <condition property="skip.test">
752
			<not>
1219
            <not>
753
				<isset property="J2SE-5.0" />
1220
                <isset property="J2SE-5.0" />
754
			</not>
1221
            </not>
755
		</condition>
1222
        </condition>
756
		<runTests testPlugin="org.eclipse.equinox.p2.tests.ui" />
1223
        <runTests testPlugin="org.eclipse.equinox.p2.tests.ui" />
757
	</target>
1224
    </target>
758
1225
759
	<target name="equinoxp2discovery" depends="setJVMProperties">
1226
    <target
760
		<property name="jvm" value="${J2SE-5.0}" />
1227
        name="equinoxp2discovery"
1228
        depends="setJVMProperties">
1229
        <property
1230
            name="jvm"
1231
            value="${J2SE-5.0}" />
761
		<!--only run test if J2SE-5.0 property  set-->
1232
		<!--only run test if J2SE-5.0 property  set-->
762
		<condition property="skip.test">
1233
        <condition property="skip.test">
763
			<not>
1234
            <not>
764
				<isset property="J2SE-5.0" />
1235
                <isset property="J2SE-5.0" />
765
			</not>
1236
            </not>
766
		</condition>
1237
        </condition>
767
		<runTests testPlugin="org.eclipse.equinox.p2.tests.discovery" />
1238
        <runTests testPlugin="org.eclipse.equinox.p2.tests.discovery" />
768
	</target>
1239
    </target>
1240
1241
    <target name="search">
1242
        <runTests testPlugin="org.eclipse.search.tests" />
1243
    </target>
1244
1245
    <target name="pdeds">
1246
        <runTests testPlugin="org.eclipse.pde.ds.tests" />
1247
    </target>
1248
1249
    <target name="bidi">
1250
        <runTests testPlugin="org.eclipse.equinox.bidi.tests" />
1251
    </target>
1252
1253
    <target name="all">
1254
1255
        <antcall target="markCurrentTime">
1256
            <param
1257
                name="message"
1258
                value="start relEng" />
1259
        </antcall>
1260
        <antcall target="relEng" />
1261
        <antcall target="markCurrentTime">
1262
            <param
1263
                name="message"
1264
                value="end relEng" />
1265
        </antcall>
1266
1267
        <antcall target="markCurrentTime">
1268
            <param
1269
                name="message"
1270
                value="start platform" />
1271
        </antcall>
1272
        <antcall target="platform" />
1273
        <antcall target="markCurrentTime">
1274
            <param
1275
                name="message"
1276
                value="end platform" />
1277
        </antcall>
1278
1279
        <antcall target="markCurrentTime">
1280
            <param
1281
                name="message"
1282
                value="start pde" />
1283
        </antcall>
1284
        <antcall target="pde" />
1285
        <antcall target="markCurrentTime">
1286
            <param
1287
                name="message"
1288
                value="end pde" />
1289
        </antcall>
1290
1291
        <antcall target="markCurrentTime">
1292
            <param
1293
                name="message"
1294
                value="start jdt" />
1295
        </antcall>
1296
        <antcall target="jdt" />
1297
        <antcall target="markCurrentTime">
1298
            <param
1299
                name="message"
1300
                value="end jdt" />
1301
        </antcall>
1302
1303
        <antcall target="markCurrentTime">
1304
            <param
1305
                name="message"
1306
                value="start platformLR" />
1307
        </antcall>
1308
        <antcall target="platformLR" />
1309
        <antcall target="markCurrentTime">
1310
            <param
1311
                name="message"
1312
                value="end platformLR" />
1313
        </antcall>
1314
1315
        <antcall target="markCurrentTime">
1316
            <param
1317
                name="message"
1318
                value="start longrunning" />
1319
        </antcall>
1320
        <antcall target="longrunning" />
1321
        <antcall target="markCurrentTime">
1322
            <param
1323
                name="message"
1324
                value="end longrunning" />
1325
        </antcall>
1326
1327
    </target>
1328
1329
    <!-- 
1330
        admittedly, not quite all of 'platform', but for 
1331
        now serves dual purpose of a "short set" of tests, that area 
1332
        relatively quick, and realtively reliable on build.eclipse.org hardware 
1333
    -->
1334
    <target name="platform">
1335
        <antcall target="ant" />
1336
        <antcall target="antui" />
1337
        <antcall target="compare" />
769
1338
770
	<target name="search">
1339
        <antcall target="coreruntime" />
771
		<runTests testPlugin="org.eclipse.search.tests" />
1340
        <antcall target="osgi" />
772
	</target>
1341
        <antcall target="coreresources" />
1342
        <antcall target="coreexpressions" />
1343
        <antcall target="coretestsnet" />
1344
        <antcall target="text" />
1345
        <antcall target="jfacedatabinding" />
1346
        <antcall target="filebuffers" />
1347
        <antcall target="teamcore" />
1348
        <antcall target="uadoc" />
1349
        <antcall target="uieditors" />
1350
        <antcall target="uinavigator" />
1351
        <antcall target="uiworkbenchtexteditor" />
773
1352
774
	<target name="pdeds">
1353
        
775
		<runTests testPlugin="org.eclipse.pde.ds.tests" />
1354
        <!-- don't run now, for 4.2. See bug 380553.
776
	</target>
1355
        <antcall target="uircp" />
1356
        -->
777
1357
778
	<target name="bidi">
1358
        <antcall target="uiviews" />
779
		<runTests testPlugin="org.eclipse.equinox.bidi.tests" />
1359
        <antcall target="ua" />
780
	</target>
1360
        <antcall target="uiforms" />
1361
        <antcall target="equinoxp2ui" />
1362
        <antcall target="equinoxsecurity" />
1363
        <antcall target="search" />
1364
        <antcall target="debug" />
1365
        <antcall target="ui" />
1366
        <antcall target="equinoxds" />
1367
        <antcall target="equinoxp2discovery" />
1368
        <antcall target="bidi" />
1369
        <antcall target="ltkuirefactoringtests" />
1370
        <antcall target="ltkcorerefactoringtests" />
1371
    </target>
781
1372
1373
    <!-- this group is "platform tests" that are Long Running (or, perhaps
1374
         hang, during performance testss 
1375
         -->
1376
    <target name="platformLR">
1377
        <antcall target="teamcvs" />
1378
        <antcall target="jface" />
1379
        <antcall target="swt" />
1380
        <antcall target="uiperformance" />
1381
    </target>
782
1382
1383
    <target name="pde">
1384
        <antcall target="pdeapitooling" />
1385
        <antcall target="pdeds" />
1386
        <antcall target="pdebuild" />
1387
        <antcall target="pdeui" />
1388
    </target>
783
1389
1390
    <target name="jdt">
1391
        <antcall target="jdtcompilertool" />
1392
        <antcall target="jdtcompilerapt" />
1393
        <antcall target="jdttext" />
1394
        <antcall target="jdtcoreperf" />
1395
        <antcall target="jdtcorebuilder" />
1396
        <antcall target="jdtcorecompiler" />
1397
        <antcall target="jdtdebug" />
1398
        <antcall target="jdtui" />
1399
        <antcall target="jdtuirefactoring" />
1400
        <antcall target="jdtapt" />
1401
        <antcall target="jdtaptpluggable" />
1402
        <antcall target="jdtcoremodel" />
1403
    </target>
784
1404
1405
    <target name="longrunning">
1406
        <antcall target="equinoxp2" />
1407
    </target>
785
1408
786
	<target name="all">		
1409
    <!-- we could put other variables/os checks here, if needed -->
787
		<antcall target="equinoxp2" />
1410
    <target name="checkOS">
788
		<antcall target="equinoxp2ui" />
1411
        <condition
789
		<antcall target="pdeui" />
1412
            property="isMac"
790
		<antcall target="jdtcompilertool" />
1413
            value="true">
791
		<antcall target="jdtcompilerapt" />
1414
            <os family="mac" />
792
		<antcall target="jdttext" />
1415
        </condition>
793
		<antcall target="ant" />
1416
        <condition
794
		<antcall target="compare" />
1417
            property="isUnix"
795
		<antcall target="coreruntime" />
1418
            value="true">
796
		<antcall target="coreresources" />
1419
            <os family="unix" />
797
		<antcall target="osgi" />
1420
        </condition>
798
		<antcall target="coreexpressions" />	
1421
    </target>
799
		<antcall target="teamcore" />
1422
    <macrodef name="markTime">
800
		<antcall target="jdtcoreperf" />
1423
        <attribute name="msg" />
801
		<antcall target="jdtcorebuilder" />
1424
        <sequential>
802
		<antcall target="jdtcorecompiler" />
1425
            <!-- 
803
		<antcall target="uiperformance" />
1426
               we write the message first, with no ${line.separator} so that the timestamp can 
804
		<antcall target="uieditors" />
1427
               go on same line, and my side-effect writes an EOL 
805
		<antcall target="uinavigator" />
1428
             -->
806
		<antcall target="uiworkbenchtexteditor" />
1429
            <echo
807
		<antcall target="uircp" />
1430
                message="@{msg}     "
808
		<antcall target="uiviews" />
1431
                append="true"
809
		<antcall target="jdtdebug" />
1432
                file="${junit-report-output}/testTimes.log" />
810
		<antcall target="jdtui" />
1433
            <!-- This executable should run on all unix platforms (linux, mac) -->
811
		<antcall target="jdtuirefactoring" />
1434
            <exec
812
		<antcall target="ltkuirefactoringtests" />
1435
                executable="date"
813
		<antcall target="ltkcorerefactoringtests" />
1436
                append="true"
814
		<antcall target="text" />
1437
                output="${junit-report-output}/testTimes.log"
815
		<antcall target="jface" />
1438
                osfamily="unix">
816
		<antcall target="jfacedatabinding" />
1439
                <arg value="+%s" />
817
		<antcall target="filebuffers" />
1440
            </exec>
818
		<antcall target="antui" />
1441
        </sequential>
819
		<antcall target="coretestsnet" />
1442
    </macrodef>
820
		<antcall target="jdtapt" />
1443
    <target
821
		<antcall target="pdebuild" />
1444
        name="markCurrentTime"
822
		<antcall target="jdtaptpluggable" />
1445
        depends="checkOS"
823
		<antcall target="ua" />
1446
        if="isUnix">
824
		<antcall target="uiforms" />
1447
        <!-- caller in callant is expected to supply msg -->
825
		<antcall target="pdeapitooling" />
1448
        <property
826
		<antcall target="equinoxsecurity" />
1449
            name="message"
827
		<antcall target="search" />
1450
            value="no message given by caller" />
828
		<antcall target="pdeds" />
1451
        <markTime msg="${message}" />
829
		<antcall target="jdtcoremodel" />
1452
    </target>
830
		<antcall target="uadoc" />
831
		<antcall target="debug" />
832
		<antcall target="ui" />
833
		<antcall target="relEng" />
834
		<antcall target="swt" />
835
		<antcall target="teamcvs" />
836
		<antcall target="equinoxds" />
837
		<antcall target="equinoxp2discovery" />
838
		<antcall target="bidi" />
839
1453
840
	</target>
841
</project>
1454
</project>
842
1455
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/testScripts/CVS/Entries (-5 lines)
Lines 1-5 Link Here
1
/readme.html/1.16/Tue Jun  7 13:22:45 2011/-kk/
2
/runtests/1.34/Tue Jun  7 13:22:45 2011/-kb/
3
/runtests.bat/1.10/Wed Jan 19 15:44:27 2011/-kk/
4
/runtests.sh/1.7/Tue Jun  7 13:22:45 2011//
5
/test.xml/1.213/Fri Nov 11 14:59:52 2011/-kk/
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/testScripts/CVS/Repository (-1 lines)
Line 1 Link Here
1
org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/sdk.tests/testScripts
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/testScripts/CVS/Root (-1 lines)
Line 1 Link Here
1
:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse

Return to bug 395099