1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Bug 478803 and Bug 478805: add tests for source lookup

Change-Id: If47f62a46164e4098e663f1eef1a0a8640a84009
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
This commit is contained in:
Jonah Graham 2015-10-01 22:31:39 +01:00
parent 3b26dc26c4
commit cc2099c4a0
47 changed files with 751 additions and 33 deletions

View file

@ -32,11 +32,12 @@ Export-Package: org.eclipse.cdt.debug.core,
org.eclipse.cdt.debug.internal.core.executables;x-internal:=true, org.eclipse.cdt.debug.internal.core.executables;x-internal:=true,
org.eclipse.cdt.debug.internal.core.model;x-friends:="org.eclipse.cdt.dsf.ui,org.eclipse.cdt.dsf.gdb", org.eclipse.cdt.debug.internal.core.model;x-friends:="org.eclipse.cdt.dsf.ui,org.eclipse.cdt.dsf.gdb",
org.eclipse.cdt.debug.internal.core.sourcelookup; org.eclipse.cdt.debug.internal.core.sourcelookup;
x-friends:="org.eclipse.cdt.dsf.ui, x-friends:="org.eclipse.cdt.debug.edc,
org.eclipse.cdt.debug.edc,
org.eclipse.cdt.debug.gdbjtag.core, org.eclipse.cdt.debug.gdbjtag.core,
org.eclipse.cdt.dsf,
org.eclipse.cdt.dsf.gdb, org.eclipse.cdt.dsf.gdb,
org.eclipse.cdt.dsf", org.eclipse.cdt.dsf.ui,
org.eclipse.cdt.tests.dsf.gdb",
org.eclipse.cdt.debug.internal.core.srcfinder;x-internal:=true org.eclipse.cdt.debug.internal.core.srcfinder;x-internal:=true
Require-Bundle: org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)", Require-Bundle: org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)",
org.eclipse.debug.core;bundle-version="[3.2.0,4.0.0)", org.eclipse.debug.core;bundle-version="[3.2.0,4.0.0)",

View file

@ -1,4 +1,5 @@
BINDIR = ../bin BINDIR = ../bin
BUILDDIR = ../build
SRC_C = $(wildcard *.c) SRC_C = $(wildcard *.c)
SRC_CXX = $(wildcard *.cc) SRC_CXX = $(wildcard *.cc)
@ -12,8 +13,10 @@ COREFILE = $(BINDIR)/core
CC = gcc CC = gcc
CXX = g++ CXX = g++
CFLAGS = -g3 -O0 # Uncomment the OLDDWARFFLAGS to run newer GCC against older GDB
CXXFLAGS = -g3 -O0 # OLDDWARFFLAGS = -gdwarf-2 -gstrict-dwarf
CFLAGS = -g3 -O0 $(OLDDWARFFLAGS)
CXXFLAGS = -g3 -O0 $(OLDDWARFFLAGS)
# Don't try to use pthread on Windows # Don't try to use pthread on Windows
# The OS environment variable exists on Windows # The OS environment variable exists on Windows
@ -33,16 +36,25 @@ all: $(BINS) $(COREFILE)
$(BINDIR): $(BINDIR):
$(MKDIR) $@ $(MKDIR) $@
$(BINDIR)/%.exe: %.c $(HEADERS) | $(BINDIR) $(BUILDDIR):
$(MKDIR) $@
$(BINDIR)/%.exe: %.c $(HEADERS) Makefile | $(BINDIR)
$(CC) $(CFLAGS) -o $@ $< $(CC) $(CFLAGS) -o $@ $<
$(BINDIR)/%.exe: %.cc $(HEADERS) | $(BINDIR) $(BINDIR)/%.exe: %.cc $(HEADERS) Makefile | $(BINDIR)
$(CXX) $(CXXFLAGS) -o $@ $< $(CXX) $(CXXFLAGS) -o $@ $<
# Generate a core file that is needed for post-morted core-file tests # Generate a core file that is needed for post-morted core-file tests
$(COREFILE): $(BINDIR)/ExpressionTestApp.exe | $(BINDIR) $(COREFILE): $(BINDIR)/ExpressionTestApp.exe Makefile | $(BINDIR)
gdb -nx --batch -ex 'b testLocals' -ex 'run' --ex 'next 16' \ gdb -nx --batch -ex 'b testLocals' -ex 'run' --ex 'next 16' \
-ex 'gcore ../bin/core' $(BINDIR)/ExpressionTestApp.exe > /dev/null -ex 'gcore ../bin/core' $(BINDIR)/ExpressionTestApp.exe > /dev/null
# Compile a source file from an alternate directory
$(BINDIR)/SourceLookup.exe: SourceLookup.cc $(HEADERS) Makefile | $(BINDIR) $(BUILDDIR)
cp SourceLookup.cc $(BUILDDIR)/SourceLookup.cc
cd $(BUILDDIR) && $(CXX) $(CXXFLAGS) -o $@ SourceLookup.cc
rm $(BUILDDIR)/SourceLookup.cc
clean: clean:
$(RM) -r $(BINDIR) $(RM) -r $(BINDIR) $(BUILDDIR)

View file

@ -0,0 +1,17 @@
#include <stdio.h>
volatile int i;
int func(void) {
i = 0;
i += 1;
i += 2;
return i;
}
int main() {
int calc = func();
printf("Calc: %d\n", calc);
return 0;
}

View file

@ -11,6 +11,7 @@
* Simon Marchi (Ericsson) - Make canRestart and restart throw Exception instead of Throwable. * Simon Marchi (Ericsson) - Make canRestart and restart throw Exception instead of Throwable.
* Simon Marchi (Ericsson) - Add getThreadData. * Simon Marchi (Ericsson) - Add getThreadData.
* Alvaro Sanchez-Leon (Ericsson AB) - [Memory] Make tests run with different values of addressable size (Bug 460241) * Alvaro Sanchez-Leon (Ericsson AB) - [Memory] Make tests run with different values of addressable size (Bug 460241)
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.framework; package org.eclipse.cdt.tests.dsf.gdb.framework;
@ -53,6 +54,8 @@ import org.eclipse.cdt.dsf.debug.service.IProcesses.IThreadDMData;
import org.eclipse.cdt.dsf.debug.service.IRunControl.IContainerDMContext; import org.eclipse.cdt.dsf.debug.service.IRunControl.IContainerDMContext;
import org.eclipse.cdt.dsf.debug.service.IRunControl.IExecutionDMContext; import org.eclipse.cdt.dsf.debug.service.IRunControl.IExecutionDMContext;
import org.eclipse.cdt.dsf.debug.service.IRunControl.StepType; import org.eclipse.cdt.dsf.debug.service.IRunControl.StepType;
import org.eclipse.cdt.dsf.debug.service.ISourceLookup.ISourceLookupDMContext;
import org.eclipse.cdt.dsf.debug.service.ISourceLookup;
import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext; import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext;
import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMData; import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMData;
import org.eclipse.cdt.dsf.debug.service.IStack.IVariableDMContext; import org.eclipse.cdt.dsf.debug.service.IStack.IVariableDMContext;
@ -96,6 +99,8 @@ public class SyncUtil {
private static CommandFactory fCommandFactory; private static CommandFactory fCommandFactory;
private static IGDBProcesses fProcessesService; private static IGDBProcesses fProcessesService;
private static ISourceLookup fSourceLookup;
// Initialize some common things, once the session has been established // Initialize some common things, once the session has been established
public static void initialize(DsfSession session) throws Exception { public static void initialize(DsfSession session) throws Exception {
fSession = session; fSession = session;
@ -113,6 +118,7 @@ public class SyncUtil {
fProcessesService = tracker.getService(IGDBProcesses.class); fProcessesService = tracker.getService(IGDBProcesses.class);
fMemory = tracker.getService(IMemory.class); fMemory = tracker.getService(IMemory.class);
fCommandFactory = fGdbControl.getCommandFactory(); fCommandFactory = fGdbControl.getCommandFactory();
fSourceLookup = tracker.getService(ISourceLookup.class);
tracker.dispose(); tracker.dispose();
} }
@ -385,26 +391,33 @@ public class SyncUtil {
} }
public static IFrameDMContext getStackFrame(final IExecutionDMContext execCtx, final int level) throws Exception { public static IFrameDMContext getStackFrame(final IExecutionDMContext execCtx, final int level) throws Exception {
Query<IFrameDMContext> query = new Query<IFrameDMContext>() { Query<IFrameDMContext> query = new Query<IFrameDMContext>() {
@Override @Override
protected void execute(final DataRequestMonitor<IFrameDMContext> rm) { protected void execute(final DataRequestMonitor<IFrameDMContext> rm) {
fStack.getFrames(execCtx, new ImmediateDataRequestMonitor<IFrameDMContext[]>(rm) { fStack.getFrames(execCtx, level, level, new ImmediateDataRequestMonitor<IFrameDMContext[]>(rm) {
@Override @Override
protected void handleSuccess() { protected void handleSuccess() {
if (getData().length > level) { IFrameDMContext[] frameDmcs = getData();
rm.setData(getData()[level]); assert frameDmcs != null;
} else { assert frameDmcs.length == 1;
rm.setStatus(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID, "Frame not available")); rm.setData(frameDmcs[0]);
} rm.done();
rm.done(); }
} });
}); }
} };
};
fSession.getExecutor().execute(query); fSession.getExecutor().execute(query);
return query.get(500, TimeUnit.MILLISECONDS); return query.get(500, TimeUnit.MILLISECONDS);
} }
/**
* Utility method to return a specific frame DM context.
*/
@ThreadSafeAndProhibitedFromDsfExecutor("fSession.getExecutor()")
public static IFrameDMContext getStackFrame(int threadIndex, final int level) throws Exception {
return getStackFrame(getExecutionContext(threadIndex), level);
}
public static Integer getStackDepth(final IExecutionDMContext execCtx) throws Throwable { public static Integer getStackDepth(final IExecutionDMContext execCtx) throws Throwable {
return getStackDepth(execCtx, 0); return getStackDepth(execCtx, 0);
@ -441,6 +454,10 @@ public class SyncUtil {
fSession.getExecutor().execute(query); fSession.getExecutor().execute(query);
return query.get(500, TimeUnit.MILLISECONDS); return query.get(500, TimeUnit.MILLISECONDS);
} }
public static IFrameDMData getFrameData(final int threadId, final int level) throws Throwable {
return getFrameData(getExecutionContext(threadId), level);
}
public static IThreadDMData getThreadData(final int threadId) public static IThreadDMData getThreadData(final int threadId)
throws InterruptedException, ExecutionException, TimeoutException { throws InterruptedException, ExecutionException, TimeoutException {
@ -924,4 +941,25 @@ public class SyncUtil {
return memoryService.isBigEndian(dmc) ? ByteOrder.BIG_ENDIAN return memoryService.isBigEndian(dmc) ? ByteOrder.BIG_ENDIAN
: ByteOrder.LITTLE_ENDIAN; : ByteOrder.LITTLE_ENDIAN;
} }
/**
* Get the source using the {@link ISourceLookup} service.
*
* Wrapper around
* {@link ISourceLookup#getSource(ISourceLookupDMContext, String, DataRequestMonitor)}
*/
public static Object getSource(final String debuggerPath) throws Exception {
Query<Object> query = new Query<Object>() {
@Override
protected void execute(DataRequestMonitor<Object> rm) {
final ISourceLookupDMContext ctx = DMContexts.getAncestorOfType(fGdbControl.getContext(),
ISourceLookupDMContext.class);
fSourceLookup.getSource(ctx, debuggerPath, rm);
}
};
fSourceLookup.getExecutor().execute(query);
return query.get();
}
} }

View file

@ -0,0 +1,191 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.concurrent.ExecutionException;
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
import org.eclipse.cdt.debug.core.sourcelookup.MappingSourceContainer;
import org.eclipse.cdt.debug.internal.core.sourcelookup.MapEntrySourceContainer;
import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext;
import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMData;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.framework.BaseTestCase;
import org.eclipse.cdt.tests.dsf.gdb.framework.SyncUtil;
import org.eclipse.core.resources.IStorage;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Path;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector;
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
import org.eclipse.debug.core.sourcelookup.ISourceLookupDirector;
import org.eclipse.debug.core.sourcelookup.containers.DefaultSourceContainer;
import org.eclipse.debug.core.sourcelookup.containers.DirectorySourceContainer;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* Tests that interaction with source lookups works as expected.
*
* All of these tests use a program (SourceLookup.exe) that was built from
* sources that have moved. At build time source was ../build/SourceLookup.cc,
* but now is ../src/SourceLookup.cc.
*
* TODO: Missing features and tests:
*
* - Update source lookup path in running session (i.e. simulate behaviour of
* CSourceNotFoundEditor)
*
* - Ensure breakpoints are inserted properly. This needs to be done by creating
* platform breakpoints and checking they are installed correctly.
*/
@RunWith(BackgroundRunner.class)
public class SourceLookupTest extends BaseTestCase {
protected static final String BUILD_PATH = "data/launch/build/";
protected static final String EXEC_NAME = "SourceLookup.exe"; //$NON-NLS-1$
protected static final String SOURCE_ABSPATH = new File(SOURCE_PATH).getAbsolutePath();
protected static final String BUILD_ABSPATH = new File(BUILD_PATH).getAbsolutePath();
@Override
public void doBeforeTest() throws Exception {
setLaunchAttributes();
// source lookup attributes are custom per test, so delay launch until
// they are setup
}
@Override
protected void setLaunchAttributes() {
super.setLaunchAttributes();
setLaunchAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, EXEC_PATH + EXEC_NAME);
}
/**
* Test with only default source locators on, that the source file was not
* found when stopped at main by any of GDB directly, with the source lookup
* director, or via the ISourceLookup service.
*/
@Test
public void defaultSourceLookup() throws Throwable {
doLaunch();
// Check file name as returned from back end
IFrameDMData frameData = SyncUtil.getFrameData(0, 0);
assertFalse("GDB Unexpectedly located the source", Files.exists(Paths.get(frameData.getFile())));
// Check file as resolved by source lookup director
ISourceLookupDirector director = (ISourceLookupDirector) getGDBLaunch().getSourceLocator();
IFrameDMContext frameDmc = SyncUtil.getStackFrame(0, 0);
Object sourceElement = director.getSourceElement(frameDmc);
assertNull("Source Locator unexpectedly found the source", sourceElement);
// Check file as resolved by ISourceLookup service
try {
SyncUtil.getSource(frameData.getFile());
fail("Source Lookup service unexpectedly found the source");
} catch (ExecutionException e) {
assertNotNull(e.getCause());
assertTrue(e.getCause() instanceof CoreException);
assertEquals("No sources found", e.getCause().getMessage());
}
}
protected AbstractSourceLookupDirector setSourceContainer(ISourceContainer container) throws CoreException {
AbstractSourceLookupDirector director = (AbstractSourceLookupDirector) DebugPlugin.getDefault()
.getLaunchManager().newSourceLocator("org.eclipse.cdt.debug.core.sourceLocator");
addSourceContainer(director, new DefaultSourceContainer());
addSourceContainer(director, container);
return director;
}
protected void addSourceContainer(AbstractSourceLookupDirector director, ISourceContainer container)
throws CoreException {
ArrayList<ISourceContainer> containerList = new ArrayList<ISourceContainer>(
Arrays.asList(director.getSourceContainers()));
container.init(director);
containerList.add(container);
director.setSourceContainers(containerList.toArray(new ISourceContainer[containerList.size()]));
setLaunchAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO, director.getMemento());
setLaunchAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_ID, director.getId());
}
/**
* Test with default source locators and a path mapping
* {@link MappingSourceContainer} from BUILD_ABSPATH -> SOURCE_ABSPATH that
* GDB does not locate the file, but the source lookup director and the
* source lookup service do find the file.
*/
@Test
public void sourceMapping() throws Throwable {
MappingSourceContainer mapContainer = new MappingSourceContainer("Mappings");
mapContainer.addMapEntry(new MapEntrySourceContainer(new Path(BUILD_ABSPATH), new Path(SOURCE_ABSPATH)));
setSourceContainer(mapContainer);
doLaunch();
// Check file name as returned from back end
IFrameDMData frameData = SyncUtil.getFrameData(0, 0);
assertFalse("GDB Unexpectedly located the source", Files.exists(Paths.get(frameData.getFile())));
// Check file as resolved by source lookup director
ISourceLookupDirector director = (ISourceLookupDirector) getGDBLaunch().getSourceLocator();
IFrameDMContext frameDmc = SyncUtil.getStackFrame(0, 0);
Object sourceElement = director.getSourceElement(frameDmc);
assertTrue("Source locator failed to find source", sourceElement instanceof IStorage);
// Check file as resolved by ISourceLookup service
sourceElement = SyncUtil.getSource(frameData.getFile());
assertTrue("Source Lookup service failed to find source", sourceElement instanceof IStorage);
}
/**
* Test with default source locators and a {@link DirectorySourceContainer}
* for SOURCE_ABSPATH that GDB does not locate the file, but the source
* lookup director and the source lookup service do find the file.
*
* This test does not work with modern GDBs because the path passed into
* DirectorySourceContainer is an absolute path. See versioned test suites.
*/
@Test
public void directorySource() throws Throwable {
DirectorySourceContainer container = new DirectorySourceContainer(new Path(SOURCE_ABSPATH), false);
setSourceContainer(container);
doLaunch();
// Check file name as returned from back end
IFrameDMData frameData = SyncUtil.getFrameData(0, 0);
assertFalse("GDB Unexpectedly located the source", Files.exists(Paths.get(frameData.getFile())));
// Check file as resolved by source lookup director
ISourceLookupDirector director = (ISourceLookupDirector) getGDBLaunch().getSourceLocator();
IFrameDMContext frameDmc = SyncUtil.getStackFrame(0, 0);
Object sourceElement = director.getSourceElement(frameDmc);
assertTrue("Source locator failed to find source", sourceElement instanceof IStorage);
// Check file as resolved by ISourceLookup service
sourceElement = SyncUtil.getSource(frameData.getFile());
assertTrue("Source Lookup service failed to find source", sourceElement instanceof IStorage);
}
}

View file

@ -0,0 +1,37 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.SourceLookupTest;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.SourceLookupTest_7_6;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_6_6 extends SourceLookupTest {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_6);
}
/**
* For details on the ignore, see {@link SourceLookupTest_7_6#sourceMapping()}
*/
@Ignore("Only works starting with GDB 7.6")
@Test
@Override
public void sourceMapping() throws Throwable {
super.sourceMapping();
}
}

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2014 Ericsson and others. * Copyright (c) 2009, 2015 Ericsson and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6;
@ -44,6 +45,7 @@ import org.junit.runners.Suite;
PostMortemCoreTest_6_6.class, PostMortemCoreTest_6_6.class,
CommandTimeoutTest_6_6.class, CommandTimeoutTest_6_6.class,
StepIntoSelectionTest_6_6.class, StepIntoSelectionTest_6_6.class,
SourceLookupTest_6_6.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2014 Ericsson and others. * Copyright (c) 2009, 2015 Ericsson and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6;
@ -43,6 +44,7 @@ import org.junit.runners.Suite;
OperationsWhileTargetIsRunningTest_6_6.class, OperationsWhileTargetIsRunningTest_6_6.class,
CommandTimeoutTest_6_6.class, CommandTimeoutTest_6_6.class,
StepIntoSelectionTest_6_6.class, StepIntoSelectionTest_6_6.class,
SourceLookupTest_6_6.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_6.SourceLookupTest_6_6;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_6_7 extends SourceLookupTest_6_6 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_7);
}
}

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2014 Ericsson and others. * Copyright (c) 2009, 2015 Ericsson and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7;
@ -44,6 +45,7 @@ import org.junit.runners.Suite;
PostMortemCoreTest_6_7.class, PostMortemCoreTest_6_7.class,
CommandTimeoutTest_6_7.class, CommandTimeoutTest_6_7.class,
StepIntoSelectionTest_6_7.class, StepIntoSelectionTest_6_7.class,
SourceLookupTest_6_7.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2014 Ericsson and others. * Copyright (c) 2009, 2015 Ericsson and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7;
@ -43,6 +44,7 @@ import org.junit.runners.Suite;
OperationsWhileTargetIsRunningTest_6_7.class, OperationsWhileTargetIsRunningTest_6_7.class,
CommandTimeoutTest_6_7.class, CommandTimeoutTest_6_7.class,
StepIntoSelectionTest_6_7.class, StepIntoSelectionTest_6_7.class,
SourceLookupTest_6_7.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_7.SourceLookupTest_6_7;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_6_8 extends SourceLookupTest_6_7 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_6_8);
}
}

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2014 Ericsson and others. * Copyright (c) 2009, 2015 Ericsson and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8;
@ -44,6 +45,7 @@ import org.junit.runners.Suite;
PostMortemCoreTest_6_8.class, PostMortemCoreTest_6_8.class,
CommandTimeoutTest_6_8.class, CommandTimeoutTest_6_8.class,
StepIntoSelectionTest_6_8.class, StepIntoSelectionTest_6_8.class,
SourceLookupTest_6_8.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2009, 2014 Ericsson and others. * Copyright (c) 2009, 2015 Ericsson and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8;
@ -43,6 +44,7 @@ import org.junit.runners.Suite;
OperationsWhileTargetIsRunningTest_6_8.class, OperationsWhileTargetIsRunningTest_6_8.class,
CommandTimeoutTest_6_8.class, CommandTimeoutTest_6_8.class,
StepIntoSelectionTest_6_8.class, StepIntoSelectionTest_6_8.class,
SourceLookupTest_6_8.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_6_8.SourceLookupTest_6_8;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_0 extends SourceLookupTest_6_8 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_0);
}
}

View file

@ -9,6 +9,7 @@
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_0 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_0 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0;
@ -50,6 +51,7 @@ import org.junit.runners.Suite;
GDBMultiNonStopRunControlTest_7_0.class, GDBMultiNonStopRunControlTest_7_0.class,
StepIntoSelectionTest_7_0.class, StepIntoSelectionTest_7_0.class,
StepIntoSelectionNonStopTest_7_0.class, StepIntoSelectionNonStopTest_7_0.class,
SourceLookupTest_7_0.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_0 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_0 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0;
@ -50,6 +51,7 @@ import org.junit.runners.Suite;
GDBMultiNonStopRunControlTest_7_0.class, GDBMultiNonStopRunControlTest_7_0.class,
StepIntoSelectionTest_7_0.class, StepIntoSelectionTest_7_0.class,
StepIntoSelectionNonStopTest_7_0.class, StepIntoSelectionNonStopTest_7_0.class,
SourceLookupTest_7_0.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_0.SourceLookupTest_7_0;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_1 extends SourceLookupTest_7_0 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_1);
}
}

View file

@ -9,6 +9,7 @@
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_1 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_1 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1;
@ -50,6 +51,7 @@ import org.junit.runners.Suite;
GDBMultiNonStopRunControlTest_7_1.class, GDBMultiNonStopRunControlTest_7_1.class,
StepIntoSelectionTest_7_1.class, StepIntoSelectionTest_7_1.class,
StepIntoSelectionNonStopTest_7_1.class, StepIntoSelectionNonStopTest_7_1.class,
SourceLookupTest_7_1.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_1 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_1 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1;
@ -50,6 +51,7 @@ import org.junit.runners.Suite;
GDBMultiNonStopRunControlTest_7_1.class, GDBMultiNonStopRunControlTest_7_1.class,
StepIntoSelectionTest_7_1.class, StepIntoSelectionTest_7_1.class,
StepIntoSelectionNonStopTest_7_1.class, StepIntoSelectionNonStopTest_7_1.class,
SourceLookupTest_7_1.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9.SourceLookupTest_7_9;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_10 extends SourceLookupTest_7_9 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_10);
}
}

View file

@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_10 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_10 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10;
@ -51,6 +52,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_10.class, GDBConsoleSynchronizingTest_7_10.class,
StepIntoSelectionTest_7_10.class, StepIntoSelectionTest_7_10.class,
StepIntoSelectionNonStopTest_7_10.class, StepIntoSelectionNonStopTest_7_10.class,
SourceLookupTest_7_10.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_10 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_10 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_10;
@ -52,6 +53,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_10.class, GDBConsoleSynchronizingTest_7_10.class,
StepIntoSelectionTest_7_10.class, StepIntoSelectionTest_7_10.class,
StepIntoSelectionNonStopTest_7_10.class, StepIntoSelectionNonStopTest_7_10.class,
SourceLookupTest_7_10.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_1.SourceLookupTest_7_1;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_2 extends SourceLookupTest_7_1 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_2);
}
}

View file

@ -9,6 +9,7 @@
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_2 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_2 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2;
@ -50,6 +51,7 @@ import org.junit.runners.Suite;
GDBMultiNonStopRunControlTest_7_2.class, GDBMultiNonStopRunControlTest_7_2.class,
StepIntoSelectionTest_7_2.class, StepIntoSelectionTest_7_2.class,
StepIntoSelectionNonStopTest_7_2.class, StepIntoSelectionNonStopTest_7_2.class,
SourceLookupTest_7_2.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_2 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_2 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2;
@ -50,6 +51,7 @@ import org.junit.runners.Suite;
GDBMultiNonStopRunControlTest_7_2.class, GDBMultiNonStopRunControlTest_7_2.class,
StepIntoSelectionTest_7_2.class, StepIntoSelectionTest_7_2.class,
StepIntoSelectionNonStopTest_7_2.class, StepIntoSelectionNonStopTest_7_2.class,
SourceLookupTest_7_2.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_2.SourceLookupTest_7_2;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_3 extends SourceLookupTest_7_2 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_3);
}
}

View file

@ -9,6 +9,7 @@
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_3 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_3 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3;
@ -50,6 +51,7 @@ import org.junit.runners.Suite;
GDBMultiNonStopRunControlTest_7_3.class, GDBMultiNonStopRunControlTest_7_3.class,
StepIntoSelectionTest_7_3.class, StepIntoSelectionTest_7_3.class,
StepIntoSelectionNonStopTest_7_3.class, StepIntoSelectionNonStopTest_7_3.class,
SourceLookupTest_7_3.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Ericsson - Initial Implementation * Ericsson - Initial Implementation
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_3 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_3 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3;
@ -50,6 +51,7 @@ import org.junit.runners.Suite;
GDBMultiNonStopRunControlTest_7_3.class, GDBMultiNonStopRunControlTest_7_3.class,
StepIntoSelectionTest_7_3.class, StepIntoSelectionTest_7_3.class,
StepIntoSelectionNonStopTest_7_3.class, StepIntoSelectionNonStopTest_7_3.class,
SourceLookupTest_7_3.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_3.SourceLookupTest_7_3;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_4 extends SourceLookupTest_7_3 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_4);
}
}

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_4 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_4 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4;
@ -51,6 +52,7 @@ import org.junit.runners.Suite;
GDBConsoleBreakpointsTest_7_4.class, GDBConsoleBreakpointsTest_7_4.class,
StepIntoSelectionTest_7_4.class, StepIntoSelectionTest_7_4.class,
StepIntoSelectionNonStopTest_7_4.class, StepIntoSelectionNonStopTest_7_4.class,
SourceLookupTest_7_4.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_4 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_4 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4;
@ -52,6 +53,7 @@ import org.junit.runners.Suite;
TraceFileTest_7_4.class, TraceFileTest_7_4.class,
StepIntoSelectionTest_7_4.class, StepIntoSelectionTest_7_4.class,
StepIntoSelectionNonStopTest_7_4.class, StepIntoSelectionNonStopTest_7_4.class,
SourceLookupTest_7_4.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_4.SourceLookupTest_7_4;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_5 extends SourceLookupTest_7_4 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_5);
}
}

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_5 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_5 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5;
@ -51,6 +52,7 @@ import org.junit.runners.Suite;
GDBConsoleBreakpointsTest_7_5.class, GDBConsoleBreakpointsTest_7_5.class,
StepIntoSelectionTest_7_5.class, StepIntoSelectionTest_7_5.class,
StepIntoSelectionNonStopTest_7_5.class, StepIntoSelectionNonStopTest_7_5.class,
SourceLookupTest_7_5.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_5 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_5 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5;
@ -52,6 +53,7 @@ import org.junit.runners.Suite;
TraceFileTest_7_5.class, TraceFileTest_7_5.class,
StepIntoSelectionTest_7_5.class, StepIntoSelectionTest_7_5.class,
StepIntoSelectionNonStopTest_7_5.class, StepIntoSelectionNonStopTest_7_5.class,
SourceLookupTest_7_5.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,78 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_5.SourceLookupTest_7_5;
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_6 extends SourceLookupTest_7_5 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_6);
}
/**
* Supported starting in GDB >= 7.6 because DSF is using the full path name
* to pass to the {@link ISourceContainer#findSourceElements(String)}. In
* versions prior to 7.6 the fullname field was not returned from GDB if the
* file was not found by GDB. See
* https://sourceware.org/ml/gdb-patches/2012-12/msg00557.html.
*
* Therefore in version < 7.5 the MI frame info has file="SourceLookup.cc"
* and no fullname field. This means there is no path to source map against.
*
* In version >= 7.6 the MI frame info has file="SourceLookup.cc",fullname=
* "<cdt.git path>/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/build/SourceLookup.cc"
* fields, so there is a path to do the mapping against. Recall that the
* test maps
* "<cdt.git path>/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/build"
* to "<cdt.git path>/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src"
*/
@Test
@Override
public void sourceMapping() throws Throwable {
super.sourceMapping();
}
/**
* Not supported in GDB >= 7.6 because DSF is using the full path name to
* pass to the {@link ISourceContainer#findSourceElements(String)}. In
* versions prior to 7.6 the fullname field was not returned from GDB if the
* file was not found by GDB. See
* https://sourceware.org/ml/gdb-patches/2012-12/msg00557.html
*
* Therefore in version < 7.5 the MI frame info has file="SourceLookup.cc"
* and no fullname field. This means that "SourceLookup.cc" gets passed to
* DirectorySourceContainer.findSourceElements(String), the container
* prepends the directory name and finds the source.
*
* In version >= 7.6 the MI frame info has file="SourceLookup.cc",fullname=
* "<cdt.git path>/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/build/SourceLookup.cc"
* As a result the fullname is passed to
* DirectorySourceContainer.findSourceElements(String), the container
* prepends the directory name and as a result does not find the source.
* What DirectorySourceContainer does is a file exists on:
* "<cdt.git path>/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/<cdt.git path>/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/build/SourceLookup.cc"
* which obviously does not exist.
*/
@Ignore("Not supported in GDB >= 7.6 because DSF is using the full path name to pass to the ISourceContainer.findSourceElements")
@Test
@Override
public void directorySource() throws Throwable {
super.directorySource();
}
}

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_6 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_6 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6;
@ -52,6 +53,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_6.class, GDBConsoleSynchronizingTest_7_6.class,
StepIntoSelectionTest_7_6.class, StepIntoSelectionTest_7_6.class,
StepIntoSelectionNonStopTest_7_6.class, StepIntoSelectionNonStopTest_7_6.class,
SourceLookupTest_7_6.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_6 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_6 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6;
@ -53,6 +54,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_6.class, GDBConsoleSynchronizingTest_7_6.class,
StepIntoSelectionTest_7_6.class, StepIntoSelectionTest_7_6.class,
StepIntoSelectionNonStopTest_7_6.class, StepIntoSelectionNonStopTest_7_6.class,
SourceLookupTest_7_6.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_6.SourceLookupTest_7_6;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_7 extends SourceLookupTest_7_6 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_7);
}
}

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_7 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_7 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7;
@ -52,6 +53,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_7.class, GDBConsoleSynchronizingTest_7_7.class,
StepIntoSelectionTest_7_7.class, StepIntoSelectionTest_7_7.class,
StepIntoSelectionNonStopTest_7_7.class, StepIntoSelectionNonStopTest_7_7.class,
SourceLookupTest_7_7.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_7 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_7 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7;
@ -53,6 +54,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_7.class, GDBConsoleSynchronizingTest_7_7.class,
StepIntoSelectionTest_7_7.class, StepIntoSelectionTest_7_7.class,
StepIntoSelectionNonStopTest_7_7.class, StepIntoSelectionNonStopTest_7_7.class,
SourceLookupTest_7_7.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_7.SourceLookupTest_7_7;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_8 extends SourceLookupTest_7_7 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_8);
}
}

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_8 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_8 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8;
@ -52,6 +53,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_8.class, GDBConsoleSynchronizingTest_7_8.class,
StepIntoSelectionTest_7_8.class, StepIntoSelectionTest_7_8.class,
StepIntoSelectionNonStopTest_7_8.class, StepIntoSelectionNonStopTest_7_8.class,
SourceLookupTest_7_8.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -9,6 +9,7 @@
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair * Alvaro Sanchez-Leon (Ericsson) - Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_8 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_8 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8;
@ -53,6 +54,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_8.class, GDBConsoleSynchronizingTest_7_8.class,
StepIntoSelectionTest_7_8.class, StepIntoSelectionTest_7_8.class,
StepIntoSelectionNonStopTest_7_8.class, StepIntoSelectionNonStopTest_7_8.class,
SourceLookupTest_7_8.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2015 Kichwa Coders and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jonah Graham (Kichwa Coders) - initial API and implementation to Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9;
import org.eclipse.cdt.tests.dsf.gdb.framework.BackgroundRunner;
import org.eclipse.cdt.tests.dsf.gdb.tests.ITestConstants;
import org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_8.SourceLookupTest_7_8;
import org.junit.runner.RunWith;
@RunWith(BackgroundRunner.class)
public class SourceLookupTest_7_9 extends SourceLookupTest_7_8 {
@Override
protected void setGdbVersion() {
setGdbProgramNamesLaunchAttributes(ITestConstants.SUFFIX_GDB_7_9);
}
}

View file

@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_9 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_9 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9;
@ -51,6 +52,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_9.class, GDBConsoleSynchronizingTest_7_9.class,
StepIntoSelectionTest_7_9.class, StepIntoSelectionTest_7_9.class,
StepIntoSelectionNonStopTest_7_9.class, StepIntoSelectionNonStopTest_7_9.class,
SourceLookupTest_7_9.class,
/* Add your test class here */ /* Add your test class here */
}) })

View file

@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Marc Khouzam (Ericsson) - Initial implementation of Test cases * Marc Khouzam (Ericsson) - Initial implementation of Test cases
* Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_9 to suite * Jonah Graham (Kichwa Coders) - Bug 469007 - Add MIExpressionsNonStopTest_7_9 to suite
* Jonah Graham (Kichwa Coders) - Add support for gdb's "set substitute-path" (Bug 472765)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9; package org.eclipse.cdt.tests.dsf.gdb.tests.tests_7_9;
@ -52,6 +53,7 @@ import org.junit.runners.Suite;
GDBConsoleSynchronizingTest_7_9.class, GDBConsoleSynchronizingTest_7_9.class,
StepIntoSelectionTest_7_9.class, StepIntoSelectionTest_7_9.class,
StepIntoSelectionNonStopTest_7_9.class, StepIntoSelectionNonStopTest_7_9.class,
SourceLookupTest_7_9.class,
/* Add your test class here */ /* Add your test class here */
}) })