mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-07 17:15:25 +02:00
Bug 378834 Allow build to override where gdb is for testing.
This commit is contained in:
parent
7cac530d3f
commit
131ca051c0
2 changed files with 19 additions and 3 deletions
|
@ -24,6 +24,15 @@
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>-->
|
</repositories>-->
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>production</id>
|
||||||
|
<properties>
|
||||||
|
<gdbPathOption>-Dcdt.tests.dsf.gdb.path=/opt/public/download-staging.priv/tools/cdt/gdb</gdbPathOption>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -32,7 +41,7 @@
|
||||||
<version>${tycho-version}</version>
|
<version>${tycho-version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<useUIHarness>true</useUIHarness>
|
<useUIHarness>true</useUIHarness>
|
||||||
<argLine>-Xms256m -Xmx512m -XX:MaxPermSize=256M</argLine>
|
<argLine>-Xms256m -Xmx512m -XX:MaxPermSize=256M ${gdbPathOption}</argLine>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/AutomatedSuite.*</include>
|
<include>**/AutomatedSuite.*</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
|
|
@ -351,8 +351,15 @@ public class BaseTestCase {
|
||||||
public static void setGdbProgramNamesLaunchAttributes(String version) {
|
public static void setGdbProgramNamesLaunchAttributes(String version) {
|
||||||
// See bugzilla 303811 for why we have to append ".exe" on Windows
|
// See bugzilla 303811 for why we have to append ".exe" on Windows
|
||||||
boolean isWindows = Platform.getOS().equals(Platform.OS_WIN32);
|
boolean isWindows = Platform.getOS().equals(Platform.OS_WIN32);
|
||||||
setGlobalLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUG_NAME, "gdb." + version + (isWindows ? ".exe" : ""));
|
String gdbPath = System.getProperty("cdt.tests.dsf.gdb.path");
|
||||||
setGlobalLaunchAttribute(ATTR_DEBUG_SERVER_NAME, "gdbserver." + version + (isWindows ? ".exe" : ""));
|
String debugName = "gdb." + version + (isWindows ? ".exe" : "");
|
||||||
|
String debugServerName = "gdbserver." + version + (isWindows ? ".exe" : "");
|
||||||
|
if (gdbPath != null) {
|
||||||
|
debugName = gdbPath + "/" + debugName;
|
||||||
|
debugServerName = gdbPath + "/" + debugServerName;
|
||||||
|
}
|
||||||
|
setGlobalLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUG_NAME, debugName);
|
||||||
|
setGlobalLaunchAttribute(ATTR_DEBUG_SERVER_NAME, debugServerName);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setGdbVersion() {
|
protected void setGdbVersion() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue