Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUwe Stieber2012-05-01 04:53:46 -0400
committerUwe Stieber2012-05-01 04:55:15 -0400
commit76032e95648072812f9371cf712d1930ba434561 (patch)
tree42011783c0953cf8ec1f36f7bc9137f153d4fc2d /tests
parent08154909bc80541754b7fd02df3af323a6cc1ecc (diff)
downloadorg.eclipse.tcf-76032e95648072812f9371cf712d1930ba434561.tar.gz
org.eclipse.tcf-76032e95648072812f9371cf712d1930ba434561.tar.xz
org.eclipse.tcf-76032e95648072812f9371cf712d1930ba434561.zip
Maven: Added TCF Debugger test cases
Diffstat (limited to 'tests')
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/.gitignore1
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/.project11
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/pom.xml165
-rw-r--r--tests/pom-tests.xml62
4 files changed, 239 insertions, 0 deletions
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/.gitignore b/tests/plugins/org.eclipse.tcf.debug.test/.gitignore
new file mode 100644
index 000000000..ea8c4bf7f
--- /dev/null
+++ b/tests/plugins/org.eclipse.tcf.debug.test/.gitignore
@@ -0,0 +1 @@
+/target
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/.project b/tests/plugins/org.eclipse.tcf.debug.test/.project
index 114675c19..4a5293f95 100644
--- a/tests/plugins/org.eclipse.tcf.debug.test/.project
+++ b/tests/plugins/org.eclipse.tcf.debug.test/.project
@@ -25,4 +25,15 @@
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
+ <filteredResources>
+ <filter>
+ <id>1333956869540</id>
+ <name></name>
+ <type>10</type>
+ <matcher>
+ <id>org.eclipse.ui.ide.multiFilter</id>
+ <arguments>1.0-name-matches-false-false-target</arguments>
+ </matcher>
+ </filter>
+ </filteredResources>
</projectDescription>
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/pom.xml b/tests/plugins/org.eclipse.tcf.debug.test/pom.xml
new file mode 100644
index 000000000..4f14b9086
--- /dev/null
+++ b/tests/plugins/org.eclipse.tcf.debug.test/pom.xml
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.eclipse.tcf</groupId>
+ <artifactId>tcf-tests.maven-master</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../../pom-tests.xml</relativePath>
+ </parent>
+
+ <version>1.0.0.qualifier</version>
+ <artifactId>org.eclipse.tcf.debug.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+
+ <properties>
+ <jacoco.append>true</jacoco.append>
+
+ <sdk-version>3.8.0</sdk-version>
+ <tcf-version>1.0.0</te-version>
+
+ <ui.test.vmargs>-Xmx512m -XX:MaxPermSize=256m</ui.test.vmargs>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <includes>
+ <include>**/BreakpointsTests.*</include>
+ <include>**/CacheTests.*</include>
+ <include>**/QueryTests.*</include>
+ <include>**/TransactionTests.*</include>
+ </includes>
+ <useUIHarness>true</useUIHarness>
+ <useUIThread>true</useUIThread>
+ <product>org.eclipse.platform.ide</product>
+ <argLine>${tycho.testArgLine} ${ui.test.vmargs}</argLine>
+ <application>org.eclipse.ui.ide.workbench</application>
+ <dependencies>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.sdk.feature.group</artifactId>
+ <version>${sdk-version}</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.tcf.feature.feature.group</artifactId>
+ <version>${tcf-version}</version>
+ </dependency>
+ </dependencies>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.gmaven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>
+ project.properties['qualified.bundle.version'] = project.properties['unqualifiedVersion'].replace('qualifier', project.properties['buildQualifier'])
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-report</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <typedef resource="org/jacoco/ant/antlib.xml"/>
+ <echo message="Coverage report"/>
+ <report>
+ <executiondata>
+ <fileset dir="${project.build.directory}" includes="jacoco.exec"/>
+ </executiondata>
+ <structure name="Code Coverage - TCF">
+ <group name="org.eclipse.tcf">
+ <classfiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf/target/classes"/>
+ </classfiles>
+ <sourcefiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf/src"/>
+ </sourcefiles>
+ </group>
+
+ <group name="org.eclipse.tcf.core">
+ <classfiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.core/target/classes"/>
+ </classfiles>
+ <sourcefiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.core/src"/>
+ </sourcefiles>
+ </group>
+
+ <group name="org.eclipse.tcf.debug">
+ <classfiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.debug/target/classes"/>
+ </classfiles>
+ <sourcefiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.debug/src"/>
+ </sourcefiles>
+ </group>
+
+ <group name="org.eclipse.tcf.debug.ui">
+ <classfiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.debug.ui/target/classes"/>
+ </classfiles>
+ <sourcefiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.debug.ui/src"/>
+ </sourcefiles>
+ </group>
+
+ <group name="org.eclipse.tcf.cdt.ui">
+ <classfiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.cdt.ui/target/classes"/>
+ </classfiles>
+ <sourcefiles>
+ <fileset dir="${basedir}/../../../plugins/org.eclipse.tcf.cdt.ui/src"/>
+ </sourcefiles>
+ </group>
+
+ </structure>
+
+ <html destdir="${project.build.directory}/coverage"
+ footer="Code Coverage Report for TCF ${qualified.bundle.version}"
+ locale="de"/>
+ <csv destfile="${project.build.directory}/coverage/coverage.csv"/>
+ <xml destfile="${project.build.directory}/coverage/coverage.xml"/>
+ </report>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jacoco</groupId>
+ <artifactId>org.jacoco.ant</artifactId>
+ <version>${jacoco-version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
+ </plugins>
+ </build>
+</project>
diff --git a/tests/pom-tests.xml b/tests/pom-tests.xml
new file mode 100644
index 000000000..8da8588a0
--- /dev/null
+++ b/tests/pom-tests.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.eclipse.tcf</groupId>
+ <artifactId>org.eclipse.tcf.maven-build</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../admin/pom-build.xml</relativePath>
+ </parent>
+
+ <groupId>org.eclipse.tcf</groupId>
+ <artifactId>tcf-tests.maven-master</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>TCF Unit Tests, Master</name>
+
+ <modules>
+ <!-- List the modules where we need the class files to create the report -->
+ <module>plugins/org.eclipse.tcf</module>
+ <module>plugins/org.eclipse.tcf.core</module>
+ <module>plugins/org.eclipse.tcf.debug</module>
+ <module>plugins/org.eclipse.tcf.debug.ui</module>
+ <module>plugins/org.eclipse.tcf.cdt.ui</module>
+
+ <module>features/org.eclipse.tcf.feature</module>
+ <module>features/org.eclipse.tcf.sdk.feature</module>
+ <module>features/org.eclipse.tcf.cdt.feature</module>
+ <module>features/org.eclipse.tcf.cdt.sdk.feature</module>
+
+ <!-- The test module executing the tests -->
+ <module>tests/plugins/org.eclipse.tcf.debug.tests</module>
+ </modules>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <configuration>
+ <includes>
+ <include>org.eclipse.tcf*</include>
+ </includes>
+ <excludes>
+ <exclude>org.eclipse.tcf.debug.tests*</exclude>
+ <exclude>org.eclipse.tcf.te.*</exclude>
+ </excludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>

Back to the top