From 785657918761115cd34e157d9d55290091909672 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Wed, 25 Jun 2008 14:14:01 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'v200807100946'. Sprout from cdt_4_0 2008-06-25 14:14:00 UTC Markus Schorn 'pwd in scanner-discovery, bug 237958.' Delete: upc/org.eclipse.cdt.core.parser.upc.tests/.classpath upc/org.eclipse.cdt.core.parser.upc.tests/.project upc/org.eclipse.cdt.core.parser.upc.tests/META-INF/MANIFEST.MF upc/org.eclipse.cdt.core.parser.upc.tests/about.html upc/org.eclipse.cdt.core.parser.upc.tests/build.properties upc/org.eclipse.cdt.core.parser.upc.tests/plugin.properties upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/AutomatedIntegrationSuite.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CommentTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompleteParser2Tests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionBasicTest.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationInclusionTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationMacroTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMPreprocessorInformationTest.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DigraphTrigraphTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99GCCTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99KnRTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SelectionParseTest.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SpecTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99TaskParserTest.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99Tests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilOldTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilTests.java upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/.classpath xlc/org.eclipse.cdt.errorparsers.xlc.tests/.cvsignore xlc/org.eclipse.cdt.errorparsers.xlc.tests/.project xlc/org.eclipse.cdt.errorparsers.xlc.tests/META-INF/MANIFEST.MF xlc/org.eclipse.cdt.errorparsers.xlc.tests/about.html xlc/org.eclipse.cdt.errorparsers.xlc.tests/build.properties xlc/org.eclipse.cdt.errorparsers.xlc.tests/plugin.xml xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/AllXlcErrorParserTests.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java--- .../.classpath | 7 - upc/org.eclipse.cdt.core.parser.upc.tests/.project | 28 -- .../META-INF/MANIFEST.MF | 16 - .../about.html | 24 - .../build.properties | 16 - .../plugin.properties | 15 - .../upc/tests/AutomatedIntegrationSuite.java | 42 -- .../core/parser/upc/tests/UPCC99CommentTests.java | 22 - .../upc/tests/UPCC99CompleteParser2Tests.java | 23 - .../upc/tests/UPCC99CompletionBasicTest.java | 25 - .../upc/tests/UPCC99CompletionParseTest.java | 26 -- .../upc/tests/UPCC99DOMLocationInclusionTests.java | 33 -- .../upc/tests/UPCC99DOMLocationMacroTests.java | 25 - .../parser/upc/tests/UPCC99DOMLocationTests.java | 29 -- .../UPCC99DOMPreprocessorInformationTest.java | 23 - .../upc/tests/UPCC99DigraphTrigraphTests.java | 26 -- .../cdt/core/parser/upc/tests/UPCC99GCCTests.java | 30 -- .../cdt/core/parser/upc/tests/UPCC99KnRTests.java | 26 -- .../parser/upc/tests/UPCC99SelectionParseTest.java | 26 -- .../cdt/core/parser/upc/tests/UPCC99SpecTests.java | 30 -- .../parser/upc/tests/UPCC99TaskParserTest.java | 23 - .../cdt/core/parser/upc/tests/UPCC99Tests.java | 36 -- .../core/parser/upc/tests/UPCC99UtilOldTests.java | 23 - .../cdt/core/parser/upc/tests/UPCC99UtilTests.java | 23 - .../upc/tests/UPCLanguageExtensionTests.java | 517 --------------------- .../.classpath | 7 - .../.cvsignore | 1 - .../.project | 28 -- .../META-INF/MANIFEST.MF | 15 - .../about.html | 24 - .../build.properties | 8 - .../plugin.xml | 2 - .../xlc/tests/AllXlcErrorParserTests.java | 36 -- .../errorparsers/xlc/tests/TestConditional.java | 41 -- .../errorparsers/xlc/tests/TestFloatingPoint.java | 43 -- .../cdt/errorparsers/xlc/tests/TestFuncArg.java | 44 -- .../cdt/errorparsers/xlc/tests/TestMissingArg.java | 42 -- .../errorparsers/xlc/tests/TestNoFuncProto.java | 39 -- .../cdt/errorparsers/xlc/tests/TestOperModi.java | 41 -- .../errorparsers/xlc/tests/TestSyntaxError.java | 40 -- .../errorparsers/xlc/tests/TestUndeclIdent.java | 41 -- .../cdt/errorparsers/xlc/tests/TestsPlugin.java | 95 ---- 42 files changed, 1661 deletions(-) delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/.classpath delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/.project delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/META-INF/MANIFEST.MF delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/about.html delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/build.properties delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/plugin.properties delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/AutomatedIntegrationSuite.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CommentTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompleteParser2Tests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionBasicTest.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationInclusionTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationMacroTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMPreprocessorInformationTest.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DigraphTrigraphTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99GCCTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99KnRTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SelectionParseTest.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SpecTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99TaskParserTest.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99Tests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilOldTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilTests.java delete mode 100644 upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/.classpath delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/.cvsignore delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/.project delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/META-INF/MANIFEST.MF delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/about.html delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/build.properties delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/plugin.xml delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/AllXlcErrorParserTests.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java delete mode 100644 xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/.classpath b/upc/org.eclipse.cdt.core.parser.upc.tests/.classpath deleted file mode 100644 index 751c8f2e504..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/.project b/upc/org.eclipse.cdt.core.parser.upc.tests/.project deleted file mode 100644 index 5ccd5d6305e..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.cdt.core.parser.upc.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/META-INF/MANIFEST.MF b/upc/org.eclipse.cdt.core.parser.upc.tests/META-INF/MANIFEST.MF deleted file mode 100644 index 08c8d4ec5a2..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,16 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %Bundle-Name.0 -Bundle-SymbolicName: org.eclipse.cdt.core.parser.upc.tests -Bundle-Version: 4.0.0.qualifier -Require-Bundle: org.eclipse.core.runtime, - org.junit, - org.eclipse.cdt.core.parser.c99, - org.eclipse.cdt.core.tests, - org.eclipse.cdt.core, - org.eclipse.core.resources, - org.eclipse.cdt.core.parser.c99.tests, - org.eclipse.cdt.core.parser.upc -Eclipse-LazyStart: false -Bundle-Vendor: %Bundle-Vendor.0 -Bundle-Localization: plugin diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/about.html b/upc/org.eclipse.cdt.core.parser.upc.tests/about.html deleted file mode 100644 index 9b669c2fd0c..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/about.html +++ /dev/null @@ -1,24 +0,0 @@ - - -About - - -

About This Content

- -

February 8, 2007

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") and different terms and conditions may -apply to your use of any object code in the Content. Check the Redistributor's license that was -provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise -indicated below, the terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at http://www.eclipse.org.

- - \ No newline at end of file diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/build.properties b/upc/org.eclipse.cdt.core.parser.upc.tests/build.properties deleted file mode 100644 index 185a840ec69..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/build.properties +++ /dev/null @@ -1,16 +0,0 @@ -############################################################################### -# Copyright (c) 2007 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 -############################################################################### -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - about.html,\ - plugin.properties diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/plugin.properties b/upc/org.eclipse.cdt.core.parser.upc.tests/plugin.properties deleted file mode 100644 index 73788c4a0c7..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/plugin.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2007 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 -############################################################################### -# properties file for org.eclipse.cdt.core.parser.c99.tests -Bundle-Vendor.0 = Eclipse.org -Bundle-Name.0 = C99 Parser Tests Plug-in - -upcSourceName=UPC Source File \ No newline at end of file diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/AutomatedIntegrationSuite.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/AutomatedIntegrationSuite.java deleted file mode 100644 index eb8a7ec788e..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/AutomatedIntegrationSuite.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -public class AutomatedIntegrationSuite extends TestSuite { - - public static Test suite() { - TestSuite suite = new TestSuite(); - - suite.addTestSuite(UPCC99CommentTests.class); - suite.addTestSuite(UPCC99CompletionBasicTest.class); - suite.addTestSuite(UPCC99CompletionParseTest.class); - suite.addTestSuite(UPCC99DOMLocationInclusionTests.class); - suite.addTestSuite(UPCC99DOMLocationMacroTests.class); - suite.addTestSuite(UPCC99DOMLocationTests.class); - suite.addTestSuite(UPCC99DOMPreprocessorInformationTest.class); - suite.addTestSuite(UPCC99KnRTests.class); - suite.addTestSuite(UPCC99SelectionParseTest.class); - suite.addTestSuite(UPCC99SpecTests.class); - suite.addTestSuite(UPCC99Tests.class); - suite.addTestSuite(UPCLanguageExtensionTests.class); - suite.addTestSuite(UPCC99DigraphTrigraphTests.class); - suite.addTestSuite(UPCC99GCCTests.class); - suite.addTestSuite(UPCC99UtilOldTests.class); - suite.addTestSuite(UPCC99UtilTests.class); - suite.addTestSuite(UPCC99CompleteParser2Tests.class); - suite.addTestSuite(UPCC99TaskParserTest.class); - - return suite; - } -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CommentTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CommentTests.java deleted file mode 100644 index 0a2805b8daf..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CommentTests.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99CommentTests; - -public class UPCC99CommentTests extends C99CommentTests { - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompleteParser2Tests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompleteParser2Tests.java deleted file mode 100644 index ac2577df7cc..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompleteParser2Tests.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99CompleteParser2Tests; - -public class UPCC99CompleteParser2Tests extends C99CompleteParser2Tests { - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionBasicTest.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionBasicTest.java deleted file mode 100644 index c05247bab9a..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionBasicTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.c99.C99Language; -import org.eclipse.cdt.core.parser.c99.tests.C99CompletionBasicTest; - -public class UPCC99CompletionBasicTest extends C99CompletionBasicTest { - - public UPCC99CompletionBasicTest() { } - - protected BaseExtensibleLanguage getLanguage() { - return C99Language.getDefault(); - } - -} \ No newline at end of file diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java deleted file mode 100644 index f704f9647f8..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99CompletionParseTest; - -public class UPCC99CompletionParseTest extends C99CompletionParseTest { - - public UPCC99CompletionParseTest() { } - public UPCC99CompletionParseTest(String name) { super(name); } - - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationInclusionTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationInclusionTests.java deleted file mode 100644 index 4214d2d3be9..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationInclusionTests.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99DOMLocationInclusionTests; - -public class UPCC99DOMLocationInclusionTests extends C99DOMLocationInclusionTests { - - public UPCC99DOMLocationInclusionTests() { - } - - public UPCC99DOMLocationInclusionTests(String name, Class className) { - super(name, className); - } - - public UPCC99DOMLocationInclusionTests(String name) { - super(name); - } - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationMacroTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationMacroTests.java deleted file mode 100644 index b8eb51ea06a..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationMacroTests.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99DOMLocationMacroTests; - -public class UPCC99DOMLocationMacroTests extends C99DOMLocationMacroTests { - - public UPCC99DOMLocationMacroTests() { - } - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationTests.java deleted file mode 100644 index 38417ae403e..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMLocationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99DOMLocationTests; - -public class UPCC99DOMLocationTests extends C99DOMLocationTests { - - public UPCC99DOMLocationTests() { - } - - public UPCC99DOMLocationTests(String name) { - super(name); - } - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMPreprocessorInformationTest.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMPreprocessorInformationTest.java deleted file mode 100644 index b367fad8387..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DOMPreprocessorInformationTest.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99DOMPreprocessorInformationTest; - -public class UPCC99DOMPreprocessorInformationTest extends C99DOMPreprocessorInformationTest { - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DigraphTrigraphTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DigraphTrigraphTests.java deleted file mode 100644 index fad52a79592..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99DigraphTrigraphTests.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99DigraphTrigraphTests; - - -public class UPCC99DigraphTrigraphTests extends C99DigraphTrigraphTests { - - public UPCC99DigraphTrigraphTests() { } - public UPCC99DigraphTrigraphTests(String name) { super(name); } - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99GCCTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99GCCTests.java deleted file mode 100644 index 713ec1a80ae..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99GCCTests.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99GCCTests; - -public class UPCC99GCCTests extends C99GCCTests { - - public UPCC99GCCTests() { - } - - public UPCC99GCCTests(String message) { - super(message); - } - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99KnRTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99KnRTests.java deleted file mode 100644 index 3bd637ca4a4..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99KnRTests.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99KnRTests; - -public class UPCC99KnRTests extends C99KnRTests { - - public UPCC99KnRTests() { - } - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SelectionParseTest.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SelectionParseTest.java deleted file mode 100644 index 829ed9c1bff..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SelectionParseTest.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99SelectionParseTest; - -public class UPCC99SelectionParseTest extends C99SelectionParseTest { - - public UPCC99SelectionParseTest() { } - public UPCC99SelectionParseTest(String name) { super(name); } - - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SpecTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SpecTests.java deleted file mode 100644 index 0649e3c6bdc..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99SpecTests.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99SpecTests; - -public class UPCC99SpecTests extends C99SpecTests { - - public UPCC99SpecTests() { - } - - public UPCC99SpecTests(String name) { - super(name); - } - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99TaskParserTest.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99TaskParserTest.java deleted file mode 100644 index bce6d652516..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99TaskParserTest.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99TaskParserTest; - -public class UPCC99TaskParserTest extends C99TaskParserTest { - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99Tests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99Tests.java deleted file mode 100644 index 6869ea78f50..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99Tests.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import junit.framework.TestSuite; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99Tests; -/** - * Run the C99 tests against the UPC parser - * - */ -public class UPCC99Tests extends C99Tests { - - public static TestSuite suite() { - return suite(UPCC99Tests.class); - } - - public UPCC99Tests(String name) { - super(name); - } - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilOldTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilOldTests.java deleted file mode 100644 index f4f9a9bbc68..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilOldTests.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99UtilOldTests; - -public class UPCC99UtilOldTests extends C99UtilOldTests { - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilTests.java deleted file mode 100644 index ac174646d32..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99UtilTests.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.parser.c99.tests.C99UtilTests; - -public class UPCC99UtilTests extends C99UtilTests { - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - -} diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java deleted file mode 100644 index e8f94745354..00000000000 --- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java +++ /dev/null @@ -1,517 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 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.upc.tests; - -import junit.framework.TestCase; - -import org.eclipse.cdt.core.dom.ast.IASTArrayDeclarator; -import org.eclipse.cdt.core.dom.ast.IASTArrayModifier; -import org.eclipse.cdt.core.dom.ast.IASTArraySubscriptExpression; -import org.eclipse.cdt.core.dom.ast.IASTBinaryExpression; -import org.eclipse.cdt.core.dom.ast.IASTCompoundStatement; -import org.eclipse.cdt.core.dom.ast.IASTDeclaration; -import org.eclipse.cdt.core.dom.ast.IASTDeclarationStatement; -import org.eclipse.cdt.core.dom.ast.IASTDeclarator; -import org.eclipse.cdt.core.dom.ast.IASTExpressionStatement; -import org.eclipse.cdt.core.dom.ast.IASTFunctionDefinition; -import org.eclipse.cdt.core.dom.ast.IASTIdExpression; -import org.eclipse.cdt.core.dom.ast.IASTLiteralExpression; -import org.eclipse.cdt.core.dom.ast.IASTName; -import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclSpecifier; -import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclaration; -import org.eclipse.cdt.core.dom.ast.IASTStatement; -import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit; -import org.eclipse.cdt.core.dom.ast.IASTTypeIdExpression; -import org.eclipse.cdt.core.dom.ast.IASTUnaryExpression; -import org.eclipse.cdt.core.dom.ast.IScope; -import org.eclipse.cdt.core.dom.ast.IVariable; -import org.eclipse.cdt.core.dom.c99.BaseExtensibleLanguage; -import org.eclipse.cdt.core.dom.upc.UPCLanguage; -import org.eclipse.cdt.core.dom.upc.ast.IUPCASTDeclSpecifier; -import org.eclipse.cdt.core.dom.upc.ast.IUPCASTForallStatement; -import org.eclipse.cdt.core.dom.upc.ast.IUPCASTKeywordExpression; -import org.eclipse.cdt.core.dom.upc.ast.IUPCASTSimpleDeclSpecifier; -import org.eclipse.cdt.core.dom.upc.ast.IUPCASTSizeofExpression; -import org.eclipse.cdt.core.dom.upc.ast.IUPCASTSynchronizationStatement; -import org.eclipse.cdt.core.parser.c99.tests.ParseHelper; -import org.eclipse.cdt.internal.core.parser.ParserException; - -public class UPCLanguageExtensionTests extends TestCase { - - public UPCLanguageExtensionTests() { - } - - public UPCLanguageExtensionTests(String name) { - super(name); - } - - - protected BaseExtensibleLanguage getLanguage() { - return UPCLanguage.getDefault(); - } - - // test problem-free parsing of UPC constructs (maily declarations) - // test the AST is correct - // test that binding resolution works - - private IASTTranslationUnit parseAndCheckBindings(String code) throws ParserException { - return ParseHelper.parse(code, getLanguage(), true, true, 0 ); - } - - - private IASTTranslationUnit parse(String code) throws ParserException { - return ParseHelper.parse(code, getLanguage(), true, false, 0 ); - } - - - public void testUPCSharedDeclarations1() throws Exception { - StringBuffer sb = new StringBuffer(); - sb.append("shared int a [100+THREADS];\n");//$NON-NLS-1$ - sb.append("shared [] int b [THREADS];\n");//$NON-NLS-1$ - sb.append("shared [90] int c [10];\n");//$NON-NLS-1$ - sb.append("shared [*] int d [];\n");//$NON-NLS-1$ - sb.append("relaxed int x;");//$NON-NLS-1$ - sb.append("strict int y;");//$NON-NLS-1$ - String code = sb.toString(); - - IASTTranslationUnit tu = parseAndCheckBindings(code); - IScope globalScope = tu.getScope(); - assertNotNull(globalScope); - - IASTDeclaration[] declarations = tu.getDeclarations(); - assertNotNull(declarations); - assertEquals(6, declarations.length); - - // shared int a [100+THREADS]; - IASTSimpleDeclaration decl_a = (IASTSimpleDeclaration) declarations[0]; - IUPCASTSimpleDeclSpecifier declspec_a = (IUPCASTSimpleDeclSpecifier) decl_a.getDeclSpecifier(); - assertEquals(IUPCASTDeclSpecifier.rt_unspecified, declspec_a.getReferenceType()); - assertEquals(IUPCASTDeclSpecifier.sh_shared_default_block_size, declspec_a.getSharedQualifier()); - assertEquals(IASTSimpleDeclSpecifier.t_int, declspec_a.getType()); - assertNull(declspec_a.getBlockSizeExpression()); - IASTDeclarator[] declarators = decl_a.getDeclarators(); - assertNotNull(declarators); - assertEquals(1, declarators.length); - IASTArrayDeclarator declarator_a = (IASTArrayDeclarator) declarators[0]; - IASTName name_a = declarator_a.getName(); - assertEquals("a", name_a.toString());//$NON-NLS-1$ - IASTArrayModifier[] array_modifiers = declarator_a.getArrayModifiers(); - assertNotNull(array_modifiers); - assertEquals(1, array_modifiers.length); - IASTBinaryExpression expr = (IASTBinaryExpression) array_modifiers[0].getConstantExpression(); - IUPCASTKeywordExpression threads = (IUPCASTKeywordExpression) expr.getOperand2(); - assertEquals(IUPCASTKeywordExpression.kw_threads, threads.getKeywordKind()); - - // shared [] int b [THREADS]; - IASTSimpleDeclaration decl_b = (IASTSimpleDeclaration) declarations[1]; - IUPCASTSimpleDeclSpecifier declspec_b = (IUPCASTSimpleDeclSpecifier) decl_b.getDeclSpecifier(); - assertEquals(IUPCASTDeclSpecifier.rt_unspecified, declspec_b.getReferenceType()); - assertEquals(IUPCASTDeclSpecifier.sh_shared_indefinite_allocation, declspec_b.getSharedQualifier()); - assertEquals(IASTSimpleDeclSpecifier.t_int, declspec_b.getType()); - assertNull(declspec_b.getBlockSizeExpression()); - declarators = decl_b.getDeclarators(); - assertNotNull(declarators); - assertEquals(1, declarators.length); - IASTArrayDeclarator declarator_b = (IASTArrayDeclarator) declarators[0]; - IASTName name_b = declarator_b.getName(); - assertEquals("b", name_b.toString());//$NON-NLS-1$ - array_modifiers = declarator_b.getArrayModifiers(); - assertNotNull(array_modifiers); - assertEquals(1, array_modifiers.length); - threads = (IUPCASTKeywordExpression) array_modifiers[0].getConstantExpression(); - assertEquals(IUPCASTKeywordExpression.kw_threads, threads.getKeywordKind()); - - // shared [90] int c [10]; - IASTSimpleDeclaration decl_c = (IASTSimpleDeclaration) declarations[2]; - IUPCASTSimpleDeclSpecifier declspec_c = (IUPCASTSimpleDeclSpecifier) decl_c.getDeclSpecifier(); - assertEquals(IUPCASTDeclSpecifier.rt_unspecified, declspec_c.getReferenceType()); - assertEquals(IUPCASTDeclSpecifier.sh_shared_constant_expression, declspec_c.getSharedQualifier()); - assertEquals(IASTSimpleDeclSpecifier.t_int, declspec_c.getType()); - IASTLiteralExpression literalExpr = (IASTLiteralExpression) declspec_c.getBlockSizeExpression(); - declarators = decl_c.getDeclarators(); - assertNotNull(declarators); - assertEquals(1, declarators.length); - IASTArrayDeclarator declarator_c = (IASTArrayDeclarator) declarators[0]; - IASTName name_c = declarator_c.getName(); - assertEquals("c", name_c.toString());//$NON-NLS-1$ - array_modifiers = declarator_c.getArrayModifiers(); - assertNotNull(array_modifiers); - assertEquals(1, array_modifiers.length); - assertNotNull(array_modifiers[0].getConstantExpression()); - - // shared [*] int d []; - IASTSimpleDeclaration decl_d = (IASTSimpleDeclaration) declarations[3]; - IUPCASTSimpleDeclSpecifier declspec_d = (IUPCASTSimpleDeclSpecifier) decl_d.getDeclSpecifier(); - assertEquals(IUPCASTDeclSpecifier.rt_unspecified, declspec_d.getReferenceType()); - assertEquals(IUPCASTDeclSpecifier.sh_shared_pure_allocation, declspec_d.getSharedQualifier()); - assertEquals(IASTSimpleDeclSpecifier.t_int, declspec_d.getType()); - assertNull(declspec_d.getBlockSizeExpression()); - declarators = decl_d.getDeclarators(); - assertNotNull(declarators); - assertEquals(1, declarators.length); - IASTArrayDeclarator declarator_d = (IASTArrayDeclarator) declarators[0]; - IASTName name_d = declarator_d.getName(); - assertEquals("d", name_d.toString());//$NON-NLS-1$ - array_modifiers = declarator_d.getArrayModifiers(); - assertNotNull(array_modifiers); - assertEquals(1, array_modifiers.length); - assertNull(array_modifiers[0].getConstantExpression()); - - IASTSimpleDeclaration decl_x = (IASTSimpleDeclaration) declarations[4]; - IUPCASTSimpleDeclSpecifier declspec_x = (IUPCASTSimpleDeclSpecifier) decl_x.getDeclSpecifier(); - assertEquals(IUPCASTSimpleDeclSpecifier.rt_relaxed, declspec_x.getReferenceType()); - - IASTSimpleDeclaration decl_y = (IASTSimpleDeclaration) declarations[5]; - IUPCASTSimpleDeclSpecifier declspec_y = (IUPCASTSimpleDeclSpecifier) decl_y.getDeclSpecifier(); - assertEquals(IUPCASTSimpleDeclSpecifier.rt_strict, declspec_y.getReferenceType()); - - - IVariable binding_a = (IVariable) name_a.resolveBinding(); - assertNotNull(binding_a); - assertEquals(globalScope, binding_a.getScope()); - - IVariable binding_b = (IVariable) name_a.resolveBinding(); - assertNotNull(binding_b); - assertEquals(globalScope, binding_b.getScope()); - - IVariable binding_c = (IVariable) name_a.resolveBinding(); - assertNotNull(binding_c); - assertEquals(globalScope, binding_c.getScope()); - - IVariable binding_d = (IVariable) name_a.resolveBinding(); - assertNotNull(binding_d); - assertEquals(globalScope, binding_d.getScope()); - - } - - - - public void testUPCSharedDeclarations2() throws Exception { - StringBuffer sb = new StringBuffer(); - sb.append("int x = 10;");//$NON-NLS-1$ - sb.append("shared [x] int a [];\n");//$NON-NLS-1$ - String code = sb.toString(); - - IASTTranslationUnit tu = parseAndCheckBindings(code); - IScope globalScope = tu.getScope(); - assertNotNull(globalScope); - - IASTDeclaration[] declarations = tu.getDeclarations(); - assertNotNull(declarations); - assertEquals(2, declarations.length); - - IASTSimpleDeclaration decl_x = (IASTSimpleDeclaration) declarations[0]; - - // shared [x] int a []; - IASTSimpleDeclaration decl_a = (IASTSimpleDeclaration) declarations[1]; - IUPCASTSimpleDeclSpecifier declspec_a = (IUPCASTSimpleDeclSpecifier) decl_a.getDeclSpecifier(); - assertEquals(IUPCASTDeclSpecifier.rt_unspecified, declspec_a.getReferenceType()); - assertEquals(IUPCASTDeclSpecifier.sh_shared_constant_expression, declspec_a.getSharedQualifier()); - assertEquals(IASTSimpleDeclSpecifier.t_int, declspec_a.getType()); - IASTIdExpression expr_x = (IASTIdExpression) declspec_a.getBlockSizeExpression(); - - IASTName name_x = expr_x.getName(); - IVariable binding_x = (IVariable) name_x.resolveBinding(); - assertNotNull(binding_x); - assertEquals(decl_x.getDeclarators()[0].getName().resolveBinding(), binding_x); - } - - - - public void testUPCForall1() throws Exception { - StringBuffer sb = new StringBuffer(); - sb.append("int main() {\n");//$NON-NLS-1$ - sb.append(" int i;\n");//$NON-NLS-1$ - sb.append(" shared float *a;\n");//$NON-NLS-1$ - sb.append(" upc_forall(i=0; i - - - - - - diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/.cvsignore b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/.cvsignore deleted file mode 100644 index ba077a4031a..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -bin diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/.project b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/.project deleted file mode 100644 index ab9159afd4b..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.cdt.errorparsers.xlc.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/META-INF/MANIFEST.MF b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/META-INF/MANIFEST.MF deleted file mode 100644 index 9aea0bd0bba..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,15 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: xlC Error Parser Tests Plug-in -Bundle-SymbolicName: org.eclipse.cdt.errorparsers.xlc.tests -Bundle-Version: 1.0.0 -Bundle-Activator: org.eclipse.cdt.errorparsers.xlc.tests.TestsPlugin -Bundle-Localization: plugin -Require-Bundle: org.eclipse.ui, - org.eclipse.core.runtime, - org.eclipse.cdt.errorparsers.xlc, - org.junit -Eclipse-LazyStart: true -Export-Package: org.eclipse.cdt.errorparsers.xlc.tests -Bundle-ClassPath: . -Bundle-Vendor: Eclipse.org diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/about.html b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/about.html deleted file mode 100644 index f8a1ce18403..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/about.html +++ /dev/null @@ -1,24 +0,0 @@ - - -About - - -

About This Content

- -

July 24, 2006

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") and different terms and conditions may -apply to your use of any object code in the Content. Check the Redistributor's license that was -provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise -indicated below, the terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at http://www.eclipse.org.

- - \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/build.properties b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/build.properties deleted file mode 100644 index 64ed0af057d..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/build.properties +++ /dev/null @@ -1,8 +0,0 @@ -bin.includes = META-INF/,\ - . -jars.compile.order = org.eclipse.cdt.errorparsers.xlc.tests.jar -src.includes = META-INF/,\ - build.properties,\ - .project,\ - .classpath -source.. = src/ diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/plugin.xml b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/plugin.xml deleted file mode 100644 index 2407ba63304..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/plugin.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/AllXlcErrorParserTests.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/AllXlcErrorParserTests.java deleted file mode 100644 index 72bcdaa7f52..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/AllXlcErrorParserTests.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -public class AllXlcErrorParserTests { - public static void main(String[] args) { - junit.textui.TestRunner.run(AllXlcErrorParserTests.suite()); - } - - public static Test suite() { - TestSuite suite = new TestSuite( - "Testsuite for xlc compiler error parser"); - //$JUnit-BEGIN$ - suite.addTestSuite(TestUndeclIdent.class); - suite.addTestSuite(TestMissingArg.class); - suite.addTestSuite(TestFloatingPoint.class); - suite.addTestSuite(TestFuncArg.class); - suite.addTestSuite(TestOperModi.class); - suite.addTestSuite(TestConditional.class); - suite.addTestSuite(TestSyntaxError.class); - suite.addTestSuite(TestNoFuncProto.class); - //$JUnit-END$ - return suite; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java deleted file mode 100644 index 0da09d25f3c..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.cdt.errorparsers.xlc.XlcErrorParser; - -import junit.framework.TestCase; - - -public class TestConditional extends TestCase { - String err_msg; - /** - * This function tests parseLine function of the - * XlcErrorParser class. Informative message generated - * by the xlc compiler is given as input for testing. - */ - public void testparseLine() - { - XlcErrorParser aix = new XlcErrorParser(); - aix.parseLine(err_msg); - assertEquals("temp8.c", aix.getFileName()); - assertEquals(12, aix.getLineNumber()); - assertEquals("I", aix.getSeverity()); - assertEquals(" The then branch of conditional is an empty statement.",aix.getMessage()); - } - public TestConditional( String name) - { - super(name); - err_msg = "\"temp8.c\", line 12.9: 1506-478 (I) " + - "The then branch of conditional is an empty statement."; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java deleted file mode 100644 index 0460d5e5789..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.cdt.errorparsers.xlc.XlcErrorParser; - -import junit.framework.TestCase; - - -public class TestFloatingPoint extends TestCase { - String err_msg; - /** - * This function tests parseLine function of the - * XlcErrorParser class. Error message generated by - * xlc compiler with high severity (S) is given as - * input for testing. - */ - public void testparseLine() - { - XlcErrorParser aix = new XlcErrorParser(); - aix.parseLine(err_msg); - assertEquals("temp9.c", aix.getFileName()); - assertEquals(11, aix.getLineNumber()); - assertEquals("S", aix.getSeverity()); - assertEquals(" Floating point constant 10.23.3 is not valid", - aix.getMessage()); - } - public TestFloatingPoint( String name) - { - super(name); - err_msg = "\"temp9.c\", line 11.18: 1506-189 (S) " + - "Floating point constant 10.23.3 is not valid"; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java deleted file mode 100644 index 96b42de2242..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.cdt.errorparsers.xlc.XlcErrorParser; - -import junit.framework.TestCase; - -public class TestFuncArg extends TestCase { - String err_msg; - /** - * This function tests parseLine function of the - * XlcErrorParser class. Error message generated by - * xlc compiler with high severity (S) is given as - * input for testing. - */ - public void testparseLine() - { - XlcErrorParser aix = new XlcErrorParser(); - aix.parseLine(err_msg); - assertEquals("temp9.c", aix.getFileName()); - assertEquals(12, aix.getLineNumber()); - assertEquals("S", aix.getSeverity()); - assertEquals(" Function argument assignment between types " + - "\"int\" and \"char*\" is not allowed.", - aix.getMessage()); - } - public TestFuncArg( String name) - { - super(name); - err_msg = "\"temp9.c\", line 12.18: 1506-280 (S) " + - "Function argument assignment between types " + - "\"int\" and \"char*\" is not allowed."; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java deleted file mode 100644 index bf2cb85eb1a..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.cdt.errorparsers.xlc.XlcErrorParser; - -import junit.framework.TestCase; - - -public class TestMissingArg extends TestCase { - String err_msg; - /** - * This function tests parseLine function of the - * XlcErrorParser class. Error message generated by - * xlc compiler with medium severity (E) is given as - * input for testing. - */ - public void testparseLine() - { - XlcErrorParser aix = new XlcErrorParser(); - aix.parseLine(err_msg); - assertEquals("temp8.c", aix.getFileName()); - assertEquals(9, aix.getLineNumber()); - assertEquals("E", aix.getSeverity()); - assertEquals(" Missing argument(s).",aix.getMessage()); - } - public TestMissingArg( String name) - { - super(name); - err_msg = "\"temp8.c\", line 9.17: 1506-098 (E) " - + "Missing argument(s)."; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java deleted file mode 100644 index c8e66ad653f..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.cdt.errorparsers.xlc.XlcErrorParser; - -import junit.framework.TestCase; - -public class TestNoFuncProto extends TestCase { - String err_msg; - /** - * This function tests parseLine function of the - * XlcErrorParser class. Warning message generated by - * xlc compiler (W) is given as input for testing. - */ - public void testparseLine() - { - XlcErrorParser aix = new XlcErrorParser(); - aix.parseLine(err_msg); - assertEquals("temp1.c", aix.getFileName()); - assertEquals(5, aix.getLineNumber()); - assertEquals("W", aix.getSeverity()); - assertEquals(" No function prototype given for \"printf\".",aix.getMessage()); - } - public TestNoFuncProto( String name) - { - super(name); - err_msg = "\"temp1.c\", line 5.9: 1506-304 (W) " - + "No function prototype given for \"printf\"."; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java deleted file mode 100644 index aac5e04c101..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.cdt.errorparsers.xlc.XlcErrorParser; - -import junit.framework.TestCase; - - -public class TestOperModi extends TestCase { - String err_msg; - /** - * This function tests parseLine function of the - * XlcErrorParser class. Error message generated by - * xlc compiler with high severity (S) is given as - * input for testing. - */ - public void testparseLine() - { - XlcErrorParser aix = new XlcErrorParser(); - aix.parseLine(err_msg); - assertEquals("temp9.c", aix.getFileName()); - assertEquals(13, aix.getLineNumber()); - assertEquals("S", aix.getSeverity()); - assertEquals(" Operand must be a modifiable lvalue.",aix.getMessage()); - } - public TestOperModi( String name) - { - super(name); - err_msg = "\"temp9.c\", line 13.9: 1506-025 (S) " + - "Operand must be a modifiable lvalue."; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java deleted file mode 100644 index d71de9a2815..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.cdt.errorparsers.xlc.XlcErrorParser; - -import junit.framework.TestCase; - -public class TestSyntaxError extends TestCase { - String err_msg; - /** - * This function tests parseLine function of the - * XlcErrorParser class. Error message generated by - * xlc compiler with high severity (S) is given as - * input for testing. - */ - public void testparseLine() - { - XlcErrorParser aix = new XlcErrorParser(); - aix.parseLine(err_msg); - assertEquals("temp1.c", aix.getFileName()); - assertEquals(5, aix.getLineNumber()); - assertEquals("S", aix.getSeverity()); - assertEquals(" Syntax error: possible missing ')'?",aix.getMessage()); - } - public TestSyntaxError( String name) - { - super(name); - err_msg = "\"temp1.c\", line 5.1: 1506-276 (S) " - + "Syntax error: possible missing ')'?"; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java deleted file mode 100644 index d9ddcb0b67b..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.cdt.errorparsers.xlc.XlcErrorParser; - -import junit.framework.TestCase; - -public class TestUndeclIdent extends TestCase { - String err_msg; - /** - * This function tests parseLine function of the - * XlcErrorParser class. Error message generated by - * xlc compiler with high severity (S) is given as - * input for testing. - */ - public void testparseLine() - { - XlcErrorParser aix = new XlcErrorParser(); - aix.parseLine(err_msg); - assertEquals("temp5.c", aix.getFileName()); - assertEquals(5, aix.getLineNumber()); - assertEquals("S", aix.getSeverity()); - assertEquals(" Undeclared identifier y.",aix.getMessage()); - } - public TestUndeclIdent( String name) - { - super(name); - err_msg = "\"temp5.c\", line 5.9: 1506-045 (S) " + - "Undeclared identifier y."; - } -} \ No newline at end of file diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java deleted file mode 100644 index f9d6b719eba..00000000000 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java +++ /dev/null @@ -1,95 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.errorparsers.xlc.tests; - -import org.eclipse.ui.plugin.*; -import org.eclipse.jface.resource.ImageDescriptor; -import org.osgi.framework.BundleContext; -import java.util.*; - -/** - * The main plugin class to be used in the desktop. - */ -public class TestsPlugin extends AbstractUIPlugin { - //The shared instance. - private static TestsPlugin plugin; - //Resource bundle. - private ResourceBundle resourceBundle; - - /** - * The constructor. - */ - public TestsPlugin() { - super(); - plugin = this; - } - - /** - * This method is called upon plug-in activation - */ - public void start(BundleContext context) throws Exception { - super.start(context); - } - - /** - * This method is called when the plug-in is stopped - */ - public void stop(BundleContext context) throws Exception { - super.stop(context); - plugin = null; - resourceBundle = null; - } - - /** - * Returns the shared instance. - */ - public static TestsPlugin getDefault() { - return plugin; - } - - /** - * Returns the string from the plugin's resource bundle, - * or 'key' if not found. - */ - public static String getResourceString(String key) { - ResourceBundle bundle = TestsPlugin.getDefault().getResourceBundle(); - try { - return (bundle != null) ? bundle.getString(key) : key; - } catch (MissingResourceException e) { - return key; - } - } - - /** - * Returns the plugin's resource bundle, - */ - public ResourceBundle getResourceBundle() { - try { - if (resourceBundle == null) - resourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.errorparsers.xlc.tests.TestsPluginResources"); - } catch (MissingResourceException x) { - resourceBundle = null; - } - return resourceBundle; - } - - /** - * Returns an image descriptor for the image file at the given - * plug-in relative path. - * - * @param path the path - * @return the image descriptor - */ - public static ImageDescriptor getImageDescriptor(String path) { - return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.cdt.errorparsers.xlc.tests", path); - } -} -- cgit v1.2.3