summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmusset2009-03-05 11:33:43 (EST)
committer jmusset2009-03-05 11:33:43 (EST)
commit4a6b8ad4715be67da93ba8333a0c5a13bb3d1d83 (patch)
tree9e5f1cd7e473da52b2ac32614d0d1ec2d2cdadce
parenta899a7612649bd5fc8fa3769da94b4057276f97f (diff)
downloadorg.eclipse.acceleo-4a6b8ad4715be67da93ba8333a0c5a13bb3d1d83.zip
org.eclipse.acceleo-4a6b8ad4715be67da93ba8333a0c5a13bb3d1d83.tar.gz
org.eclipse.acceleo-4a6b8ad4715be67da93ba8333a0c5a13bb3d1d83.tar.bz2
Project renaming from MTL to Acceleo
-rw-r--r--tests/org.eclipse.acceleo.tests/.classpath7
-rw-r--r--tests/org.eclipse.acceleo.tests/.project28
-rw-r--r--tests/org.eclipse.acceleo.tests/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--tests/org.eclipse.acceleo.tests/META-INF/MANIFEST.MF18
-rw-r--r--tests/org.eclipse.acceleo.tests/about.html29
-rw-r--r--tests/org.eclipse.acceleo.tests/build.properties6
-rw-r--r--tests/org.eclipse.acceleo.tests/src/org/eclipse/acceleo/tests/suite/AllTests.java59
-rw-r--r--tests/org.eclipse.acceleo.tests/test.xml66
8 files changed, 220 insertions, 0 deletions
diff --git a/tests/org.eclipse.acceleo.tests/.classpath b/tests/org.eclipse.acceleo.tests/.classpath
new file mode 100644
index 0000000..64c5e31
--- /dev/null
+++ b/tests/org.eclipse.acceleo.tests/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/tests/org.eclipse.acceleo.tests/.project b/tests/org.eclipse.acceleo.tests/.project
new file mode 100644
index 0000000..d67bc0e
--- /dev/null
+++ b/tests/org.eclipse.acceleo.tests/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.acceleo.tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/tests/org.eclipse.acceleo.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.acceleo.tests/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..982d627
--- /dev/null
+++ b/tests/org.eclipse.acceleo.tests/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Wed Jul 23 18:15:53 CEST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.acceleo.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.acceleo.tests/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..f91a610
--- /dev/null
+++ b/tests/org.eclipse.acceleo.tests/META-INF/MANIFEST.MF
@@ -0,0 +1,18 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Acceleo Tests
+Bundle-SymbolicName: org.eclipse.acceleo.tests
+Bundle-Version: 0.8.0.qualifier
+Bundle-Vendor: Eclipse.org
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.emf.ecore,
+ org.eclipse.emf.ecore.xmi,
+ org.eclipse.ocl.ecore,
+ org.eclipse.acceleo.model,
+ org.eclipse.acceleo.parser,
+ org.junit,
+ org.eclipse.acceleo.common,
+ org.eclipse.acceleo.engine.tests,
+ org.eclipse.acceleo.ide.ui.tests,
+ org.eclipse.acceleo.parser.tests
diff --git a/tests/org.eclipse.acceleo.tests/about.html b/tests/org.eclipse.acceleo.tests/about.html
new file mode 100644
index 0000000..5b47ee0
--- /dev/null
+++ b/tests/org.eclipse.acceleo.tests/about.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+ <h3>About This Content</h3>
+
+ <p>June 5, 2007</p>
+ <h3>License</h3>
+
+ <p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;).
+ Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
+ Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+ at <a href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>.
+ For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+ <p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+ being redistributed by another party (&quot;Redistributor&quot;) 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 <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+ <p align="right"><small><a href="#top">go to top</a></small></p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/tests/org.eclipse.acceleo.tests/build.properties b/tests/org.eclipse.acceleo.tests/build.properties
new file mode 100644
index 0000000..40b3b38
--- /dev/null
+++ b/tests/org.eclipse.acceleo.tests/build.properties
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ test.xml
+src.includes = test.xml
diff --git a/tests/org.eclipse.acceleo.tests/src/org/eclipse/acceleo/tests/suite/AllTests.java b/tests/org.eclipse.acceleo.tests/src/org/eclipse/acceleo/tests/suite/AllTests.java
new file mode 100644
index 0000000..6cadff1
--- /dev/null
+++ b/tests/org.eclipse.acceleo.tests/src/org/eclipse/acceleo/tests/suite/AllTests.java
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.acceleo.tests.suite;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.eclipse.acceleo.ide.ui.tests.editors.template.AcceleoCompletionProcessorTests;
+import org.eclipse.acceleo.ide.ui.tests.editors.template.rules.FirstVariableRuleTests;
+import org.eclipse.acceleo.parser.tests.AcceleoParserTests;
+import org.eclipse.acceleo.parser.tests.cst.CSTParserBlockTests;
+import org.eclipse.acceleo.parser.tests.cst.CSTParserTests;
+import org.eclipse.acceleo.parser.tests.cst.utils.FileContentTests;
+import org.eclipse.acceleo.parser.tests.cst.utils.SequenceTests;
+
+/**
+ * This suite will launch all the tests defined for the Acceleo parser.
+ *
+ * @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
+ */
+public class AllTests {
+
+ /**
+ * Launches the test with the given arguments.
+ *
+ * @param args
+ * Arguments of the testCase.
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * Creates the {@link junit.framework.TestSuite TestSuite} for all the test.
+ *
+ * @return The test suite containing all the tests
+ */
+ public static Test suite() {
+ final TestSuite suite = new TestSuite("Acceleo test suite");
+ suite.addTestSuite(AcceleoParserTests.class);
+ suite.addTestSuite(CSTParserBlockTests.class);
+ suite.addTestSuite(CSTParserTests.class);
+ suite.addTestSuite(FileContentTests.class);
+ suite.addTestSuite(SequenceTests.class);
+ suite.addTestSuite(AcceleoCompletionProcessorTests.class);
+ suite.addTestSuite(FirstVariableRuleTests.class);
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.acceleo.tests/test.xml b/tests/org.eclipse.acceleo.tests/test.xml
new file mode 100644
index 0000000..2960a6e
--- /dev/null
+++ b/tests/org.eclipse.acceleo.tests/test.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2008 Obeo 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:
+ * Obeo - Initial API and implementation
+ *
+ * </copyright>
+ *
+ * $Id: test.xml,v 1.1 2009/03/05 16:33:43 jmusset Exp $
+ */
+-->
+
+<project name="testsuite" default="run" basedir=".">
+ <!-- The property ${eclipse-home} should be passed into this script -->
+ <!-- Set a meaningful default value for when it is not. -->
+ <property name="eclipse-home" value="${basedir}\..\.."/>
+
+ <!-- sets the properties plugin-name, and library-file -->
+ <property name="plugin-name" value="org.eclipse.acceleo.tests"/>
+ <property name="library-file" value="${eclipse-home}/dropins/eclipse/plugins/org.eclipse.test/library.xml"/>
+
+ <!-- This target holds all initialization code that needs to be done for -->
+ <!-- all tests that are to be run. Initialization for individual tests -->
+ <!-- should be done within the body of the suite target. -->
+ <target name="init">
+ <tstamp/>
+ <delete>
+ <fileset dir="${eclipse-home}" includes="org*.xml"/>
+ </delete>
+ </target>
+
+ <!-- This target defines the tests that need to be run. -->
+ <target name="suite">
+ <property name="m2t-folder" value="${eclipse-home}/emf_folder"/>
+ <delete dir="${m2t-folder}" quiet="true"/>
+ <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
+ <property name="data-dir" value="${m2t-folder}"/>
+ <property name="plugin-name" value="${plugin-name}"/>
+ <property name="classname" value="org.eclipse.acceleo.tests.suite.AllTests"/>
+ </ant>
+ </target>
+
+ <!-- This target holds code to cleanup the testing environment after -->
+ <!-- after all of the tests have been run. You can use this target to -->
+ <!-- delete temporary files that have been created. -->
+ <target name="cleanup">
+ </target>
+
+ <!-- This target runs the test suite. Any actions that need to happen -->
+ <!-- after all the tests have been run should go here. -->
+ <target name="run" depends="init,suite,cleanup">
+ <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
+ <property name="includes" value="org*.xml"/>
+ <property name="output-file" value="${plugin-name}.xml"/>
+ </ant>
+ </target>
+
+</project>