mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-15 12:15:47 +02:00
Revert "Revert "Allow unreliable tests to be avoided""
This reverts commit c4e80e62a2
.
This commit is contained in:
parent
cace4b374b
commit
85bdaaf4b3
4 changed files with 30 additions and 9 deletions
|
@ -12,20 +12,21 @@ import junit.framework.TestSuite;
|
||||||
public class AllTests extends TestSuite {
|
public class AllTests extends TestSuite {
|
||||||
public static Test suite() throws Exception {
|
public static Test suite() throws Exception {
|
||||||
final AllTests suite = new AllTests();
|
final AllTests suite = new AllTests();
|
||||||
suite.addTest(org.eclipse.cdt.autotools.tests.AllAutotoolsTests.suite()); // Works with MinGW but not Cygwin
|
suite.addTest(org.eclipse.cdt.autotools.tests.AllAutotoolsTests.suite());
|
||||||
|
// // There are intermittent failures in these tests. No pattern to failures. Seems like indexer is interrupted
|
||||||
// There are intermittent failures in these tests. No pattern to failures. Seems like indexer is interrupted
|
if (System.getProperty("cdt.skip.known.test.failures") == null) { //$NON-NLS-1$
|
||||||
suite.addTest(org.eclipse.cdt.codan.core.test.AutomatedIntegrationSuite.suite());
|
suite.addTest(org.eclipse.cdt.codan.core.test.AutomatedIntegrationSuite.suite());
|
||||||
suite.addTest(org.eclipse.cdt.core.lrparser.tests.LRParserTestSuite.suite());
|
suite.addTest(org.eclipse.cdt.core.lrparser.tests.LRParserTestSuite.suite());
|
||||||
suite.addTest(org.eclipse.cdt.core.parser.xlc.tests.suite.XlcTestSuite.suite());
|
suite.addTest(org.eclipse.cdt.core.parser.xlc.tests.suite.XlcTestSuite.suite());
|
||||||
|
|
||||||
suite.addTest(org.eclipse.cdt.core.parser.upc.tests.UPCParserTestSuite.suite());
|
suite.addTest(org.eclipse.cdt.core.parser.upc.tests.UPCParserTestSuite.suite());
|
||||||
|
}
|
||||||
suite.addTest(org.eclipse.cdt.core.suite.AutomatedIntegrationSuite.suite());
|
suite.addTest(org.eclipse.cdt.core.suite.AutomatedIntegrationSuite.suite());
|
||||||
|
|
||||||
// These tests fail intermittently due to gdb not shutting down and thus
|
// These tests fail intermittently due to gdb not shutting down and thus
|
||||||
// not being able to delete the project (exe locked)
|
// not being able to delete the project (exe locked)
|
||||||
|
if (System.getProperty("cdt.skip.known.test.failures") == null) { //$NON-NLS-1$
|
||||||
suite.addTest(org.eclipse.cdt.debug.core.tests.AllDebugTests.suite());
|
suite.addTest(org.eclipse.cdt.debug.core.tests.AllDebugTests.suite());
|
||||||
|
}
|
||||||
suite.addTest(org.eclipse.cdt.errorparsers.xlc.tests.AllXlcErrorParserTests.suite());
|
suite.addTest(org.eclipse.cdt.errorparsers.xlc.tests.AllXlcErrorParserTests.suite());
|
||||||
suite.addTest(org.eclipse.cdt.make.core.tests.AutomatedIntegrationSuite.suite());
|
suite.addTest(org.eclipse.cdt.make.core.tests.AutomatedIntegrationSuite.suite());
|
||||||
suite.addTest(org.eclipse.cdt.managedbuilder.tests.suite.AllManagedBuildTests.suite());
|
suite.addTest(org.eclipse.cdt.managedbuilder.tests.suite.AllManagedBuildTests.suite());
|
||||||
|
|
|
@ -937,6 +937,7 @@ public class ErrorParserFileMatchingTest extends TestCase {
|
||||||
// Skip the test if Cygwin is not available.
|
// Skip the test if Cygwin is not available.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
assertTrue("usrIncludeWindowsPath=["+usrIncludeWindowsPath+"]",
|
assertTrue("usrIncludeWindowsPath=["+usrIncludeWindowsPath+"]",
|
||||||
usrIncludeWindowsPath.charAt(1)==IPath.DEVICE_SEPARATOR);
|
usrIncludeWindowsPath.charAt(1)==IPath.DEVICE_SEPARATOR);
|
||||||
|
|
||||||
|
|
|
@ -62,12 +62,19 @@ public class AutomatedIntegrationSuite extends TestSuite {
|
||||||
public static Test suite() throws Exception {
|
public static Test suite() throws Exception {
|
||||||
final AutomatedIntegrationSuite suite = new AutomatedIntegrationSuite();
|
final AutomatedIntegrationSuite suite = new AutomatedIntegrationSuite();
|
||||||
|
|
||||||
// Add all success tests
|
// Add all success tests
|
||||||
|
|
||||||
|
// Has intermittent failures
|
||||||
|
if (System.getProperty("cdt.skip.known.test.failures") == null) {
|
||||||
suite.addTest(CDescriptorTests.suite());
|
suite.addTest(CDescriptorTests.suite());
|
||||||
|
}
|
||||||
suite.addTest(CDescriptorOldTests.suite());
|
suite.addTest(CDescriptorOldTests.suite());
|
||||||
suite.addTest(IEnvironmentVariableManagerTests.suite());
|
suite.addTest(IEnvironmentVariableManagerTests.suite());
|
||||||
suite.addTest(ErrorParserTests.suite());
|
suite.addTest(ErrorParserTests.suite());
|
||||||
|
// Has intermittent failures
|
||||||
|
if (System.getProperty("cdt.skip.known.test.failures") == null) {
|
||||||
suite.addTest(ParserTestSuite.suite());
|
suite.addTest(ParserTestSuite.suite());
|
||||||
|
}
|
||||||
suite.addTest(AllCoreTests.suite());
|
suite.addTest(AllCoreTests.suite());
|
||||||
suite.addTest(ElementDeltaTests.suite());
|
suite.addTest(ElementDeltaTests.suite());
|
||||||
suite.addTest(WorkingCopyTests.suite());
|
suite.addTest(WorkingCopyTests.suite());
|
||||||
|
@ -84,9 +91,12 @@ public class AutomatedIntegrationSuite extends TestSuite {
|
||||||
suite.addTest(EFSExtensionTests.suite());
|
suite.addTest(EFSExtensionTests.suite());
|
||||||
suite.addTest(ByteUtilsTest.suite());
|
suite.addTest(ByteUtilsTest.suite());
|
||||||
|
|
||||||
|
// Has intermittent failures
|
||||||
|
if (System.getProperty("cdt.skip.known.test.failures") == null) { //$NON-NLS-1$
|
||||||
// Add in PDOM tests
|
// Add in PDOM tests
|
||||||
suite.addTest(PDOMTests.suite());
|
suite.addTest(PDOMTests.suite());
|
||||||
suite.addTest(IndexTests.suite());
|
suite.addTest(IndexTests.suite());
|
||||||
|
}
|
||||||
|
|
||||||
suite.addTest(RefreshScopeTests.suite());
|
suite.addTest(RefreshScopeTests.suite());
|
||||||
|
|
||||||
|
|
|
@ -61,8 +61,11 @@ public class AutomatedSuite extends TestSuite {
|
||||||
// tests for package org.eclipse.cdt.ui.tests.viewsupport
|
// tests for package org.eclipse.cdt.ui.tests.viewsupport
|
||||||
addTest(ViewSupportTestSuite.suite());
|
addTest(ViewSupportTestSuite.suite());
|
||||||
|
|
||||||
|
// Has intermittent failures
|
||||||
|
if (System.getProperty("cdt.skip.known.test.failures") == null) { //$NON-NLS-1$
|
||||||
// tests for package org.eclipse.cdt.ui.tests.callhierarchy
|
// tests for package org.eclipse.cdt.ui.tests.callhierarchy
|
||||||
addTest(CallHierarchyTestSuite.suite());
|
addTest(CallHierarchyTestSuite.suite());
|
||||||
|
}
|
||||||
|
|
||||||
// tests for package org.eclipse.cdt.ui.tests.typehierarchy
|
// tests for package org.eclipse.cdt.ui.tests.typehierarchy
|
||||||
addTest(TypeHierarchyTestSuite.suite());
|
addTest(TypeHierarchyTestSuite.suite());
|
||||||
|
@ -75,9 +78,12 @@ public class AutomatedSuite extends TestSuite {
|
||||||
|
|
||||||
// tests from package org.eclipse.cdt.ui.tests.text.contentAssist2
|
// tests from package org.eclipse.cdt.ui.tests.text.contentAssist2
|
||||||
addTest(ContentAssist2TestSuite.suite());
|
addTest(ContentAssist2TestSuite.suite());
|
||||||
|
|
||||||
|
// Has intermittent failures
|
||||||
|
if (System.getProperty("cdt.skip.known.test.failures") == null) { //$NON-NLS-1$
|
||||||
// tests from package org.eclipse.cdt.ui.tests.text.selection
|
// tests from package org.eclipse.cdt.ui.tests.text.selection
|
||||||
addTest(SelectionTestSuite.suite());
|
addTest(SelectionTestSuite.suite());
|
||||||
|
}
|
||||||
|
|
||||||
// tests from package org.eclipse.cdt.ui.tests.quickfix
|
// tests from package org.eclipse.cdt.ui.tests.quickfix
|
||||||
addTest(AssistQuickFixTest.suite());
|
addTest(AssistQuickFixTest.suite());
|
||||||
|
@ -88,8 +94,11 @@ public class AutomatedSuite extends TestSuite {
|
||||||
// tests from package org.eclipse.cdt.ui.tests.search
|
// tests from package org.eclipse.cdt.ui.tests.search
|
||||||
addTest(SearchTestSuite.suite());
|
addTest(SearchTestSuite.suite());
|
||||||
|
|
||||||
|
// Has intermittent failures
|
||||||
|
if (System.getProperty("cdt.skip.known.test.failures") == null) { //$NON-NLS-1$
|
||||||
// tests from package org.eclipse.cdt.ui.tests.refactoring
|
// tests from package org.eclipse.cdt.ui.tests.refactoring
|
||||||
addTest(RefactoringTestSuite.suite());
|
addTest(RefactoringTestSuite.suite());
|
||||||
|
}
|
||||||
|
|
||||||
// tests from package org.eclipse.cdt.ui.tests.chelp
|
// tests from package org.eclipse.cdt.ui.tests.chelp
|
||||||
addTest(CHelpTest.suite());
|
addTest(CHelpTest.suite());
|
||||||
|
|
Loading…
Add table
Reference in a new issue