mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Let the Tycho build specify the indexer timeout during tests
Running maven with mvn clean install -Dindexer.timeout=123 doesn't have any effect since tests to not inherit the VM args from Maven. But we can pass those VM args manually in the pom.xml Change-Id: I17b4aecdc422e3035e583b6d057c8487e7e41650 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
parent
8fd27dfb2b
commit
cf0271a5ed
2 changed files with 40 additions and 3 deletions
|
@ -15,6 +15,10 @@
|
|||
<artifactId>org.eclipse.cdt.core.tests</artifactId>
|
||||
<packaging>eclipse-test-plugin</packaging>
|
||||
|
||||
<properties>
|
||||
<extra.vmargs></extra.vmargs>
|
||||
</properties>
|
||||
|
||||
<!-- Uncommenting this is useful when the repo is built first then you want to run tests on this plugin only -->
|
||||
<!-- <repositories>
|
||||
<repository>
|
||||
|
@ -24,6 +28,20 @@
|
|||
</repository>
|
||||
</repositories>-->
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>indexer-timeout-set</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>indexer.timeout</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<extra.vmargs>-Dindexer.timeout=${indexer.timeout}</extra.vmargs>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
@ -33,7 +51,7 @@
|
|||
<configuration>
|
||||
<useUIHarness>false</useUIHarness>
|
||||
<!-- Core tests actually use eclipse.ui classes, see CProjectHelper -->
|
||||
<argLine>${tycho.testArgLine} ${base.ui.test.vmargs}</argLine>
|
||||
<argLine>${tycho.testArgLine} ${base.ui.test.vmargs} ${extra.vmargs}</argLine>
|
||||
<includes>
|
||||
<include>**/AutomatedIntegrationSuite.*</include>
|
||||
</includes>
|
||||
|
|
|
@ -14,7 +14,11 @@
|
|||
<version>5.5.0-SNAPSHOT</version>
|
||||
<artifactId>org.eclipse.cdt.ui.tests</artifactId>
|
||||
<packaging>eclipse-test-plugin</packaging>
|
||||
|
||||
|
||||
<properties>
|
||||
<extra.vmargs></extra.vmargs>
|
||||
</properties>
|
||||
|
||||
<!-- Uncommenting this is useful when the repo is built first then you want to run tests on this plugin only -->
|
||||
<!-- <repositories>
|
||||
<repository>
|
||||
|
@ -23,6 +27,21 @@
|
|||
<layout>p2</layout>
|
||||
</repository>
|
||||
</repositories>-->
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>indexer-timeout-set</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>indexer.timeout</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<extra.vmargs>-Dindexer.timeout=${indexer.timeout}</extra.vmargs>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
@ -31,7 +50,7 @@
|
|||
<version>${tycho-version}</version>
|
||||
<configuration>
|
||||
<useUIHarness>true</useUIHarness>
|
||||
<argLine>${tycho.testArgLine} ${base.ui.test.vmargs}</argLine>
|
||||
<argLine>${tycho.testArgLine} ${base.ui.test.vmargs} ${extra.vmargs}</argLine>
|
||||
<includes>
|
||||
<include>**/AutomatedSuite.*</include>
|
||||
</includes>
|
||||
|
|
Loading…
Add table
Reference in a new issue