Author: lzoubek(a)redhat.com
Date: 2010-10-04 05:12:57 -0400 (Mon, 04 Oct 2010)
New Revision: 25443
Added:
trunk/tests/plugins/org.jboss.tools.tests.performance/
trunk/tests/plugins/org.jboss.tools.tests.performance/.classpath
trunk/tests/plugins/org.jboss.tools.tests.performance/.project
trunk/tests/plugins/org.jboss.tools.tests.performance/.settings/
trunk/tests/plugins/org.jboss.tools.tests.performance/.settings/org.eclipse.jdt.core.prefs
trunk/tests/plugins/org.jboss.tools.tests.performance/META-INF/
trunk/tests/plugins/org.jboss.tools.tests.performance/META-INF/MANIFEST.MF
trunk/tests/plugins/org.jboss.tools.tests.performance/bin/
trunk/tests/plugins/org.jboss.tools.tests.performance/build.properties
trunk/tests/plugins/org.jboss.tools.tests.performance/pom.xml
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/get-deps.xml
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-perf-prepare.properties
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-perf-prepare.xml
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-performance.properties
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-performance.xml
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/libs/
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/libs/org.apache.derby_1.0.0.zip
trunk/tests/plugins/org.jboss.tools.tests.performance/src/
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/jboss/
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/jboss/tools/
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/jboss/tools/tests/
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/jboss/tools/tests/performance/
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/jboss/tools/tests/performance/Activator.java
Log:
initial commit of performance tests plugin
Added: trunk/tests/plugins/org.jboss.tools.tests.performance/.classpath
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.performance/.classpath
(rev 0)
+++ trunk/tests/plugins/org.jboss.tools.tests.performance/.classpath 2010-10-04 09:12:57
UTC (rev 25443)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/tests/plugins/org.jboss.tools.tests.performance/.project
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.performance/.project
(rev 0)
+++ trunk/tests/plugins/org.jboss.tools.tests.performance/.project 2010-10-04 09:12:57 UTC
(rev 25443)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.tests.performance</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/tests/plugins/org.jboss.tools.tests.performance/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/tests/plugins/org.jboss.tools.tests.performance/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/tests/plugins/org.jboss.tools.tests.performance/.settings/org.eclipse.jdt.core.prefs 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,8 @@
+#Wed Sep 22 12:25:42 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: trunk/tests/plugins/org.jboss.tools.tests.performance/META-INF/MANIFEST.MF
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.performance/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/tests/plugins/org.jboss.tools.tests.performance/META-INF/MANIFEST.MF 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,10 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Performance tests
+Bundle-SymbolicName: org.jboss.tools.tests.performance
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.tests.performance.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Added: trunk/tests/plugins/org.jboss.tools.tests.performance/build.properties
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.performance/build.properties
(rev 0)
+++ trunk/tests/plugins/org.jboss.tools.tests.performance/build.properties 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: trunk/tests/plugins/org.jboss.tools.tests.performance/pom.xml
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.performance/pom.xml
(rev 0)
+++ trunk/tests/plugins/org.jboss.tools.tests.performance/pom.xml 2010-10-04 09:12:57 UTC
(rev 25443)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.tests.plugins</groupId>
+ <artifactId>org.jboss.tools.tests.performance</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
Added: trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/get-deps.xml
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/get-deps.xml
(rev 0)
+++ trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/get-deps.xml 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,229 @@
+<?xml version="1.0"?>
+<project default="get-deps-all">
+ <property environment="env"/>
+ <property file="jbt-perf-prepare.properties" />
+ <!--
+ <property name="mirror"
value="http://carroll.aset.psu.edu/pub/eclipse" />
+ -->
+ <property name="mirror"
value="http://ftp.sh.cvut.cz/MIRRORS/eclipse" />
+ <property name="destdir" value="." />
+ <property name="workdir" value="work" />
+ <property name="libdir" value="${jbt.dependencies.folder}" />
+ <property name="tmpdir" value="tmp" />
+ <property name="get.zip.jboss.tools"
value="http://download.jboss.org/jbosstools/builds/staging/jbosstool...
/>
+ <condition property="ext.win" value=".zip" else="">
+ <os family="windows" />
+ </condition>
+ <condition property="ext.linux" value=".tar.gz"
else="">
+ <os family="unix" />
+ </condition>
+ <condition property="os.win" value="win32" else="">
+ <os family="windows" />
+ </condition>
+ <condition property="os.linux" value="linux-gtk"
else="">
+ <os family="unix" />
+ </condition>
+ <condition property="arch.x86_64" value="-x86_64"
else="">
+ <os arch="amd64" />
+ </condition>
+
+ <target name="get-deps-all" depends="install-jbt">
+ <antcall target="prepare-platform" />
+ </target>
+ <target name="prepare-platform">
+ <groovy>
+ def ant = new AntBuilder()
+ println 'Unzipping eclipse platform'
+ ant.mkdir(dir:properties['workdir'])
+ def file =
properties['libdir']+'/'+properties['zip.eclipse.platform']
+ if (file.endsWith('.tar.gz')) {
+ ant.delete( file:file+'.tar')
+ ant.gunzip(src:file,dest:file+'.tar')
+ ant.untar(src:file+'.tar',dest:properties['workdir'])
+ ant.delete( file:file+'.tar')
+ }
+ else if (file.endsWith('.zip')) {
+ ant.unzip( src:file,dest:properties['workdir'],overwrite:'true' )
+ }
+ println 'Unzipping Automated tests'
+ ant.unzip(
src:properties['libdir']+'/'+properties['zip.eclipse.automated'],dest:properties['workdir'],overwrite:'true'
)
+ </groovy>
+ </target>
+ <target name="get-dependencies">
+ <property name ="zip.eclipse.platform"
value="eclipse-platform-3.6-${os.win}${os.linux}${arch.x86_64}${ext.linux}${ext.win}"
/>
+ <property name="zip.eclipse.j2ee"
value="eclipse-jee-helios-${os.win}${os.linux}${arch.x86_64}${ext.linux}${ext.win}"
/>
+
+
+ <property name="get.zip.eclipse.platform"
value="${mirror}/eclipse/downloads/drops/R-3.6-201006080911/${zip.eclipse.platform}"
/>
+ <property name="md5.eclipse.platform"
value="http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201...
/>
+ <property name="zip.test.framework"
value="eclipse-test-framework-3.6.zip" />
+ <property name="get.zip.test.framework"
value="${mirror}/eclipse/downloads/drops/R-3.6-201006080911/${zip.test.framework}"
/>
+ <property name="md5.test.framework"
value="http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201...
/>
+ <property name="zip.eclipse.automated"
value="eclipse-Automated-Tests-3.6.zip" />
+ <property name="get.zip.eclipse.automated"
value="${mirror}/eclipse/downloads/drops/R-3.6-201006080911/${zip.eclipse.automated}"
/>
+ <property name="md5.eclipse.automated"
value="http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201...
/>
+ <property name="get.zip.eclipse.j2ee"
value="${mirror}/technology/epp/downloads/release/helios/R/${zip.eclipse.j2ee}"
/>
+ <property name="md5.eclipse.j2ee"
value="${get.zip.eclipse.j2ee}.md5" />
+ <groovy>
+ def zip =
properties['get.zip.jboss.tools'].replaceAll('.*\\/','')
+ properties['zip.jboss.tools']=zip
+ </groovy>
+
+ <property name="get.zip.derby.plugin"
value="http://apache.thelorne.com//db/derby/db-derby-10.6.1.0/derby_...
/>
+ <property name="zip.derby.plugin"
value="derby_core_plugin_10.6.1.zip" />
+ <property name="md5.derby.plugin"
value="http://www.apache.org/dist/db/derby/db-derby-10.6.1.0/derby_c...
/>
+
+
+ <mkdir dir="${destdir}" />
+ <mkdir dir="${tmpdir}/" />
+ <mkdir dir="${libdir}/" />
+ <get-and-checksum pattern="{0} *{1}" dir="${libdir}"
md5="${md5.test.framework}" dst="${zip.test.framework}"
src="${get.zip.test.framework}" />
+ <get-and-checksum pattern="{0} *{1}" dir="${libdir}"
md5="${md5.eclipse.platform}" dst="${zip.eclipse.platform}"
src="${get.zip.eclipse.platform}" />
+ <get-and-checksum pattern="{0} *{1}" dir="${libdir}"
md5="${md5.eclipse.automated}" dst="${zip.eclipse.automated}"
src="${get.zip.eclipse.automated}" />
+ <get-and-checksum pattern="{0} {1}" dir="${libdir}"
md5="${md5.eclipse.j2ee}" dst="${zip.eclipse.j2ee}"
src="${get.zip.eclipse.j2ee}" />
+ <get dest="${libdir}/${zip.jboss.tools}" skipexisting="true"
src="${get.zip.jboss.tools}"/>
+ <!--
+ <get-and-checksum pattern="MD5 ({1}) = {0}" dir="${libdir}"
md5="${md5.derby.plugin}" dst="${zip.derby.plugin}"
src="${get.zip.derby.plugin}"/>
+ <move file="${libdir}/${zip.derby.plugin}"
tofile="${libdir}/org.apache.derby_1.0.0.zip" />
+ -->
+ </target>
+
+ <target name="cleanup">
+ <delete includeEmptyDirs="true">
+ <fileset dir="${tmpdir}"/>
+ </delete>
+ </target>
+ <target name="install-jbt"
depends="get-dependencies,cleanup">
+ <sequential>
+ <groovy>
+
+
+ println 'Unzipping update site'
+ ant.mkdir(dir:properties['tmpdir']+'/upd-site')
+ ant.unzip(
+ src:properties['libdir']+'/'+properties['zip.jboss.tools'],
+ dest:properties['tmpdir']+'/upd-site'
+ )
+ println 'Searching for features and detecting version'
+ def version = ""
+ def features = ""
+ def featuresDir = new
File(properties['tmpdir']+'/upd-site/features')
+ if (!featuresDir.isDirectory() || !featuresDir.exists()) {
+ ant.fail(message:'Update site unzip error,
'+properties['tmpdir']+'/upd-site/features does not exist')
+ }
+ featuresDir.eachFile({
+ match = it.getName() =~ '(org.jboss.tools[^_]+)_.*v(.*)\\.jar'
+ if (match.matches()) {
+ version = match[0][2]
+ features += ","+match[0][1]+'.feature.group'
+ }
+ })
+ features = features.substring(1)
+ def
output=properties['destdir']+'/jboss-tools-'+version+'.zip'
+ println 'Detetected JBoss Tools version '+version
+ majorVersion = '0.0.0'
+
+ // jbosstools-3.2.0.M2.aggregate-Update-2010-09-08_17-17-54-H243a.zip
+ match = properties['get.zip.jboss.tools'] =~
'.*/jbosstools-(\\d\\.\\d\\.\\d).*'
+ if (match.matches()) majorVersion = match[0][1]
+
+ println 'Setting up properties'
+ properties['runtimeArchive']='../../jboss-tools-'+version+'.zip'
+ buildID = version.split('-')
+ properties['perf.buildID'] = majorVersion+'_'+buildID[0] +
buildID[1]+'_'+buildID[0] + buildID[1]
+ if (properties['os.linux']!="") {
+ properties['osgi.os']='linux'
+ properties['osgi.ws']='gtk'
+ }
+ if (properties['os.win']!="") {
+ properties['osgi.os']='win32'
+ properties['osgi.ws']='win32'
+ }
+ if (properties['arch.x86_64']!="") {
+ properties['osgi.arch']='x86_64'
+ } else {
+ properties['osgi.arch']='x86'
+ }
+ reconcilerPropKey =
'org.eclipse.equinox.p2.reconciler.tests.35.platform.archive.'+properties['osgi.os']
+ properties[reconcilerPropKey] =
'../../'+properties['zip.eclipse.platform']
+ println 'Property: osgi.os='+properties['osgi.os']
+ println 'Property: osgi.ws='+properties['osgi.ws']
+ println 'Property: osgi.arch='+properties['osgi.arch']
+ println 'Property: perf.buildID='+properties['perf.buildID']
+ println 'Property: runtimeArchive='+properties['runtimeArchive']
+ println 'Property:
'+reconcilerPropKey+'='+properties[reconcilerPropKey]
+ if (new File(output).exists()) {
+ println 'Result file '+output+' exists, skipping installation'
+ return
+ }
+ println 'Unzipping base eclipse'
+ def file =
properties['libdir']+'/'+properties['zip.eclipse.j2ee']
+ if (file.endsWith('.tar.gz')) {
+ ant.delete( file:file+'.tar')
+ ant.gunzip(src:file,dest:file+'.tar')
+ ant.untar(src:file+'.tar',dest:properties['tmpdir'])
+ ant.delete( file:file+'.tar')
+ }
+ else if (file.endsWith('.zip')) {
+ ant.unzip( src:file,dest:properties['tmpdir'],overwrite:'true' )
+ }
+ ant.chmod(perm:'ugo+rwx',
file:properties['tmpdir']+'/eclipse/eclipse')
+
+ println 'Installing all JBoss Tools'
+ def
eclipseSites="http://download.eclipse.org/tptp/updates,http://downlo...
+ def
thirdpartySites=eclipseSites+",http://download.eclipse.org/birt/upda...
+ def eclipse = new
File(properties['tmpdir']+'/eclipse').getAbsolutePath()
+ def repo = new
File(properties['tmpdir']+'/upd-site').getAbsolutePath()
+ def cmd = eclipse+'/eclipse'
+ cmd+=" -application org.eclipse.equinox.p2.director"
+ cmd+=" -nosplash"
+ cmd+=" --launcher.suppressErrors"
+ cmd+=" -consoleLog"
+ cmd+=" -p2.os "+properties['osgi.os']
+ cmd+=" -p2.ws "+properties['osgi.ws']
+ cmd+=" -p2.arch "+properties['osgi.arch']
+ cmd+=" -profile epp.package.jee"
+ cmd+=" -destination " + eclipse
+ cmd+=" -bundlepool " + eclipse
+ cmd+=" -installIUs "+features
+ cmd+=" -repository
file:"+repo+",file:"+eclipse+","+thirdpartySites
+ proc = cmd.execute (null, new File(eclipse))
+ proc.consumeProcessOutput (System.out, System.err)
+ proc.waitFor()
+ if (proc.exitValue()!=0) {
+ ant.fail(message:'Unable to install JBoss Tools, exit value
:'+proc.exitValue())
+ }
+ println 'Building results'
+ ant.delete(file:output)
+ ant.zip(destfile:output,basedir:properties['tmpdir'],includes:'eclipse/**')
+ </groovy>
+ </sequential>
+ </target>
+
+
+ <taskdef name="groovy"
classname="org.codehaus.groovy.ant.Groovy">
+ <classpath>
+ <fileset dir="${env.GROOVY_HOME}"
includes="embeddable/groovy-all-*.jar,lib/ivy*.jar"/>
+ </classpath>
+ </taskdef>
+
+ <macrodef name="get-and-checksum">
+ <attribute name="src"/>
+ <attribute name="dst"/>
+ <attribute name="md5"/>
+ <attribute name="dir"/>
+ <attribute name="pattern" />
+ <sequential>
+ <get dest="@{dir}/@{dst}" skipexisting="true"
src="@{src}" />
+ <get dest="@{dir}/(a){dst}.md5" skipexisting="true"
src="@{md5}" />
+ <local name="checksum.matches.fail"/>
+ <echo>MD5 Checksum ...</echo>
+ <condition property="checksum.matches.fail">
+ <checksum pattern="@{pattern}" file="@{dir}/@{dst}"
algorithm="md5" fileext=".md5"/>
+ </condition>
+ <fail unless="checksum.matches.fail">Checksum error, try deleting
@{dir}/@{dst}</fail>
+ <echo>MD5 Checksum OK</echo>
+ </sequential>
+ </macrodef>
+
+</project>
Added:
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-perf-prepare.properties
===================================================================
---
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-perf-prepare.properties
(rev 0)
+++
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-perf-prepare.properties 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,5 @@
+jbt.dependencies.folder=libs
+jbt.host.desc=ram=4G;CPUs=2
+workdir=workdir
+tests=all
+jbt.perf.db.loc=${basedir}/db
\ No newline at end of file
Added: trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-perf-prepare.xml
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-perf-prepare.xml
(rev 0)
+++
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-perf-prepare.xml 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="Automated JBoss Tools Performance Testing"
default="all" basedir=".">
+ <import file="get-deps.xml"/>
+ <property name="tested.build" value=""/>
+ <target name="init">
+ <property file="jbt-perf-prepare.properties"/>
+ <condition property="clean" value="noclean"
else="clean">
+ <and>
+ <isset property="noclean"/>
+ <istrue value="${noclean}"/>
+ </and>
+ </condition>
+ <mkdir dir="${jbt.perf.db.loc}"/>
+
+ </target>
+
+ <target name="prepare" depends="init,get-deps-all">
+
+ <property name="perf.baseBuildID"
value=""/><!--3.2_201009010244_201009010244-->
+ <!-- buildID is set by get-deps-all target
+ <property name="perf.buildID"
value="3.2_201009081606_201009081606"/>
+ -->
+ <property name="perf.memory" value="-Xms256M -Xmx512M
-XX:MaxPermSize=256M"/>
+ <property name="perf.db"
value="-Declipse.perf.dbloc=${jbt.perf.db.loc};create=true;dbname=perfdb;dbuser=guest;dbpasswd=guest"/>
+ <property name="perf.config"
value="-Declipse.perf.config=build=${perf.buildID};desc=${jbt.host.desc};os=${osgi.os};arch=${osgi.arch};jvm=sun"/>
+ <condition property="perf.baseBuild"
value="-Declipse.perf.assertAgainst=build=${perf.baseBuildID};host=localhost;jvm=sun"
else="">
+ <and>
+ <isset property="perf.baseBuildID"/>
+ <not>
+ <equals arg1="${perf.baseBuildID}" arg2=""
trim="true"/>
+ </not>
+ </and>
+ </condition>
+
+ <copy todir="workdir/eclipse-testing" verbose="true"
flatten="true">
+ <resources>
+ <file file="jbt-performance.xml"/>
+ <file file="jbt-performance.properties"/>
+ </resources>
+ </copy>
+ <!--
+ <mkdir dir="workdir"/>
+ <unzip
src="${jbt.dependencies.folder}/eclipse-Automated-Tests-3.6.zip"
dest="workdir"/>
+ <unzip
src="${jbt.dependencies.folder}/eclipse-platform-3.6-win32.zip"
dest="workdir"/>
+
+ <gunzip
src="${jbt.dependencies.folder}/eclipse-platform-3.6-linux-gtk.tar.gz"
dest="${jbt.dependencies.folder}"/>
+
+ <untar
src="${jbt.dependencies.folder}/eclipse-platform-3.6-linux-gtk.tar"
dest="workdir"/>
+ -->
+ </target>
+
+ <target name="run" depends="prepare">
+ <java
jar="workdir/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar"
fork="true" dir="workdir/eclipse-testing">
+ <jvmarg value="-Dosgi.os=${osgi.os} -Dosgi.ws=${osgi.ws}
-Dosgi.arch=${osgi.arch}"/>
+ <arg line="-data ../workspace"/>
+ <arg line="-application org.eclipse.ant.core.antRunner"/>
+ <arg line="-file jbt-performance.xml"/>
+ <arg line="${tests}"/>
+ <arg line="-Dos=${osgi.os} -Dws=${osgi.ws}
-Darch=${osgi.arch}"/>
+ <arg line="-D${clean}=true"/>
+ <arg line="-logger org.apache.tools.ant.DefaultLogger"/>
+ <arg line="-Dvmargs='${perf.memory} ${perf.db} ${perf.config}
${perf.baseBuild}'"/>
+ <arg line="-DruntimeArchive=${runtimeArchive}"/>
+ <arg line="-Dtest.target=performance"/>
+ </java>
+ </target>
+
+ <target name="saveDB" depends="init">
+ <tstamp>
+ <format property="tstamp"
pattern="yyyyMMdd-hhmm"/>
+ </tstamp>
+ <zip destfile="perfDB-${tstamp}.zip"
basedir="${jbt.perf.db.loc}"/>
+ </target>
+
+ <target name="all" depends="run, saveDB" />
+</project>
\ No newline at end of file
Added:
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-performance.properties
===================================================================
---
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-performance.properties
(rev 0)
+++
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-performance.properties 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,13 @@
+
+#overrides for equinoxp2tests.properties
+#org.eclipse.equinox.p2.reconciler.tests.35.platform.archive.linux=../../eclipse-platform-3.6-linux-gtk.tar.gz
+org.eclipse.equinox.p2.reconciler.tests.35.platform.archive.linux=../../eclipse-platform-3.6-linux-x86_64-gtk.tar.gz
+org.eclipse.equinox.p2.reconciler.tests.35.platform.archive.win32=../../eclipse-platform-3.6-win32.zip
+
+
+J2SE-5.0=/opt/sun-jdk-1.5.0.22/
+J2SE-6.0=/opt/sun-jdk-1.6.0.20/
+#J2SE-5.0=/space/java/sdk/jdk1.5.0_22/
+#J2SE-6.0=/space/java/sdk/jdk1.6.0_21/
+#J2SE-5.0=c\:\\java\\jdk1.5.0_15
+#J2SE-6.0=c\:\\java\\jdk1.6.0_21
\ No newline at end of file
Added: trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-performance.xml
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-performance.xml
(rev 0)
+++
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/jbt-performance.xml 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="Automated JBoss Tools Performance Testing"
default="all" basedir=".">
+ <property file="jbt-performance.properties"/>
+ <property name="extraVMargs"
value="-Dusage_reporting_enabled=false" />
+ <import file="test.xml"/>
+
+ <target name="pre-init">
+ <property name="tests" value="all"/>
+ </target>
+
+ <target name="unzipderby" if="derby">
+ <unzip src="../../libs/org.apache.derby_1.0.0.zip"
dest="${install}/eclipse/dropins/eclipse/plugins"/>
+ </target>
+
+
+ <target name="setupPlatform"/>
+
+ <target name="installTestPlugins">
+ <antcall target="setupPlatform" />
+ <echo>-installIU ${testPlugin} +</echo>
+ <exec executable="${eclipse-home}/eclipse" failonerror="false"
dir="${eclipse-home}" timeout="900000"
output="${basedir}/director1.log" resultproperty="directorcode">
+ <arg line="-vm ${java.home}/bin/java" />
+ <arg line="-application org.eclipse.equinox.p2.director" />
+ <arg line="-nosplash" />
+ <arg line="--launcher.suppressErrors" />
+ <arg line="-consoleLog" />
+ <!--
+ <arg line="-flavor tooling" />
+ -->
+ <arg line="-installIUs
${testPlugin},org.eclipse.test,org.eclipse.ant.optional.junit,org.eclipse.test.performance,org.eclipse.test.performance.win32,org.easymock"
/>
+ <arg line="-p2.os ${os}" />
+ <arg line="-p2.ws ${ws}" />
+ <arg line="-p2.arch ${arch}" />
+ <arg line="-profile epp.package.jee" />
+ <arg line="-roaming" />
+ <!--
+ <arg line="-profile SDKProfile" />
+ -->
+ <arg line="-repository file:${repoLocation}" />
+ <arg line="-destination ${eclipse-home}" />
+ <arg line="-bundlepool ${eclipse-home}" />
+ </exec>
+ <antcall target="configureTeamTest" />
+ <antcall target="unzipderby" />
+ </target>
+
+ <target name="setupRepo" unless="repoexists">
+ <mkdir dir="${repoLocation}" />
+ <unzip src="${repoZip}" dest="${repoLocation}" />
+ </target>
+
+ <!--setup for zip archives-->
+ <target name="setup-zip" description="Reinstall the test Eclipse
installation if specified by user">
+ <delete dir="${install}" />
+ <mkdir dir="${install}" />
+ <unzip src="${runtimeArchive}" dest="${install}" />
+ <chmod perm="ugo+rwx" file="${install}/eclipse/eclipse" />
+ <antcall target="installExtraPlugins" />
+ <antcall target="installTestPlugins" />
+ </target>
+
+ <target name="configureDeltaPack" if="pdebuild">
+ <property name="deltapackArchive"
value="eclipse-${buildId}-delta-pack.zip" />
+ <property name="installDeltapack" value="${install}/deltapack"
/>
+ <mkdir dir="${installDeltapack}" />
+ <unzip src="${deltapackArchive}" dest="${installDeltapack}"
/>
+ </target>
+
+
+
+
+ <target name="all">
+ <!-- noperf tests
+ <antcall target="jdtcompilertool" />
+ <antcall target="jdtcompilerapt" />
+ -->
+<!--
+ <antcall target="jdttext" />
+ <antcall target="relEng" />
+ <antcall target="pdeui" />
+-->
+
+
+ <antcall target="ant" />
+ <antcall target="compare" />
+ <antcall target="osgi" />
+ <antcall target="antui" />
+ <antcall target="swt" />
+ <antcall target="ua" />
+ <antcall target="ui" />
+ <antcall target="coreresources" />
+
+
+
+ <!--
+ <antcall target="coreruntime" />
+
+
+ <antcall target="coreexpressions" />
+ <antcall target="update" />
+ <antcall target="teamcore" />
+ <!-f- invalid memory args...
+ <antcall target="jdtcoreperf" />
+ -f->
+ <antcall target="jdtcorebuilder" />
+ <antcall target="jdtcorecompiler" />
+ <!-f-
+ <antcall target="uiperformance" />
+ -f->
+ <antcall target="uieditors" />
+ <antcall target="uinavigator" />
+ <antcall target="uiworkbenchtexteditor" />
+ <antcall target="uircp" />
+ <antcall target="uiviews" />
+ <!-f-
+ <antcall target="jdtdebug" />
+ <antcall target="jdtui" />
+ <antcall target="jdtuirefactoring" />
+ -f->
+ <antcall target="ltkuirefactoringtests" />
+ <antcall target="ltkcorerefactoringtests" />
+ <antcall target="text" />
+ <antcall target="jface" />
+ <antcall target="jfacedatabinding" />
+ <antcall target="filebuffers" />
+
+ <antcall target="teamcvs" />
+ <antcall target="coretestsnet" />
+ <antcall target="jdtapt" />
+ <!-f-
+ <antcall target="pdebuild" />
+ -f->
+ <antcall target="jdtaptpluggable" />
+
+ <antcall target="uiforms" />
+ <antcall target="pdeapitooling" />
+ <antcall target="equinoxsecurity" />
+ <antcall target="equinoxp2" />
+ <antcall target="equinoxp2ui" />
+ <antcall target="equinoxp2discovery" />
+ <antcall target="search" />
+ <antcall target="pdeds" />
+ <antcall target="jdtcoremodel" />
+ <antcall target="uadoc" />
+ <antcall target="debug" />
+ -->
+ </target>
+
+ <target name="wtpperf">
+ </target>
+
+ <target name="ws">
+ <runTests testPlugin="org.eclipse.jst.ws.tests.performance" />
+ </target>
+
+
+</project>
\ No newline at end of file
Added:
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/libs/org.apache.derby_1.0.0.zip
===================================================================
(Binary files differ)
Property changes on:
trunk/tests/plugins/org.jboss.tools.tests.performance/scripts/libs/org.apache.derby_1.0.0.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/jboss/tools/tests/performance/Activator.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/jboss/tools/tests/performance/Activator.java
(rev 0)
+++
trunk/tests/plugins/org.jboss.tools.tests.performance/src/org/jboss/tools/tests/performance/Activator.java 2010-10-04
09:12:57 UTC (rev 25443)
@@ -0,0 +1,50 @@
+package org.jboss.tools.tests.performance;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.tests.performance";
//$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}