Skip to content

Commit

Permalink
[contribs] Transform 'example' module tests from Tycho to Maven testi…
Browse files Browse the repository at this point in the history
…ng modules.

see #616

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed May 7, 2017
1 parent 4a54eed commit 8e9b07d
Show file tree
Hide file tree
Showing 9 changed files with 292 additions and 413 deletions.
Expand Up @@ -16,7 +16,7 @@ agent AbstractAgent {

uses Logging

var i : int = 0;
protected var i : int = 0;

on Initialize {
info("1: Hello World in the super agent!")
Expand Down

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions contribs/io.sarl.examples/io.sarl.examples.tests/build.properties

This file was deleted.

57 changes: 18 additions & 39 deletions contribs/io.sarl.examples/io.sarl.examples.tests/pom.xml
Expand Up @@ -8,46 +8,25 @@
</parent>

<artifactId>io.sarl.examples.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>
<name>Example Tests</name>

<properties>
<tycho-surefire-plugin-os-jvm-flags></tycho-surefire-plugin-os-jvm-flags>
<tycho-surefire-plugin-max-memory>512M</tycho-surefire-plugin-max-memory>
</properties>

<profiles>
<profile>
<id>tycho-surefire-plugin-macosx-jvm-flags</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<properties>
<tycho-surefire-plugin-os-jvm-flags>-XstartOnFirstThread</tycho-surefire-plugin-os-jvm-flags>
</properties>
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<runOrder>alphabetical</runOrder>
<product>io.sarl.eclipse.io_sarl_lang_product</product>
<application>org.eclipse.ui.ide.workbench</application>
<argLine>-Xms256M -Xmx${tycho-surefire-plugin-max-memory} -XX:+CMSClassUnloadingEnabled -ea ${tycho-surefire-plugin-os-jvm-flags}</argLine>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<showEclipseLog>false</showEclipseLog>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>io.sarl</groupId>
<artifactId>io.sarl.tests.api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.sarl.maven</groupId>
<artifactId>io.sarl.maven.sdk</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.sarl.examples</groupId>
<artifactId>io.sarl.examples.plugin</artifactId>
<version>${sarl.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>

0 comments on commit 8e9b07d

Please sign in to comment.