mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Support -Dcdt.tests.dsf.gdb.versions=all for gdb tests
Change-Id: I7b0921f3dfc41e75f2f32b270712c0eda7fc96a4
This commit is contained in:
parent
25023542e8
commit
1cb7faae95
1 changed files with 6 additions and 1 deletions
|
@ -18,6 +18,7 @@ import java.util.List;
|
|||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
||||
import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants;
|
||||
import org.eclipse.cdt.dsf.gdb.launching.LaunchUtils;
|
||||
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
|
||||
import org.junit.Assume;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Parameterized;
|
||||
|
@ -45,9 +46,13 @@ public abstract class BaseParametrizedTestCase extends BaseTestCase {
|
|||
}
|
||||
String gdbVersions = System.getProperty("cdt.tests.dsf.gdb.versions");
|
||||
if (gdbVersions == null) {
|
||||
// this has to be put in maven using -Dcdt.tests.dsf.gdb.versions or in junit config if you run locally
|
||||
// this has to be put in maven using -Dcdt.tests.dsf.gdb.versions or
|
||||
// in junit config if you run locally
|
||||
// like this -Dcdt.tests.dsf.gdb.versions=gdb.7.7,gdbserver.7.7
|
||||
gdbVersions = "gdb,gdbserver";
|
||||
} else if (gdbVersions.equals("all")) {
|
||||
gdbVersions = String.join(",", ITestConstants.ALL_KNOWN_VERSIONS);
|
||||
gdbVersions += ",gdbserver." + String.join(",gdbserver.", ITestConstants.ALL_KNOWN_VERSIONS);
|
||||
}
|
||||
String[] versions = gdbVersions.split(",");
|
||||
return Arrays.asList(versions);
|
||||
|
|
Loading…
Add table
Reference in a new issue