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 (-2 / +1 lines)
Lines 148-155 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>
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/runtests (-87 / +88 lines)
Lines 1-87 Link Here
1
# !/bin/sh
1
# !/bin/sh
2
2
3
#set the DISPLAY for running tests on Linux
3
#set the DISPLAY for running tests on Linux
4
DISPLAY=:0.0;export DISPLAY
4
DISPLAY=`$HOST`:0.0;export DISPLAY
5
5
6
# by default, use the java executable on the path for outer and test jvm
6
# by default, use the java executable on the path for outer and test jvm
7
vmcmd=java
7
vmcmd=java
8
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
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=.
10
dir=.
11
11
12
# operating system, windowing system and architecture variables
12
# operating system, windowing system and architecture variables
13
os=
13
os=
14
ws=
14
ws=
15
arch=
15
arch=
16
16
17
# list of tests (targets) to execute in test.xml
17
# list of tests (targets) to execute in test.xml
18
tests=
18
tests=
19
19
20
# default value to determine if eclipse should be reinstalled between running of tests
20
# default value to determine if eclipse should be reinstalled between running of tests
21
installmode="clean"
21
installmode="clean"
22
22
23
# name of a property file to pass to Ant
23
# name of a property file to pass to Ant
24
properties=
24
properties=
25
25
26
# message printed to console
26
# message printed to console
27
usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-noclean] [<test target>][-properties <path>]"
27
usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-noclean] [<test target>][-properties <path>]"
28
28
29
29
30
# proces command line arguments
30
# proces command line arguments
31
while [ $# -gt 0 ]
31
while [ $# -gt 0 ]
32
do
32
do
33
	case "$1" in
33
	case "$1" in
34
		-dir) dir="$2"; shift;;
34
		-dir) dir="$2"; shift;;
35
		-os) os="$2"; shift;;
35
		-os) os="$2"; shift;;
36
		-ws) ws="$2"; shift;;
36
		-ws) ws="$2"; shift;;
37
		-arch) arch="$2"; shift;;
37
		-arch) arch="$2"; shift;;
38
		-noclean) installmode="noclean";;
38
		-noclean) installmode="noclean";;
39
		-properties) properties="-propertyfile $2";shift;;
39
		-properties) properties="-propertyfile $2";shift;;
40
		-vm) vmcmd="$2"; shift;;
40
		-vm) vmcmd="$2"; shift;;
41
		*) tests=$tests\ $1;;
41
		*) tests=$tests\ $1;;
42
	esac
42
	esac
43
	shift
43
	shift
44
done
44
done
45
45
46
# for *nix systems, os, ws and arch values must be specified
46
# for *nix systems, os, ws and arch values must be specified
47
if [ "x$os" = "x" ]
47
if [ "x$os" = "x" ]
48
then
48
then
49
	echo >&2 "$usage"
49
	echo >&2 "$usage"
50
	exit 1
50
	exit 1
51
fi
51
fi
52
52
53
if [ "x$ws" = "x" ]
53
if [ "x$ws" = "x" ]
54
then
54
then
55
	echo >&2 "$usage"
55
	echo >&2 "$usage"
56
	exit 1
56
	exit 1
57
fi
57
fi
58
58
59
if [ "x$arch" = "x" ]
59
if [ "x$arch" = "x" ]
60
then
60
then
61
	echo >&2 "$usage"
61
	echo >&2 "$usage"
62
	exit 1
62
	exit 1
63
fi
63
fi
64
64
65
#necessary when invoking this script through rsh
65
#necessary when invoking this script through rsh
66
cd $dir
66
cd $dir
67
67
68
# verify os, ws and arch values passed in are valid before running tests
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"]
69
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"]
70
then
70
then
71
	if [ ! -r eclipse ]
71
	if [ ! -r eclipse ]
72
	then
72
	then
73
		tar -xzf eclipse-SDK-*.tar.gz
73
		tar -xzf eclipse-SDK-*.tar.gz
74
		unzip -qq -o -C eclipse-junit-tests-*.zip */plugins/org.eclipse.test* -d eclipse/dropins/
74
		unzip -qq -o -C eclipse-junit-tests-*.zip plugins/org.eclipse.test* -d eclipse/dropins/
75
fi
75
fi
76
76
77
# run tests
77
# run tests
78
launcher=`ls eclipse/plugins/org.eclipse.equinox.launcher_*.jar`
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
79
# -Dtimeout=1800000
80
80
$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
81
# display message to user if os, ws and arch are invalid
81
82
else
82
# display message to user if os, ws and arch are invalid
83
	echo "The os, ws and arch values are either invalid or are an invalid combination"
83
else
84
84
	echo "The os, ws and arch values are either invalid or are an invalid combination"
85
exit 1
85
86
fi
86
exit 1
87
87
fi
88
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/runtests.bat (-3 / +8 lines)
Lines 2-8 Link Here
2
2
3
REM default java executable for outer and test vm
3
REM default java executable for outer and test vm
4
set vmcmd=java
4
set vmcmd=java
5
set no_proxy=localhost,dev.eclipse.org,hudson.eclipse.org
6
5
7
REM reset list of ant targets in test.xml to execute
6
REM reset list of ant targets in test.xml to execute
8
set tests=
7
set tests=
Lines 39-45 REM **************************************************************** Link Here
39
38
40
if x%1==x goto run
39
if x%1==x goto run
41
if x%1==x-ws set ws=%2 && shift && shift && goto processcmdlineargs
40
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
41
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
42
if x%1==x-arch set arch=%2 && shift && shift && goto processcmdlineargs
44
if x%1==x-noclean set installmode=noclean&& shift && goto processcmdlineargs
43
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
44
if x%1==x-properties set properties=-propertyfile %2 && shift && shift && goto processcmdlineargs
Lines 47-52 if x%1==x-vm set vmcmd="%2" && shift && shift && goto processcmdlineargs Link Here
47
46
48
set tests=%tests% %1 && shift && goto processcmdlineargs
47
set tests=%tests% %1 && shift && goto processcmdlineargs
49
48
49
echo Specified test targets (if any): %tests%
50
50
51
:run
51
:run
52
REM ***************************************************************************
52
REM ***************************************************************************
Lines 56-62 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
56
dir /b eclipse\plugins\org.eclipse.equinox.launcher_*.jar>launcher-jar-name.txt
57
set /p launcher-jar=<launcher-jar-name.txt
57
set /p launcher-jar=<launcher-jar-name.txt
58
58
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
59
60
echo "list all environment variables in effect as tests start"
61
set
62
63
rem -Dtimeout=300000 "%ANT_OPTS%" 
64
%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
65
61
goto end
66
goto end
62
67
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/runtests.sh (-35 / +152 lines)
Lines 1-15 Link Here
1
#!/bin/sh
1
#!/usr/bin/env bash
2
3
echo "USER: $USER"
4
echo "PATH: $PATH"
5
# This file should never exist or be needed for production machine, 
6
# but allows an easy way for a "local user" to provide this file 
7
# somewhere on the search path ($HOME/bin is common), 
8
# and it will be included here, thus can provide "override values" 
9
# to those defined by defaults for production machine., 
10
# such as for vmcmd
11
12
source localTestsProperties.shsource
2
13
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
14
7
# by default, use the java executable on the path for outer and test jvm
15
# 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
16
#vmcmd=${vmcmd:-/shared/common/jdk-1.6.x86_64/jre/bin/java}
9
vmcmd=java
17
vmcmd=java
10
18
19
echo "vmcmd: $vmcmd"
20
11
#this value must be set when using rsh to execute this script, otherwise the script will execute from the user's home directory
21
#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=.
22
dir=${PWD}
13
23
14
# operating system, windowing system and architecture variables
24
# operating system, windowing system and architecture variables
15
os=
25
os=
Lines 32-67 usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-n Link Here
32
# proces command line arguments
42
# proces command line arguments
33
while [ $# -gt 0 ]
43
while [ $# -gt 0 ]
34
do
44
do
35
	case "$1" in
45
    case "${1}" in
36
		-dir) dir="$2"; shift;;
46
        -dir) 
37
		-os) os="$2"; shift;;
47
            dir="${2}"; shift;;
38
		-ws) ws="$2"; shift;;
48
        -os) 
39
		-arch) arch="$2"; shift;;
49
            os="${2}"; shift;;
40
		-noclean) installmode="noclean";;
50
        -ws) 
41
		-properties) properties="-propertyfile $2";shift;;
51
            ws="${2}"; shift;;
42
		-vm) vmcmd="$2"; shift;;
52
        -arch) 
43
		*) tests=$tests\ $1;;
53
            arch="${2}"; shift;;
44
	esac
54
        -noclean) 
45
	shift
55
            installmode="noclean";;
56
        -properties) 
57
            properties="-propertyfile ${2}";shift;;
58
        -vm) 
59
            vmcmd="${2}"; shift;;
60
        *) 
61
            tests=$tests\ ${1};;
62
    esac
63
    shift
46
done
64
done
47
65
66
echo "Specified test targets (if any): ${tests}"
67
48
# for *nix systems, os, ws and arch values must be specified
68
# for *nix systems, os, ws and arch values must be specified
49
if [ "x$os" = "x" ]
69
if [ "x$os" = "x" ]
50
then
70
then
51
	echo >&2 "$usage"
71
    echo >&2 "$usage"
52
	exit 1
72
    exit 1
53
fi
73
fi
54
74
55
if [ "x$ws" = "x" ]
75
if [ "x$ws" = "x" ]
56
then
76
then
57
	echo >&2 "$usage"
77
    echo >&2 "$usage"
58
	exit 1
78
    exit 1
59
fi
79
fi
60
80
61
if [ "x$arch" = "x" ]
81
if [ "x$arch" = "x" ]
62
then
82
then
63
	echo >&2 "$usage"
83
    echo >&2 "$usage"
64
	exit 1
84
    exit 1
65
fi
85
fi
66
86
67
#necessary when invoking this script through rsh
87
#necessary when invoking this script through rsh
Lines 70-89 cd $dir Link Here
70
# verify os, ws and arch values passed in are valid before running tests
90
# verify os, ws and arch values passed in are valid before running tests
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"]
91
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"]
72
then
92
then
73
	if [ ! -r eclipse ]
93
    if [ ! -r eclipse ]
74
	then
94
    then
75
		tar -xzf eclipse-SDK-*.tar.gz
95
        tar -xzf eclipse-SDK-*.tar.gz
76
		unzip -qq -o -C eclipse-junit-tests-*.zip */plugins/org.eclipse.test* -d eclipse/dropins/
96
        # note, the file pattern to match, must not start with */plugins because there is no leading '/' in the zip file, since they are repos.
77
fi
97
        unzip -qq -o -C eclipse-junit-tests-*.zip plugins/org.eclipse.test* -d eclipse/dropins/
98
    fi
78
99
79
# run tests
100
    # run tests
80
launcher=`ls eclipse/plugins/org.eclipse.equinox.launcher_*.jar`
101
    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
102
    
82
103
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
104
87
exit 1
105
# it have been recommended not to "probe and publish" information about systems 
106
# for slight improvement in security. Bug 387747
107
# so I have commented out most such probes, so they won't be routine. 
108
109
    #echo "list all environment variables in effect as tests start"
110
    #printenv
111
112
113
# variables of special interest, though most won't be defined
114
#echo "\$WINDOWMANAGER: $WINDOWMANAGER"
115
#echo "\$WINDOW_MANAGER: $WINDOW_MANAGER"
116
#echo "\$DESKTOP_SESSION: $DESKTOP_SESSION"
117
#echo "\$XDG_CURRENT_DESKTOP: $XDG_CURRENT_DESKTOP"
118
#echo "\$GDMSESSION: $GDMSESSION"    
119
            
120
#echo "uname -a"
121
#uname -a
122
    #    echo 
123
    #echo "lsb_release -a"
124
    #lsb_release -a
125
    #echo 
126
        
127
#echo "cat /etc/lsb-release"
128
#cat /etc/lsb-release
129
    #    echo 
130
131
#echo "cat /etc/SuSE-release"
132
#cat /etc/SuSE-release
133
    #    echo 
134
135
#echo "rpm -q cairo"
136
#rpm -q cairo
137
    #    echo 
138
139
#echo "rpm -q gtk2"
140
#rpm -q gtk2
141
    #    echo 
142
143
#echo "rpm -q glibc"
144
#rpm -q glibc
145
    #    echo 
146
147
#echo "rpm -q glib2"
148
#rpm -q glib2
149
    #    echo 
150
151
#echo "rpm -q pango"
152
#rpm -q pango
153
    #    echo 
154
155
       #    echo
156
    #echo "Check for popular desktop environments (gnome|kde):"
157
    #ps -ef | egrep -i "gnome|kde" | grep -v egrep
158
 
159
     #    echo
160
    #echo "Check for popular desktop environments:"
161
    #ps -ef | egrep -i "unity|mint|gnome|kde|xfce|ion|wmii|dwm" | grep -v egrep
162
 
163
     #echo "DISPLAY: $DISPLAY"
164
165
    # make sure there is a window manager running. See bug 379026
166
    # we should not have to, but may be a quirk/bug of hudson setup
167
    # assuming metacity attaches to "current" display by default (which should have 
168
    # already been set by Hudson). We echo its value here just for extra reference/cross-checks.  
169
170
    echo "Check if any window managers are running (xfwm|twm|metacity|beryl|fluxbox|compiz):"
171
    wmpss=$(ps -ef | egrep -i "xfwm|twm|metacity|beryl|fluxbox|compiz" | grep -v egrep)
172
    echo "Window Manager processes: $wmpss"
173
    echo
174
175
    if [[ -z $wmpss ]]
176
    then 
177
             echo "No window managers processes found running, so will start metacity"
178
             metacity --replace --sm-disable  &
179
             METACITYPID=$!
180
             echo $METACITYPID > epmetacity.pid
181
     else 
182
             echo "Existing window manager found running, so did not force start of metacity"         
183
    fi
184
    
185
    echo
186
        
187
    # list out metacity processes so overtime we can see if they accumulate, or if killed automatically 
188
    # when our process exits. If not automatic, should use epmetacity.pid to kill it when we are done.
189
    echo "Current metacity processes running (check for accumulation):"
190
    ps -ef | grep "metacity" | grep -v grep
191
    echo 
192
193
    echo "Triple check if any window managers are running (at least metacity should be!):"
194
    wmpss=$(ps -ef | egrep -i "xfwm|twm|metacity|beryl|fluxbox|compiz" | grep -v egrep)
195
    echo "Window Manager processes: $wmpss"
196
    echo
197
        
198
    # -Dtimeout=300000 "${ANT_OPTS}"
199
    $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
200
201
else
202
    # display message to user if os, ws and arch are invalid
203
    echo "The os, ws and arch values are either invalid or are an invalid combination"
204
    exit 1
88
fi
205
fi
89
206
(-)a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/runtestsmac.sh (+92 lines)
Added Link Here
1
#!/bin/sh
2
3
# by default, use the java executable on the path for outer and test jvm
4
#vmcmd=/shared/common/jdk-1.6.x86_64/jre/bin/java
5
vmcmd=java
6
7
#this value must be set when using rsh to execute this script, otherwise the script will execute from the user's home directory
8
dir=.
9
10
# operating system, windowing system and architecture variables
11
os=
12
ws=
13
arch=
14
15
# list of tests (targets) to execute in test.xml
16
tests=
17
18
# default value to determine if eclipse should be reinstalled between running of tests
19
installmode="clean"
20
21
# name of a property file to pass to Ant
22
properties=
23
24
# message printed to console
25
usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-noclean] [<test target>][-properties <path>]"
26
27
28
# proces command line arguments
29
while [ $# -gt 0 ]
30
do
31
	case "$1" in
32
		-dir) dir="$2"; shift;;
33
		-os) os="$2"; shift;;
34
		-ws) ws="$2"; shift;;
35
		-arch) arch="$2"; shift;;
36
		-noclean) installmode="noclean";;
37
		-properties) properties="-propertyfile $2";shift;;
38
		-vm) vmcmd="$2"; shift;;
39
		*) tests=$tests\ $1;;
40
	esac
41
	shift
42
done
43
44
echo "Specified test targets (if any): ${tests}"
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" = "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
80
    echo "list all environment variables in effect as tests start"
81
    printenv
82
83
# -Dtimeout=300000 "${ANT_OPTS}"
84
$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
85
86
# display message to user if os, ws and arch are invalid
87
else
88
	echo "The os, ws and arch values are either invalid or are an invalid combination"
89
90
exit 1
91
fi
92
(-)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