Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-04-22 17:29:23 -0400
committerMike Kucera2009-04-22 17:29:23 -0400
commitc1b63e80855b775875b4ef0cdb76dca6a673e97d (patch)
tree67d13f888d24ae222cadceba36cfc715ed42a313 /xlc/org.eclipse.cdt.core.lrparser.xlc.tests
parent45f40abd23be42ae1ce5f74030eaf882913ae859 (diff)
downloadorg.eclipse.cdt-c1b63e80855b775875b4ef0cdb76dca6a673e97d.tar.gz
org.eclipse.cdt-c1b63e80855b775875b4ef0cdb76dca6a673e97d.tar.xz
org.eclipse.cdt-c1b63e80855b775875b4ef0cdb76dca6a673e97d.zip
[273347] [XLC Parser] improve testing
Diffstat (limited to 'xlc/org.eclipse.cdt.core.lrparser.xlc.tests')
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/META-INF/MANIFEST.MF3
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/VectorExtensionsTest.java2
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcExtensionsTest.java (renamed from xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCExtensionsTest.java)6
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcExtensionsTestSuite.java (renamed from xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCParserTestSuite.java)5
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcTestBase.java (renamed from xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCTestBase.java)6
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPImplicitNameTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPSpecFailingTest.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPSpecTest.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCSpecTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCommentTests.java34
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompleteParser2Tests.java33
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompletionBasicTest.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompletionParseTest.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationInclusionTests.java45
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationMacroTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMPreprocessorInformationTest.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDigraphTrigraphTests.java33
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRGCCCompleteParseExtensionsTest.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRGCCTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRImageLocationTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRInactiveCodeTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRKnRTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRNodeSelectorTest.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRParserTestSuite.java64
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRQuickParser2Tests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRSelectionParseTest.java40
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRSemanticsTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTaskParserTest.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTemplateTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTests.java39
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRUtilOldTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRUtilTests.java32
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/suite/XlcTestSuite.java28
35 files changed, 1031 insertions, 11 deletions
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/META-INF/MANIFEST.MF b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/META-INF/MANIFEST.MF
index 19e3fcd35d..4797732f91 100644
--- a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/META-INF/MANIFEST.MF
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/META-INF/MANIFEST.MF
@@ -10,4 +10,5 @@ Require-Bundle: org.junit,
org.eclipse.cdt.core.tests;bundle-version="5.1.0",
org.eclipse.cdt.core;bundle-version="5.1.0",
org.eclipse.cdt.core.lrparser.tests;bundle-version="5.1.0",
- org.eclipse.core.runtime;bundle-version="3.5.0"
+ org.eclipse.core.runtime;bundle-version="3.5.0",
+ org.eclipse.core.resources;bundle-version="3.5.0"
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/VectorExtensionsTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/VectorExtensionsTest.java
index da1d30aae8..2a23e0b60f 100644
--- a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/VectorExtensionsTest.java
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/VectorExtensionsTest.java
@@ -22,7 +22,7 @@ import org.eclipse.cdt.core.dom.ast.IASTStatement;
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
-public class VectorExtensionsTest extends XLCTestBase {
+public class VectorExtensionsTest extends XlcTestBase {
public VectorExtensionsTest() {
}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCExtensionsTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcExtensionsTest.java
index f84eefdb0c..acebb2011a 100644
--- a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCExtensionsTest.java
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcExtensionsTest.java
@@ -14,12 +14,12 @@ import org.eclipse.cdt.core.lrparser.xlc.preferences.XlcLanguagePreferences;
import org.eclipse.cdt.core.lrparser.xlc.preferences.XlcPref;
-public class XLCExtensionsTest extends XLCTestBase {
+public class XlcExtensionsTest extends XlcTestBase {
- public XLCExtensionsTest() {
+ public XlcExtensionsTest() {
}
- public XLCExtensionsTest(String name) {
+ public XlcExtensionsTest(String name) {
super(name);
}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCParserTestSuite.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcExtensionsTestSuite.java
index 933bffbc08..e5434d9a53 100644
--- a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCParserTestSuite.java
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcExtensionsTestSuite.java
@@ -13,13 +13,12 @@ package org.eclipse.cdt.core.parser.xlc.tests;
import junit.framework.Test;
import junit.framework.TestSuite;
-public class XLCParserTestSuite {
-
+public class XlcExtensionsTestSuite extends TestSuite {
public static Test suite() {
return new TestSuite() {{
addTestSuite(VectorExtensionsTest.class);
- addTestSuite(XLCExtensionsTest.class);
+ addTestSuite(XlcExtensionsTest.class);
}};
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCTestBase.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcTestBase.java
index 5d6b8fe4b7..55943dab30 100644
--- a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XLCTestBase.java
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/XlcTestBase.java
@@ -18,12 +18,12 @@ import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
import org.eclipse.cdt.core.model.ILanguage;
-public class XLCTestBase extends TestCase {
+public class XlcTestBase extends TestCase {
- public XLCTestBase() {
+ public XlcTestBase() {
}
- public XLCTestBase(String name) {
+ public XlcTestBase(String name) {
super(name);
}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPImplicitNameTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPImplicitNameTests.java
new file mode 100644
index 0000000000..b5027ff07c
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPImplicitNameTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCPPImplicitNameTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCPPImplicitNameTests extends LRCPPImplicitNameTests {
+ public static TestSuite suite() {
+ return suite(XlcLRCPPImplicitNameTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPSpecFailingTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPSpecFailingTest.java
new file mode 100644
index 0000000000..3833cb7159
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPSpecFailingTest.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCPPSpecFailingTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCPPSpecFailingTest extends LRCPPSpecFailingTest {
+ public static TestSuite suite() {
+ return suite(XlcLRCPPSpecFailingTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPSpecTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPSpecTest.java
new file mode 100644
index 0000000000..9d4329d6b0
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPSpecTest.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCPPSpecTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCPPSpecTest extends LRCPPSpecTest {
+ public static TestSuite suite() {
+ return suite(XlcLRCPPSpecTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPTests.java
new file mode 100644
index 0000000000..46a39b5d9c
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCPPTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCPPTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCPPTests extends LRCPPTests {
+ public static TestSuite suite() {
+ return suite(XlcLRCPPTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCSpecTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCSpecTests.java
new file mode 100644
index 0000000000..2821ad00ed
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCSpecTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCSpecTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCSpecTests extends LRCSpecTests {
+ public static TestSuite suite() {
+ return suite(XlcLRCSpecTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCommentTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCommentTests.java
new file mode 100644
index 0000000000..282a6001b1
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCommentTests.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCommentTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCommentTests extends LRCommentTests {
+
+
+ public static TestSuite suite() {
+ return suite(XlcLRCommentTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompleteParser2Tests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompleteParser2Tests.java
new file mode 100644
index 0000000000..74708eeef5
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompleteParser2Tests.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCompleteParser2Tests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCompleteParser2Tests extends LRCompleteParser2Tests {
+
+ public static TestSuite suite() {
+ return suite(XlcLRCompleteParser2Tests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompletionBasicTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompletionBasicTest.java
new file mode 100644
index 0000000000..3cd2846e36
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompletionBasicTest.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCompletionBasicTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCompletionBasicTest extends LRCompletionBasicTest {
+ public static TestSuite suite() {
+ return suite(XlcLRCompletionBasicTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompletionParseTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompletionParseTest.java
new file mode 100644
index 0000000000..55a8e06b15
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRCompletionParseTest.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRCompletionParseTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRCompletionParseTest extends LRCompletionParseTest {
+ public static TestSuite suite() {
+ return new TestSuite(XlcLRCompletionParseTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationInclusionTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationInclusionTests.java
new file mode 100644
index 0000000000..bd593c9770
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationInclusionTests.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRDOMLocationInclusionTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRDOMLocationInclusionTests extends LRDOMLocationInclusionTests {
+
+ public XlcLRDOMLocationInclusionTests() {
+ super();
+ }
+
+ public XlcLRDOMLocationInclusionTests(String name, Class<Object> className) {
+ super(name, className);
+ }
+
+ public XlcLRDOMLocationInclusionTests(String name) {
+ super(name);
+ }
+
+ public static TestSuite suite() {
+ return new TestSuite(XlcLRDOMLocationInclusionTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationMacroTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationMacroTests.java
new file mode 100644
index 0000000000..2fc7eca528
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationMacroTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRDOMLocationMacroTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRDOMLocationMacroTests extends LRDOMLocationMacroTests {
+ public static TestSuite suite() {
+ return suite(XlcLRDOMLocationMacroTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationTests.java
new file mode 100644
index 0000000000..df69eee213
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMLocationTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRDOMLocationTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRDOMLocationTests extends LRDOMLocationTests {
+ public static TestSuite suite() {
+ return suite(XlcLRDOMLocationTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMPreprocessorInformationTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMPreprocessorInformationTest.java
new file mode 100644
index 0000000000..a2df090a3f
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDOMPreprocessorInformationTest.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRDOMPreprocessorInformationTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRDOMPreprocessorInformationTest extends LRDOMPreprocessorInformationTest {
+ public static TestSuite suite() {
+ return suite(XlcLRDOMPreprocessorInformationTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDigraphTrigraphTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDigraphTrigraphTests.java
new file mode 100644
index 0000000000..b4c145fd8d
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRDigraphTrigraphTests.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRDigraphTrigraphTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRDigraphTrigraphTests extends LRDigraphTrigraphTests {
+
+ public static TestSuite suite() {
+ return new TestSuite(XlcLRDigraphTrigraphTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRGCCCompleteParseExtensionsTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRGCCCompleteParseExtensionsTest.java
new file mode 100644
index 0000000000..64e0b5f485
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRGCCCompleteParseExtensionsTest.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRGCCCompleteParseExtensionsTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRGCCCompleteParseExtensionsTest extends LRGCCCompleteParseExtensionsTest {
+ public static TestSuite suite() {
+ return suite(XlcLRGCCCompleteParseExtensionsTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRGCCTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRGCCTests.java
new file mode 100644
index 0000000000..8c00ee22b2
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRGCCTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRGCCTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRGCCTests extends LRGCCTests {
+ public static TestSuite suite() {
+ return suite(XlcLRGCCTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRImageLocationTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRImageLocationTests.java
new file mode 100644
index 0000000000..93391459d9
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRImageLocationTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRImageLocationTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRImageLocationTests extends LRImageLocationTests {
+ public static TestSuite suite() {
+ return suite(XlcLRImageLocationTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRInactiveCodeTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRInactiveCodeTests.java
new file mode 100644
index 0000000000..6949b32891
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRInactiveCodeTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRInactiveCodeTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRInactiveCodeTests extends LRInactiveCodeTests {
+ public static TestSuite suite() {
+ return suite(XlcLRInactiveCodeTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRKnRTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRKnRTests.java
new file mode 100644
index 0000000000..aecdb3e2e3
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRKnRTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRKnRTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRKnRTests extends LRKnRTests {
+ public static TestSuite suite() {
+ return suite(XlcLRKnRTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRNodeSelectorTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRNodeSelectorTest.java
new file mode 100644
index 0000000000..1f45d3b2af
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRNodeSelectorTest.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRNodeSelectorTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRNodeSelectorTest extends LRNodeSelectorTest {
+ public static TestSuite suite() {
+ return suite(XlcLRNodeSelectorTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRParserTestSuite.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRParserTestSuite.java
new file mode 100644
index 0000000000..8afab91131
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRParserTestSuite.java
@@ -0,0 +1,64 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class XlcLRParserTestSuite extends TestSuite {
+
+ // TODO: the following test are not being reused
+ //
+ // DOMGCCSelectionParseExtensionsTest
+ // DOMSelectionParseTest
+ // GCCCompleteParseExtensionsTest
+ // QuickParser2Tests
+ //
+ // and perhaps others
+
+ public static Test suite() {
+ return new TestSuite() {{
+
+ addTest(XlcLRCommentTests.suite());
+ addTest(XlcLRCompleteParser2Tests.suite());
+ addTest(XlcLRCompletionBasicTest.suite());
+ addTest(XlcLRCompletionParseTest.suite());
+ addTest(XlcLRCPPSpecFailingTest.suite());
+ addTest(XlcLRCPPSpecTest.suite());
+ addTest(XlcLRCPPTests.suite());
+ addTest(XlcLRCSpecTests.suite()); // a couple of failures
+ addTest(XlcLRDigraphTrigraphTests.suite());
+ addTest(XlcLRDOMLocationInclusionTests.suite());
+ addTest(XlcLRDOMLocationMacroTests.suite());
+ addTest(XlcLRDOMLocationTests.suite());
+ addTest(XlcLRDOMPreprocessorInformationTest.suite());
+ addTest(XlcLRGCCTests.suite());
+ addTest(XlcLRGCCCompleteParseExtensionsTest.suite());
+ addTest(XlcLRImageLocationTests.suite());
+ addTest(XlcLRKnRTests.suite()); // mostly fail due to ambiguities
+ addTest(XlcLRNodeSelectorTest.suite());
+ addTest(XlcLRQuickParser2Tests.suite());
+ addTest(XlcLRSelectionParseTest.suite()); // this one still has a lot of failing tests though
+ addTest(XlcLRSemanticsTests.suite());
+ addTest(XlcLRTaskParserTest.suite());
+ addTest(XlcLRTemplateTests.suite());
+ addTest(XlcLRTests.suite()); // has some tests that do fail
+ addTest(XlcLRUtilOldTests.suite());
+ addTest(XlcLRUtilTests.suite());
+ addTest(XlcLRCPPImplicitNameTests.suite());
+ //addTest(LRInactiveCodeTests.suite());
+
+ }};
+ }
+}
+
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRQuickParser2Tests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRQuickParser2Tests.java
new file mode 100644
index 0000000000..eae58926ae
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRQuickParser2Tests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRQuickParser2Tests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRQuickParser2Tests extends LRQuickParser2Tests {
+ public static TestSuite suite() {
+ return new TestSuite(XlcLRQuickParser2Tests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRSelectionParseTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRSelectionParseTest.java
new file mode 100644
index 0000000000..4fc4be89bd
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRSelectionParseTest.java
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRSelectionParseTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRSelectionParseTest extends LRSelectionParseTest {
+
+ public XlcLRSelectionParseTest() {
+ }
+
+ public XlcLRSelectionParseTest(String name) {
+ super(name);
+ }
+
+ public static TestSuite suite() {
+ return new TestSuite(XlcLRSelectionParseTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRSemanticsTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRSemanticsTests.java
new file mode 100644
index 0000000000..24449764d5
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRSemanticsTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRSemanticsTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRSemanticsTests extends LRSemanticsTests {
+ public static TestSuite suite() {
+ return suite(XlcLRSemanticsTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTaskParserTest.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTaskParserTest.java
new file mode 100644
index 0000000000..cbad9af4c2
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTaskParserTest.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRTaskParserTest;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRTaskParserTest extends LRTaskParserTest {
+ public static TestSuite suite() {
+ return suite(XlcLRTaskParserTest.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTemplateTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTemplateTests.java
new file mode 100644
index 0000000000..c797e6ad59
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTemplateTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRTemplateTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRTemplateTests extends LRTemplateTests {
+ public static TestSuite suite() {
+ return suite(XlcLRTemplateTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTests.java
new file mode 100644
index 0000000000..6cb19033f2
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRTests.java
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRTests extends LRTests {
+
+ public XlcLRTests(String name) {
+ super(name);
+ // TODO Auto-generated constructor stub
+ }
+
+ public static TestSuite suite() {
+ return suite(XlcLRTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRUtilOldTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRUtilOldTests.java
new file mode 100644
index 0000000000..2fbfbf8874
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRUtilOldTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRUtilOldTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRUtilOldTests extends LRUtilOldTests {
+ public static TestSuite suite() {
+ return suite(XlcLRUtilOldTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRUtilTests.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRUtilTests.java
new file mode 100644
index 0000000000..1eae1701af
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/base/XlcLRUtilTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.base;
+
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.lrparser.tests.LRUtilTests;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
+import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
+import org.eclipse.cdt.core.model.ILanguage;
+
+public class XlcLRUtilTests extends LRUtilTests {
+ public static TestSuite suite() {
+ return suite(XlcLRUtilTests.class);
+ }
+
+ protected ILanguage getCLanguage() {
+ return XlcCLanguage.getDefault();
+ }
+
+ protected ILanguage getCPPLanguage() {
+ return XlcCPPLanguage.getDefault();
+ }
+}
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/suite/XlcTestSuite.java b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/suite/XlcTestSuite.java
new file mode 100644
index 0000000000..5c03a49515
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc.tests/src/org/eclipse/cdt/core/parser/xlc/tests/suite/XlcTestSuite.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.parser.xlc.tests.suite;
+
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.eclipse.cdt.core.parser.xlc.tests.XlcExtensionsTestSuite;
+import org.eclipse.cdt.core.parser.xlc.tests.base.XlcLRParserTestSuite;
+
+public class XlcTestSuite extends TestSuite {
+
+ public static Test suite() {
+ return new TestSuite() {{
+ addTest(XlcExtensionsTestSuite.suite());
+ addTest(XlcLRParserTestSuite.suite());
+ }};
+ }
+}

Back to the top