mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
housekeeping on pdomtests
This commit is contained in:
parent
1956b72386
commit
4a6e26be9c
4 changed files with 32 additions and 8 deletions
|
@ -20,6 +20,18 @@ import org.eclipse.cdt.core.dom.ast.IBinding;
|
|||
*/
|
||||
public class IndexBindingResolutionBugs extends IndexBindingResolutionTestBase {
|
||||
|
||||
public static class SingleProject extends IndexBindingResolutionBugs {
|
||||
public SingleProject() {setStrategy(new SinglePDOMTestStrategy(true));}
|
||||
}
|
||||
public static class ProjectWithDepProj extends IndexBindingResolutionBugs {
|
||||
public ProjectWithDepProj() {setStrategy(new ReferencedProject(true));}
|
||||
}
|
||||
|
||||
public static void addTests(TestSuite suite) {
|
||||
suite.addTest(suite(SingleProject.class));
|
||||
suite.addTest(suite(ProjectWithDepProj.class));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(IndexBindingResolutionBugs.class);
|
||||
}
|
||||
|
|
|
@ -12,6 +12,8 @@ package org.eclipse.cdt.internal.pdom.tests;
|
|||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import org.eclipse.cdt.core.dom.ast.IBasicType;
|
||||
import org.eclipse.cdt.core.dom.ast.IBinding;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType;
|
||||
|
@ -30,6 +32,10 @@ import org.eclipse.core.runtime.NullProgressMonitor;
|
|||
public class OverloadsWithinSingleTUTests extends PDOMTestBase {
|
||||
protected PDOM pdom;
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(OverloadsWithinSingleTUTests.class);
|
||||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
if (pdom == null) {
|
||||
ICProject project = createProject("overloadsWithinSingleTU");
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.pdom.tests;
|
||||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.cdt.core.dom.IPDOMManager;
|
||||
import org.eclipse.cdt.core.index.IIndexFileLocation;
|
||||
import org.eclipse.cdt.core.index.IndexLocationFactory;
|
||||
|
@ -29,6 +31,10 @@ import org.osgi.framework.Bundle;
|
|||
public class PDOMLocationTests extends BaseTestCase {
|
||||
ICProject cproject;
|
||||
|
||||
public static Test suite() {
|
||||
return suite(PDOMLocationTests.class);
|
||||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
cproject= CProjectHelper.createCCProject("PDOMLocationTests"+System.currentTimeMillis(), "bin", IPDOMManager.ID_NO_INDEXER);
|
||||
|
||||
|
|
|
@ -28,14 +28,14 @@ public class PDOMTests extends TestSuite {
|
|||
suite.addTest(DBPropertiesTests.suite());
|
||||
suite.addTest(PDOMBugsTest.suite());
|
||||
suite.addTest(PDOMSearchTest.suite());
|
||||
suite.addTestSuite(PDOMLocationTests.class);
|
||||
suite.addTestSuite(EnumerationTests.class);
|
||||
suite.addTestSuite(ClassTests.class);
|
||||
suite.addTestSuite(TypesTests.class);
|
||||
suite.addTestSuite(IncludesTests.class);
|
||||
suite.addTestSuite(OverloadsWithinSingleTUTests.class);
|
||||
suite.addTest(PDOMLocationTests.suite());
|
||||
suite.addTest(EnumerationTests.suite());
|
||||
suite.addTest(ClassTests.suite());
|
||||
suite.addTest(TypesTests.suite());
|
||||
suite.addTest(IncludesTests.suite());
|
||||
suite.addTest(OverloadsWithinSingleTUTests.suite());
|
||||
suite.addTest(OverloadsWithinCommonHeaderTests.suite());
|
||||
suite.addTestSuite(BTreeTests.class);
|
||||
suite.addTest(BTreeTests.suite());
|
||||
suite.addTest(FilesOnReindexTests.suite());
|
||||
|
||||
suite.addTest(CPPFieldTests.suite());
|
||||
|
@ -47,7 +47,7 @@ public class PDOMTests extends TestSuite {
|
|||
IndexCBindingResolutionTest.addTests(suite);
|
||||
IndexCPPBindingResolutionTest.addTests(suite);
|
||||
IndexCBindingResolutionBugs.addTests(suite);
|
||||
suite.addTest(IndexBindingResolutionBugs.suite());
|
||||
IndexBindingResolutionBugs.addTests(suite);
|
||||
|
||||
suite.addTest(CFunctionTests.suite());
|
||||
suite.addTest(CVariableTests.suite());
|
||||
|
|
Loading…
Add table
Reference in a new issue