Simple RCPTT test for opening a single trace and integrate to build
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 2 Dec 2015 21:04:29 +0000 (16:04 -0500)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 18 Feb 2016 00:06:53 +0000 (19:06 -0500)
This commit act as a foundation for RCP testing via the RCP Testing
Tools[1].

More information can be found in "README.md".

[1] https://www.eclipse.org/rcptt/

Change-Id: Ia59dccc9d1eda38c84c88b89fc26d5da052d3007
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61810
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
13 files changed:
pom.xml
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/.project [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/README.md [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/TraceCompassAUT.launch/TraceCompass.launch [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/empty_workspace.ctx [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/environment.ctx [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/reset_workbench.ctx [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/pom.xml [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/rcptt.properties [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/test_suites/open_trace_suite.suite [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/tests/open_trace.test [new file with mode: 0644]
rcp/org.eclipse.tracecompass.rcp.rcptt.tests/validation/no_warning_errors_aggressive.verification [new file with mode: 0644]
rcp/pom.xml

diff --git a/pom.xml b/pom.xml
index 02eae8b1ed040fd343686bc2ba046b02696a2e67..5ede88e6a237d483f42726c9b8ca6ba5efb220a0 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
   <modelVersion>4.0.0</modelVersion>
 
   <prerequisites>
-    <maven>3.3</maven>
+    <maven>${required-maven-version}</maven>
   </prerequisites>
 
   <groupId>org.eclipse.tracecompass</groupId>
@@ -38,6 +38,7 @@
   </licenses>
 
   <properties>
+    <required-maven-version>3.3</required-maven-version>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <testArgLine></testArgLine>
@@ -48,6 +49,7 @@
     <target-platform>tracecompass-e4.5</target-platform>
     <help-docs-eclipserun-repo>http://download.eclipse.org/eclipse/updates/4.5</help-docs-eclipserun-repo>
 
+    <rcptt-version>2.1.0-SNAPSHOT</rcptt-version>
     <!-- Disable GTK3 because it's not quite usable yet and it can make the tests hang (bug in IcedTea http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1736) -->
     <SWT_GTK3>0</SWT_GTK3>
 
       <name>JBoss Public Repository Group</name>
       <url>http://repository.jboss.org/nexus/content/groups/public/</url>
     </pluginRepository>
+    <pluginRepository>
+      <id>rcptt-snapshots</id>
+      <name>RCPTT Maven Snapshots repository</name>
+      <url>https://repo.eclipse.org/content/repositories/rcptt-snapshots/</url>
+    </pluginRepository>
+    <pluginRepository>
+      <id>rcptt-releases</id>
+      <name>RCPTT Maven repository</name>
+      <url>https://repo.eclipse.org/content/repositories/rcptt-releases/</url>
+    </pluginRepository>
   </pluginRepositories>
 
   <profiles>
             <configuration>
               <rules>
                 <requireMavenVersion>
-                  <version>3.3</version>
+                  <version>${required-maven-version}</version>
                 </requireMavenVersion>
                 <requireJavaVersion>
                   <version>1.8</version>
           <version>1.8</version>
         </plugin>
 
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-dependency-plugin</artifactId>
+          <version>2.10</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.rcptt</groupId>
+          <artifactId>rcptt-maven-plugin</artifactId>
+          <version>${rcptt-version}</version>
+        </plugin>
+
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-site-plugin</artifactId>
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/.project b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/.project
new file mode 100644 (file)
index 0000000..51f72db
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*******************************************************************************
+* Copyright (c) 2015 Efficios Inc.
+* 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
+*******************************************************************************/
+-->
+<projectDescription>
+       <name>org.eclipse.tracecompass.rcp.rcptt.tests</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.rcptt.core.builder.q7Builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.rcptt.core.rcpttnature</nature>
+       </natures>
+       <filteredResources>
+               <filter>
+                       <id>1449617592986</id>
+                       <name>target</name>
+                       <type>9</type>
+                       <matcher>
+                               <id>org.eclipse.ui.ide.multiFilter</id>
+                               <arguments>1.0-name-matches-false-false-dependency</arguments>
+                       </matcher>
+               </filter>
+               <filter>
+                       <id>1449617592989</id>
+                       <name>target</name>
+                       <type>9</type>
+                       <matcher>
+                               <id>org.eclipse.ui.ide.multiFilter</id>
+                               <arguments>1.0-name-matches-false-false-aut</arguments>
+                       </matcher>
+               </filter>
+               <filter>
+                       <id>1449617592992</id>
+                       <name>target</name>
+                       <type>6</type>
+                       <matcher>
+                               <id>org.eclipse.ui.ide.multiFilter</id>
+                               <arguments>1.0-name-matches-false-false-*</arguments>
+                       </matcher>
+               </filter>
+       </filteredResources>
+</projectDescription>
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/README.md b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/README.md
new file mode 100644 (file)
index 0000000..aae5684
--- /dev/null
@@ -0,0 +1,35 @@
+# tracecompass-rcptt-test
+Blackbox UI test using RCPTT for Trace Compass
+
+## How to run ?
+
+You can run this project either via maven or via the RCP Testing Tool.
+
+### Local maven run
+
+```
+mvn clean install
+```
+
+Results will be located under ./target/results.
+
+By default maven will use the RCP built in ../org.eclipse.tracecompass.rcp.product
+Therefore, if you only want to execute the tests in this folder and not the rest of the build,
+you need to make sure that the product has been built first (mvn clean install in the product folder).
+
+Test traces are being made available in a path defined as the "dataPath" system property. The test traces are being downloaded as part of the maven build and extracted in target/dependency/tracecompass-test-traces-ctf-jar
+
+### Via RCPTT
+
+In order to have the RCP and test traces, it is better to run with Maven first.
+Once this is done, the project (this directory) can be imported in RCPTT.
+
+To run the tests, open test_suite/open_trace_suite then click Execute at the top-right corner
+
+A predefined launch is provided to ease with launching the tests.
+This launch sets up the AUT path and dataPath (test traces).
+
+If you are not using the default paths make sure to pass the correct arguments to
+the AUT in the run configurations.
+
+![](http://i.imgur.com/J4ohsPE.png)
\ No newline at end of file
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/TraceCompassAUT.launch/TraceCompass.launch b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/TraceCompassAUT.launch/TraceCompass.launch
new file mode 100644 (file)
index 0000000..2dcc26a
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.rcptt.launching.ext">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.tracecompass.rcp.ui.application"/>
+<booleanAttribute key="askclear" value="true"/>
+<stringAttribute key="aut-location" value="${workspace_loc:org.eclipse.tracecompass.rcp.rcptt.tests/target/aut/trace-compass}"/>
+<stringAttribute key="aut-target-platform" value="AUT TraceCompass (Target Platform)"/>
+<booleanAttribute key="aut-target-updatable" value="true"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<booleanAttribute key="clearws" value="false"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="com.xored.launching.common.attrArch" value="x86_64"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/TraceCompass"/>
+<stringAttribute key="location" value="${workspace_loc}/../aut-TraceCompass"/>
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_APPEND_TO_FILE" value="true"/>
+<stringAttribute key="org.eclipse.debug.ui.ATTR_CAPTURE_IN_FILE" value="${workspace_loc:org.eclipse.tracecompass.rcp.rcptt.tests/target/aut/trace-compass/console.log}"/>
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON" value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch x86_64 -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms512m -Xmx1024m -Dosgi.requiredJavaVersion=1.8 -XX:MaxPermSize=128m -DdataPath=${workspace_loc:/org.eclipse.tracecompass.rcp.rcptt.tests/target/dependency/tracecompass-test-traces-ctf-jar}"/>
+<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.eclipse.tracecompass.rcp.rcptt.tests/target/aut/trace-compass}"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.tracecompass.rcp.branding.product"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="true"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/empty_workspace.ctx b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/empty_workspace.ctx
new file mode 100644 (file)
index 0000000..0ee8e29
--- /dev/null
@@ -0,0 +1,33 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Context-Type: org.eclipse.rcptt.ctx.workspace
+Element-Name: empty_workspace
+Element-Type: context
+Element-Version: 2.0
+Id: _hJ3OQI7-EeWIk8i4YSH9dg
+Runtime-Version: 2.1.0.201511240016
+Save-Time: 12/2/15 3:06 PM
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+/*******************************************************************************
+* Copyright (c) 2015 Efficios Inc.
+* 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
+*******************************************************************************/
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf
+Content-Type: q7/binary
+Entry-Name: .q7.content
+
+UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAACVj8kKwjAYhO99ipC7
+iRtYS5eDCFYQEQ/VU5E0tkGz0P6a+vamQos38TYM38wwYdLKO3ryuhFaRXhCxhhxxXQhVBnhB1xHPk5i
+L9R1STi7C9NwUjMDQBi0xOr61pgL40HWq5VWwFtArRTBUDvtat2QagLnR7gCMAGl1lqiZUlcOT3t0h75
+sTXEe6aLfzjqODpwGKmLdDSXBl75ly2KCOfVdrY/pIvRmmfpzRfz83GzLEocewiFrPuggLrf9N/jsfcG
+UEsHCF/Js6jBAAAAUwEAAFBLAQIUABQACAgIAAAAIQBfybOowQAAAFMBAAAIAAkAAAAAAAAAAAAAAAAA
+AAAuY29udGVudFVUBQABAAAAAFBLBQYAAAAAAQABAD8AAAAAAQAAAAA=
+------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf--
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/environment.ctx b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/environment.ctx
new file mode 100644 (file)
index 0000000..0946142
--- /dev/null
@@ -0,0 +1,29 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Context-Type: org.eclipse.rcptt.ctx.ecl
+Element-Name: environment
+Element-Type: context
+Element-Version: 2.0
+Id: _P_dMII_MEeWoZ73dvYVv8A
+Runtime-Version: 2.1.0.201511240016
+Save-Time: 12/2/15 3:06 PM
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+/*******************************************************************************
+* Copyright (c) 2015 Efficios Inc.
+* 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
+*******************************************************************************/
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
+Content-Type: text/ecl
+Entry-Name: .ecl.context
+
+// Get and set the data path for the running test
+global [val data_path [substitute-variables "${system_property:dataPath}"]]
+------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998--
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/reset_workbench.ctx b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/context/reset_workbench.ctx
new file mode 100644 (file)
index 0000000..c0d7f8a
--- /dev/null
@@ -0,0 +1,34 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Context-Type: org.eclipse.rcptt.ctx.workbench
+Element-Name: reset_workbench
+Element-Type: context
+Element-Version: 2.0
+Id: _AAhGYI_QEeWoZ73dvYVv8A
+Runtime-Version: 2.1.0.201511240016
+Save-Time: 12/2/15 3:07 PM
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+/*******************************************************************************
+* Copyright (c) 2015 Efficios Inc.
+* 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
+*******************************************************************************/
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf
+Content-Type: q7/binary
+Entry-Name: .q7.content
+
+UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAAB1jrtuwzAMRfd8hcC9
+Uh9DAyNOYBRF4aFDl6bpYiQyYwuVREGiH59fpYCDLF3Jc+69m93srBgxJkO+hAd5DwK9ptb4roSBz3dr
+2G1XG4qdRG1NSCijDswyafTHaKjYU/w5Zad/Ic84s5idKa6Jj5fE3OFTke8l9MyhUGqaJkmukzlXfb3X
+C/J/zdVc3hfzD1GOWrRqAbNPEUH4o8MSIibkZlomgjBtCU1V9W+Huvl4xT19Pz+14+FzXFcgQl4dULMZ
+sc7c7Rpr/DAzkU2S3VkORt7AoLarX1BLBwjGZSHP1wAAAEoBAABQSwECFAAUAAgICAAAACEAxmUhz9cA
+AABKAQAACAAJAAAAAAAAAAAAAAAAAAAALmNvbnRlbnRVVAUAAQAAAABQSwUGAAAAAAEAAQA/AAAAFgEA
+AAAA
+------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf--
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/pom.xml b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/pom.xml
new file mode 100644 (file)
index 0000000..8870355
--- /dev/null
@@ -0,0 +1,108 @@
+<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>
+  <!--
+  /*******************************************************************************
+  * Copyright (c) 2015 Efficios Inc.
+  * 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
+  *******************************************************************************/
+  -->
+
+  <artifactId>org.eclipse.tracecompass.rcp.tests</artifactId>
+  <name>Trace Compass RCP Product Tests</name>
+
+  <parent>
+    <artifactId>org.eclipse.tracecompass.rcp-parent</artifactId>
+    <groupId>org.eclipse.tracecompass</groupId>
+    <version>2.0.0-SNAPSHOT</version>
+  </parent>
+
+  <packaging>rcpttTest</packaging>
+
+  <properties>
+    <dataPath>${project.build.directory}/dependency/tracecompass-test-traces-ctf-jar</dataPath>
+    <!-- Overridden by profile on Windows -->
+    <aut.extension>tar.gz</aut.extension>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.eclipse.tracecompass.testtraces</groupId>
+      <artifactId>tracecompass-test-traces-ctf</artifactId>
+      <version>1.2.0</version>
+    </dependency>
+  </dependencies>
+  <repositories>
+    <repository>
+      <id>trace-compass-test-traces</id>
+      <name>Trace Compass Test Traces</name>
+      <url>http://archive.eclipse.org/tracecompass/tracecompass-test-traces/maven</url>
+    </repository>
+  </repositories>
+
+  <profiles>
+    <profile>
+      <id>windows-rcptt</id>
+      <activation>
+        <os>
+          <family>Windows</family>
+        </os>
+      </activation>
+      <properties>
+        <aut.extension>zip</aut.extension>
+      </properties>
+    </profile>
+  </profiles>
+
+  <build>
+    <plugins>
+      <!--  This copies and extracts the test traces jar to the target/dependency folder -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>unpack-dependencies</id>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>unpack-dependencies</goal>
+            </goals>
+            <configuration>
+              <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
+              <stripVersion>true</stripVersion>
+              <stripClassifier>true</stripClassifier>
+              <excludeTransitive>true</excludeTransitive>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.eclipse.rcptt</groupId>
+        <artifactId>rcptt-maven-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <aut>
+            <groupId>org.eclipse.tracecompass</groupId>
+            <artifactId>org.eclipse.tracecompass.rcp.product</artifactId>
+            <extension>${aut.extension}</extension>
+
+            <vmArgs>
+              <vmArg>-Xmx1024m</vmArg>
+              <vmArg>-DdataPath=${dataPath}</vmArg>
+            </vmArgs>
+          </aut>
+          <runner>
+            <version>${rcptt-version}</version>
+          </runner>
+          <suites>
+            <suite>open_trace_suite</suite>
+          </suites>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/rcptt.properties b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/rcptt.properties
new file mode 100644 (file)
index 0000000..19d9115
--- /dev/null
@@ -0,0 +1,21 @@
+--- RCPTT project settings ---
+Format-Version: 1.0
+Element-Name: Project Settings
+Element-Type: projectMetadata
+Element-Version: 2.0
+Id: _jwDcII74EeWIk8i4YSH9dg
+Runtime-Version: 2.1.0.201511240016
+Save-Time: 12/2/15 3:06 PM
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+/*******************************************************************************
+* Copyright (c) 2015 Efficios Inc.
+* 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
+*******************************************************************************/
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/test_suites/open_trace_suite.suite b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/test_suites/open_trace_suite.suite
new file mode 100644 (file)
index 0000000..804cca2
--- /dev/null
@@ -0,0 +1,30 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Element-Name: open_trace_suite
+Element-Type: testsuite
+Element-Version: 2.0
+Id: _3WKjAJIMEeWlJ7F5c_Pz9A
+Runtime-Version: 2.1.0.201512080016
+Save-Time: 12/8/15 5:50 PM
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+/*******************************************************************************
+* Copyright (c) 2015 Efficios Inc.
+* 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
+*******************************************************************************/
+
+Superset of open trace test suites.
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
+Content-Type: text/testcase
+Entry-Name: testcase-items
+
+__FHjoJ39EeWj1rJFbZoWLw        // kind: 'test' name: 'open_trace' path: '../tests/open_trace.test'
+
+------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/tests/open_trace.test b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/tests/open_trace.test
new file mode 100644 (file)
index 0000000..e53f41e
--- /dev/null
@@ -0,0 +1,45 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Contexts: _hJ3OQI7-EeWIk8i4YSH9dg,_P_dMII_MEeWoZ73dvYVv8A,_AAhGYI_QEeWoZ73dvYVv8A
+Element-Name: open_trace
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference: 
+Id: __FHjoJ39EeWj1rJFbZoWLw
+Runtime-Version: 2.1.0.201512080016
+Save-Time: 12/8/15 5:50 PM
+Testcase-Type: ecl
+Verifications: _gJhZUI8DEeWIk8i4YSH9dg
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+/*******************************************************************************
+* Copyright (c) 2015 Efficios Inc.
+* 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
+*******************************************************************************/
+
+Open a trace containig a dynamic kernel trace.
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-view "Project Explorer" | get-tree | select "Tracing/Traces [0]" | get-menu "Import..." | click
+set-dialog-result Folder $data_path
+with [get-window "Trace Import"] {
+    get-button "Browse..." | click
+    with [get-tree] {
+        get-item "tracecompass-test-traces-ctf-jar/kernel_vm" | check
+        select "tracecompass-test-traces-ctf-jar/kernel_vm"
+    }
+    get-button Finish | click
+}
+get-view "Project Explorer" | get-tree | get-item "Tracing/Traces \\[1\\]" | get-property "getItemCount()" | equals 1 
+    | verify-true
+get-view "Project Explorer" | get-tree | select "Tracing/Traces [1]/kernel_vm" | double-click
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
diff --git a/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/validation/no_warning_errors_aggressive.verification b/rcp/org.eclipse.tracecompass.rcp.rcptt.tests/validation/no_warning_errors_aggressive.verification
new file mode 100644 (file)
index 0000000..7bd2ae6
--- /dev/null
@@ -0,0 +1,32 @@
+--- RCPTT verification ---
+Format-Version: 1.0
+Element-Name: no_warning_errors_aggressive
+Element-Type: verification
+Element-Version: 2.0
+Id: _gJhZUI8DEeWIk8i4YSH9dg
+Runtime-Version: 2.1.0.201511240016
+Save-Time: 12/2/15 3:11 PM
+Verification-Type: org.eclipse.rcptt.verifications.log
+
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
+Content-Type: text/plain
+Entry-Name: .description
+
+/*******************************************************************************
+* Copyright (c) 2015 Efficios Inc.
+* 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
+*******************************************************************************/
+
+Use (?s) flag (a.k.a DOTALL) to catch line terminator 
+------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
+------=_.errorlog.verification-3ceb5b18-8b7c-3939-9191-416e6e78eb57
+Content-Type: text/errorlog-verification
+Entry-Name: .errorlog.verification
+
+DENIED:
+6 0 .* Message:(?s).*
+
+------=_.errorlog.verification-3ceb5b18-8b7c-3939-9191-416e6e78eb57--
index 864291c65dadb03a8dea36c0375d41a0faef8bbf..893a283d6fab48c69637b4e1b34862ef7acab31d 100644 (file)
@@ -39,6 +39,7 @@
       </activation>
       <modules>
         <module>org.eclipse.tracecompass.rcp.product</module>
+        <module>org.eclipse.tracecompass.rcp.rcptt.tests</module>
       </modules>
     </profile>
   </profiles>
This page took 0.032831 seconds and 5 git commands to generate.