Author: mickael_istria
Date: 2012-05-14 05:00:25 -0400 (Mon, 14 May 2012)
New Revision: 40981
Added:
workspace/mistria/install-tests/.project
workspace/mistria/install-tests/features/
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/.project
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/build.properties
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/feature.xml
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/pom.xml
workspace/mistria/install-tests/plugins/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.classpath
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.project
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.settings/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.settings/org.eclipse.jdt.core.prefs
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/META-INF/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/META-INF/MANIFEST.MF
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/build.properties
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/pom.xml
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java
workspace/mistria/install-tests/pom.xml
workspace/mistria/install-tests/repository/
workspace/mistria/install-tests/repository/.project
workspace/mistria/install-tests/repository/category.xml
workspace/mistria/install-tests/repository/pom.xml
workspace/mistria/install-tests/scripts/
workspace/mistria/install-tests/scripts/assembly.xml
workspace/mistria/install-tests/scripts/pom.xml
workspace/mistria/install-tests/scripts/sites
workspace/mistria/install-tests/scripts/testInstall.sh
Log:
TEst installation and updates
Added: workspace/mistria/install-tests/.project
===================================================================
--- workspace/mistria/install-tests/.project (rev 0)
+++ workspace/mistria/install-tests/.project 2012-05-14 09:00:25 UTC (rev 40981)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>install-tests</name>
+</projectDescription>
Property changes on: workspace/mistria/install-tests/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/.project
===================================================================
---
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/.project
(rev 0)
+++
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/.project 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.qa.install.tests.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Property changes on:
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/build.properties
===================================================================
---
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/build.properties
(rev 0)
+++
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/build.properties 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1 @@
+bin.includes = feature.xml
Property changes on:
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/feature.xml
===================================================================
---
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/feature.xml
(rev 0)
+++
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/feature.xml 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.qa.install.tests.feature"
+ label="Stuff to test installation and updates with p2"
+ version="1.0.0.qualifier"
+ provider-name="JBoss, by Red Hat">
+
+ <description
url="http://www.example.com/description">
+ [Enter Feature Description here.]
+ </description>
+
+ <copyright
url="http://www.example.com/copyright">
+ [Enter Copyright Description here.]
+ </copyright>
+
+ <license
url="http://www.example.com/license">
+ [Enter License Description here.]
+ </license>
+
+ <plugin
+ id="org.jboss.tools.qa.install.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <requires>
+ <import feature="org.eclipse.swtbot.eclipse"/>
+ <import feature="org.eclipse.swtbot.eclipse.test.junit4"/>
+ </requires>
+
+</feature>
Property changes on:
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/feature.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/pom.xml
===================================================================
---
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/pom.xml
(rev 0)
+++
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/pom.xml 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>org.jboss.tools.qa.install.tests.feature</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-feature</packaging>
+
+ <parent>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../..</relativePath>
+ </parent>
+
+</project>
+
\ No newline at end of file
Property changes on:
workspace/mistria/install-tests/features/org.jboss.tools.qa.install.tests.feature/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.classpath
===================================================================
--- workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.classpath
(rev 0)
+++
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.classpath 2012-05-14
09:00:25 UTC (rev 40981)
@@ -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>
Property changes on:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.project
===================================================================
--- workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.project
(rev 0)
+++
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.project 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.qa.install.tests</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>
Property changes on:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.settings/org.eclipse.jdt.core.prefs 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,7 @@
+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
Property changes on:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/META-INF/MANIFEST.MF
===================================================================
---
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/META-INF/MANIFEST.MF
(rev 0)
+++
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/META-INF/MANIFEST.MF 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Tests for Installation and Updates
+Bundle-SymbolicName: org.jboss.tools.qa.install.tests
+Bundle-Version: 1.0.0.qualifier
+Bundle-Vendor: JBoss, by Red Hat
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.junit;bundle-version="4.0.0",
+ org.eclipse.swtbot.eclipse.core;bundle-version="2.0.5",
+ org.eclipse.swtbot.eclipse.finder;bundle-version="2.0.5",
+ org.eclipse.swtbot.swt.finder;bundle-version="2.0.5",
+ org.eclipse.equinox.p2.ui.sdk;bundle-version="1.0.0",
+ org.eclipse.ui;bundle-version="3.7.0",
+ org.eclipse.swtbot.junit4_x;bundle-version="2.0.5"
Property changes on:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/META-INF/MANIFEST.MF
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/build.properties
===================================================================
---
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/build.properties
(rev 0)
+++
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/build.properties 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/pom.xml
===================================================================
--- workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/pom.xml
(rev 0)
+++
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/pom.xml 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>org.jboss.tools.qa.install.tests</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+
+ <parent>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../..</relativePath>
+ </parent>
+
+</project>
+
\ No newline at end of file
Property changes on:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java
===================================================================
---
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java
(rev 0)
+++
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java 2012-05-14
09:00:25 UTC (rev 40981)
@@ -0,0 +1,113 @@
+package org.jboss.tools.qa.install.tests;
+
+import junit.framework.Assert;
+
+import org.eclipse.swtbot.eclipse.finder.SWTBotEclipseTestCase;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
+import org.eclipse.swtbot.swt.finder.waits.ICondition;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+(a)RunWith(SWTBotJunit4ClassRunner.class)
+public class InstallTest extends SWTBotEclipseTestCase {
+
+ @Test
+ public void testInstall() {
+ String site = System.getProperty("UPDATE_SITE");
+ Assert.assertNotNull("No site specified, set UPDATE_SITE system property
first", site);
+
+ this.bot.menu("Help").menu("Install New Software...").click();
+ this.bot.shell("Install").bot().button("Add...").click();
+ this.bot.shell("Add Repository").activate().setFocus();
+ this.bot.text(1).setText(site);
+ this.bot.button("OK").click();
+ this.bot.shell("Install").activate().setFocus();
+ this.bot.waitUntil(new ICondition() {
+
+ @Override
+ public boolean test() throws Exception {
+ return bot.tree().getAllItems().length > 2;
+ }
+
+ @Override
+ public void init(SWTBot bot) {
+ }
+
+ @Override
+ public String getFailureMessage() {
+ return "Could not see categories in tree";
+ }
+ });
+ this.bot.button("Select All").click();
+ this.bot.button("Next >").click();
+ this.bot.waitUntil(new ICondition() {
+ @Override
+ public boolean test() throws Exception {
+ return bot.button("Cancel").isEnabled();
+ }
+
+ @Override
+ public void init(SWTBot bot) {
+ }
+
+ @Override
+ public String getFailureMessage() {
+ return "Blocking while calculating deps";
+ }
+ }, 10 * 60000); // 5 minutes timeout
+ this.bot.button("Next >").click();
+ this.bot.radio(0).click();
+ this.bot.button("Finish").click();
+ // wait for Security pop-up, or install finished.
+ final SWTBotShell shell = this.bot.shell("Installing Software");
+ this.bot.waitWhile(new ICondition() {
+
+ @Override
+ public boolean test() throws Exception {
+ return shell.isActive();
+ }
+
+ @Override
+ public void init(SWTBot bot) {
+ }
+
+ @Override
+ public String getFailureMessage() {
+ return null;
+ }
+ }, 20 * 60000); // 20 minutes_tino
+ if (this.bot.activeShell().getText().equals("Security Warning")) {
+ this.bot.button("OK").click();
+ System.err.println("OK clicked");
+ this.bot.waitUntil(new ICondition() {
+ @Override
+ public boolean test() throws Exception {
+ try {
+ boolean stillOpen = bot.shell("Installing Software").isOpen();
+ System.err.println("still open? " + stillOpen);
+ return !stillOpen;
+ } catch (WidgetNotFoundException ex) {
+ System.err.println("no shell");
+ // Shell already closed
+ return true;
+ }
+ }
+
+ @Override
+ public void init(SWTBot bot) {
+ }
+
+ @Override
+ public String getFailureMessage() {
+ return null;
+ }
+ }, 15 * 60000); // 15 more minutes
+ }
+ this.bot.shell("Software Updates").bot().button("Not Now").click();
// Don't restart in test, test executor will do it.
+ }
+
+
+}
Property changes on:
workspace/mistria/install-tests/plugins/org.jboss.tools.qa.install.tests/src/org/jboss/tools/qa/install/tests/InstallTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/pom.xml
===================================================================
--- workspace/mistria/install-tests/pom.xml (rev 0)
+++ workspace/mistria/install-tests/pom.xml 2012-05-14 09:00:25 UTC (rev 40981)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (C) 2011, Chris Aniszczyk <caniszczyk(a)gmail.com>
+
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/epl-v10.html
+-->
+
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <prerequisites>
+ <maven>3.0</maven>
+ </prerequisites>
+
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+
+ <properties>
+ <tychoVersion>0.15.0-SNAPSHOT</tychoVersion>
+ <tychoExtrasVersion>0.14.0</tychoExtrasVersion>
+ </properties>
+
+ <modules>
+ <module>plugins/org.jboss.tools.qa.install.tests</module>
+ <module>features/org.jboss.tools.qa.install.tests.feature</module>
+ <module>repository</module>
+ <module>scripts</module>
+ </modules>
+
+ <repositories>
+ <repository>
+ <id>indigo</id>
+ <layout>p2</layout>
+ <
url>http://download.eclipse.org/releases/indigo</url>
+ </repository>
+ <repository>
+ <id>swtbot</id>
+ <layout>p2</layout>
+
<
url>http://download.eclipse.org/technology/swtbot/helios/dev-build/upd...
+ </repository>
+ </repositories>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tychoVersion}</version>
+ <configuration>
+ <resolver>p2</resolver>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Property changes on: workspace/mistria/install-tests/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/repository/.project
===================================================================
--- workspace/mistria/install-tests/repository/.project (rev 0)
+++ workspace/mistria/install-tests/repository/.project 2012-05-14 09:00:25 UTC (rev
40981)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>install-tests-repository</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
Property changes on: workspace/mistria/install-tests/repository/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/repository/category.xml
===================================================================
--- workspace/mistria/install-tests/repository/category.xml (rev
0)
+++ workspace/mistria/install-tests/repository/category.xml 2012-05-14 09:00:25 UTC (rev
40981)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+ <feature
url="features/org.jboss.tools.qa.install.tests.feature_1.0.0.qualifier.jar"
id="org.jboss.tools.qa.install.tests.feature"
version="1.0.0.qualifier">
+ <category name="Installation Tests"/>
+ </feature>
+ <category-def name="Installation Tests" label="Installation
Tests"/>
+</site>
Property changes on: workspace/mistria/install-tests/repository/category.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/repository/pom.xml
===================================================================
--- workspace/mistria/install-tests/repository/pom.xml (rev 0)
+++ workspace/mistria/install-tests/repository/pom.xml 2012-05-14 09:00:25 UTC (rev
40981)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>repository</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-repository</packaging>
+
+ <parent>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+
+</project>
+
\ No newline at end of file
Property changes on: workspace/mistria/install-tests/repository/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/scripts/assembly.xml
===================================================================
--- workspace/mistria/install-tests/scripts/assembly.xml (rev 0)
+++ workspace/mistria/install-tests/scripts/assembly.xml 2012-05-14 09:00:25 UTC (rev
40981)
@@ -0,0 +1,24 @@
+<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembl...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-p...
http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>delivery</id>
+ <formats>
+ <format>zip</format>
+ <format>dir</format>
+ </formats>
+ <baseDirectory>/</baseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.basedir}</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>*.sh</include>
+ </includes>
+ <fileMode>777</fileMode>
+ </fileSet>
+ </fileSets>
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/repository</outputDirectory>
+ <unpack>true</unpack>
+ </dependencySet>
+ </dependencySets>
+</assembly>
\ No newline at end of file
Property changes on: workspace/mistria/install-tests/scripts/assembly.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/scripts/pom.xml
===================================================================
--- workspace/mistria/install-tests/scripts/pom.xml (rev 0)
+++ workspace/mistria/install-tests/scripts/pom.xml 2012-05-14 09:00:25 UTC (rev 40981)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>scripts</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <parent>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.3</version>
+ <executions>
+ <execution>
+ <id>make-assembly</id> <!-- this is used for inheritance merges
-->
+ <phase>package</phase> <!-- bind to the packaging phase -->
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptors>
+ <descriptor>assembly.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.tools.install-tests</groupId>
+ <artifactId>repository</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <type>zip</type>
+ </dependency>
+ </dependencies>
+
+</project>
+
\ No newline at end of file
Property changes on: workspace/mistria/install-tests/scripts/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/mistria/install-tests/scripts/sites
===================================================================
--- workspace/mistria/install-tests/scripts/sites (rev 0)
+++ workspace/mistria/install-tests/scripts/sites 2012-05-14 09:00:25 UTC (rev 40981)
@@ -0,0 +1,2 @@
+http://download.jboss.org/jbosstools/updates/JBossTools-3.3.0.Beta2.core/
+http://download.jboss.org/jbosstools/updates/nightly/core/trunk/
Added: workspace/mistria/install-tests/scripts/testInstall.sh
===================================================================
--- workspace/mistria/install-tests/scripts/testInstall.sh (rev
0)
+++ workspace/mistria/install-tests/scripts/testInstall.sh 2012-05-14 09:00:25 UTC (rev
40981)
@@ -0,0 +1,63 @@
+#!/bin/bash
+
+eclipse_home=$1
+site_list=$2
+
+usage() {
+ echo "Script to test installation"
+ echo "usage: <dir>/testInstalls.sh <eclipse_home>
<file_containing_list_of_sites>"
+ echo " <eclipse_home>: an eclipse installation will be performed on"
+ echo " <file_containing_list_of_sites> a file containing a list of
p2-friendly URLs of repositories"
+ echo " separated by spaces or line breaks
+}
+
+if [ ! -d "$eclipse_home" -o ! -f "$eclipse_home/eclipse" ]; then
+ usage
+ exit 2
+fi
+if [ ! -f "$site_list" ]; then
+ usage
+ exit 2
+fi
+
+echo "$(dirname $0)"
+if [ ! -d "$(dirname $0)/repository" ]; then
+ echo "Missing companion repository"
+ echo "Cannot perform tests"
+ exit 3
+fi
+
+echo "Preparing tests, installing framework"
+#install test framework
+pushd $eclipse_home
+java -jar plugins/org.eclipse.equinox.launcher_*.jar \
+ -application org.eclipse.equinox.p2.director \
+ -repository
http://download.eclipse.org/technology/swtbot/helios/dev-build/update-sit...
\
+ -installIU org.jboss.tools.qa.install.tests.feature.feature.group \
+ -consoleLog
+
+for site in $(cat "$site_list"); do
+ echo "Installing content from " $site
+ report=TEST-install-$(date +%Y%m%d%H%M).xml
+ #Invoke tests
+ output=$(java \
+ -DUPDATE_SITE=$site \
+ -Dusage_reporting_enabled=false \
+ -jar plugins/org.eclipse.equinox.launcher_*.jar \
+ -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication \
+ -testApplication org.eclipse.ui.ide.workbench \
+ -product org.eclipse.sdk.ide \
+ -data workspace/ \
+ formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,$report
\
+ formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter \
+ -testPluginName org.jboss.tools.qa.install.tests \
+ -className org.jboss.tools.qa.install.tests.InstallTest \
+ -consoleLog -debug)
+ if [[ ! "$output" == *"Failures: 0, Errors: 0"* ]]; then
+ echo "Error while installing from " $site ". Read $report for details
and see screenshots/"
+ popd
+ exit 1
+ fi
+done
+popd
+exit 0
\ No newline at end of file
Property changes on: workspace/mistria/install-tests/scripts/testInstall.sh
___________________________________________________________________
Added: svn:executable
+ *