Skip to content
Snippets Groups Projects
Commit 9296d25c authored by david_williams's avatar david_williams
Browse files

303564 - Run performance tests against the WTP

parent 528b4572
No related branches found
No related tags found
No related merge requests found
[Note to readers: please improve these instructions as you find things.]
The files in this folder are for installinging and runing unit tests and performance tests.
Your machine must have the following software installed and update
the "runtest" scripts to point to their installation:
ant
java
Your machine must have the following software installed and available to
be executed from the path:
cvs
unzip
......@@ -6,10 +6,10 @@ SETLOCAL
REM These "home" directories must be accurate for your machine.
set BUILD_HOME=c:\etest
set ANT_HOME=C:\apache-ant-1.7.1
set JAVA_HOME=C:\Program Files\IBM\SDP\jdk
set JAVA_6_HOME=C:\Program Files\IBM\SDP\jdk
set BUILD_HOME=D:\wtp
set ANT_HOME=D:\ant
set JAVA_HOME=D:\java
set JAVA_6_HOME=D:\java
REM standard for windows. Linux or other platforms would need to change these.
set BASEOS=win32
......@@ -80,14 +80,14 @@ goto hlp
:chk
echo Running standalonecheckout.xml
call ant ^
-Dprojectname=wtp-R3.2.1 ^
-DbuildType=R ^
-DbuildId=3.2.1 ^
-Dtimestamp=20100730021206 ^
-DmapVersionTag=R3_2_1 ^
-Dbuild.stream=R3.2.1 ^
-DbuildBranch=R3.2.1 ^
-f standalonecheckout.xml
-Dprojectname=wtp-M3.2.3 ^
-DbuildType=M ^
-DbuildId=3.2.3 ^
-Dtimestamp=20110121005429 ^
-DmapVersionTag=vM20110121005429 ^
-Dbuild.stream=R3.2.3 ^
-DbuildBranch=R3.2.3 ^
-f standalonecheckout.xml
goto exit
......@@ -97,24 +97,24 @@ goto exit
echo Running standaloneTest.xml
call ant ^
-Dprojectname=wtp-R3.2.1 ^
-DbuildType=R ^
-DbuildId=3.2.1 ^
-Dtimestamp=20100730021206 ^
-Dbuild.stream=R3.2.1 ^
-DbuildBranch=R3.2.1 ^
-Dprojectname=wtp-M3.2.3 ^
-DbuildType=M ^
-DbuildId=3.2.3 ^
-Dtimestamp=20110121005429 ^
-Dbuild.stream=R3.2.3 ^
-DbuildBranch=R3.2.3 ^
-f standaloneTest.xml
goto exit
:perf
echo Running standalonePerfTest.xml
call ant ^
-Dprojectname=wtp-R3.2.1 ^
-DbuildType=R ^
-DbuildId=3.2.1 ^
-Dtimestamp=20100730021206 ^
-Dbuild.stream=R3.2.1 ^
-DbuildBranch=R3.2.1 ^
-Dprojectname=wtp-M3.2.3 ^
-DbuildType=M ^
-DbuildId=3.2.3 ^
-Dtimestamp=20110121005429 ^
-Dbuild.stream=R3.2.3 ^
-DbuildBranch=R3.2.3 ^
-f standalonePerfTest.xml
......
......@@ -17,8 +17,9 @@
-->
<echo
message="LOCAL_BUILD_PROPERTIES_DIR: ${env.LOCAL_BUILD_PROPERTIES_DIR}"/>
<property
name="wtp.builder.home"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG_BUILDER}"/>
<property
file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/>
<fail
......@@ -45,7 +46,7 @@
value="${env.PROJECT_TESTS}/${projectname}"/>
<property
name="dependencyFileLocation"
value="/helios/maps/dependencies.properties"/>
value="helios/dependencies.properties"/>
<property
name="build.distribution"
value="wtp"/>
......@@ -53,12 +54,6 @@
<property
name="buildDirectory"
value="${env.PROJECT_PROJECTS}/${projectName}/workdir"/>
<!--
<property
name="dependency.properties"
value="${buildDirectory}/maps/${env.RELENG}/${dependencyFileLocation}"/>
-->
<property
name="dependency.properties"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/${dependencyFileLocation}"/>
......@@ -76,20 +71,28 @@
name="local.cache.dir"
value="${env.LOCAL_PREREQS_CACHE}"/>
<property
name="testRoot"
value="${build.home}/testRoot/"/>
<!-- don't delete automatically
<delete
dir="${testRoot}"
failonerror="false"/>
-->
name="wtp.id"
value="${buildType}-${buildId}-${timestamp}"/>
<property
name="wtp.dir.id"
value="${build.stream}/${wtp.id}"/>
<property
name="getprereq.wtp"
value="true"/>
<property
name="getprereq.wtptests"
value="true"/>
<property
name="test.installed"
value="true"/>
<property
name="doNotPublishEarly"
value="true"/>
<mkdir
dir="${env.RECOMMENDED_TMP_DIR}"/>
<mkdir
dir="${testRoot}"/>
<!-- no longer needed here, ... done in standalonecheckout
<antcall
target="getReleng"/>
-->
<condition
property="installed">
<available
......@@ -105,117 +108,11 @@
<antcall
target="run"/>
</target>
<target
name="getReleng">
<property
name="releng.tag"
value="v${buildType}${timestamp}"/>
<mkdir
dir="${env.PROJECT_BUILDERS}/${projectname}"/>
<cvs
cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools"
package="${env.RELENG}"
dest="${env.PROJECT_BUILDERS}/${projectname}"
command="export"
tag="${releng.tag}"
quiet="${env.CVS_QUIET}"
reallyquiet="${env.CVS_REALLY_QUIET}"/>
</target>
<target
name="getDependencies"
unless="installed">
name="run">
<ant
antfile="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG_BUILDER}/distribution/${build.distribution}.tests/testdependency.xml">
<property
name="base.install.dir"
value="${testRoot}"/>
<property
name="dependencyTargets"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG_BUILDER}/scripts/dependency/build.xml"/>
</ant>
<antcall
target="getAndInstallWTP">
<param
name="file"
value="wtp-sdk-${buildType}-${buildId}-${timestamp}.zip"/>
</antcall>
<antcall
target="getAndInstallWTP">
<param
name="file"
value="wtp-tests-${buildType}-${buildId}-${timestamp}.zip"/>
</antcall>
</target>
<target
name="getAndInstallWTP">
<available
file="${local.cache.dir}/${file}"
property="file.exists"/>
<antcall
target="getWTP"/>
<available
file="${local.cache.dir}/${file}"
property="file.exists"/>
<antcall
target="installWTP"/>
</target>
<target
name="getWTP">
<condition
property="file.url.1"
value="http://build.eclipse.org/webtools/committers/${projectname}/${timestamp}"
else="http://download.eclipse.org/webtools/downloads">
<isset
property="build.committers"/>
</condition>
<condition
property="file.url"
value="${file.url.1}/drops/${build.stream}/${buildType}-${buildId}-${timestamp}"
else="${file.url.1}/drops/${buildType}-${buildId}-${timestamp}">
<isset
property="build.stream"/>
</condition>
<antcall
target="getWTP2"/>
</target>
<target
name="getWTP2"
unless="file.exists">
<property
name="file.url"
value="http://download.eclipse.org/webtools/downloads/drops/${build.stream}/${buildType}-${buildId}-${timestamp}"/>
<get
dest="${local.cache.dir}/${file}"
src="${file.url}/${file}"
ignoreerrors="true"/>
</target>
<target
name="installWTP"
if="file.exists">
<unzip
src="${local.cache.dir}/${file}"
dest="${testRoot}${dropinsFolder}"
overwrite="true"/>
</target>
<target
name="run"
depends="getDependencies">
<mkdir
dir="${testRoot}/results/consolelogs"/>
<mkdir
dir="${testRoot}/results/xml"/>
<copy
todir="${testRoot}"
flatten="true"
overwrite="true">
<fileset
dir="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG_BUILDER}/distribution/${build.distribution}.tests/testScripts"/>
</copy>
<ant
antfile="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG_BUILDER}/distribution/${build.distribution}.tests/build.xml"
target="runTestEclipse">
antfile="${wtp.builder.home}/distribution/${build.distribution}.tests/build.xml">
<property
name="testRoot"
value="${testRoot}"/>
......@@ -223,9 +120,15 @@
<property
name="testTarget"
value="all"/>
<property
name="base.install.dir"
value="${testRoot}"/>
<property
name="dependencyTargets"
value="${wtp.builder.home}/scripts/dependency/build.xml"/>
</ant>
<copy
file="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG_BUILDER}/distribution/${build.distribution}.tests/templateFiles/index.php"
file="${wtp.builder.home}/distribution/${build.distribution}.tests/templateFiles/index.php"
todir="${testRoot}/results"
overwrite="true"/>
</target>
......@@ -233,7 +136,7 @@
name="clean"
if="clean">
<property
file="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG_BUILDER}/build.properties"/>
file="${wtp.builder.home}/build.properties"/>
<property
name="testRoot"
value="${build.home}/testRoot"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment