summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkolb2007-12-14 20:00:45 (EST)
committer bkolb2007-12-14 20:00:45 (EST)
commitff1de77ad1f1b76ffc30608974386c61757251e1 (patch)
tree69457512f7923661e05938bc3e00e5d1ae1e3439
parentc490430111f6710471caf227647eb57cf4964694 (diff)
downloadorg.eclipse.xpand-ff1de77ad1f1b76ffc30608974386c61757251e1.zip
org.eclipse.xpand-ff1de77ad1f1b76ffc30608974386c61757251e1.tar.gz
org.eclipse.xpand-ff1de77ad1f1b76ffc30608974386c61757251e1.tar.bz2
added suites
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/AllPackageTests.java18
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/AllTests.java21
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/analyze/AllPackageTests.java17
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/codeassist/AllPackageTests.java19
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/evaluate/AllPackageTests.java19
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/impl/AllPackageTests.java17
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/output/AllPackageTests.java18
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/parser/AllPackageTests.java18
-rw-r--r--tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/pr/AllPackageTests.java17
-rw-r--r--tests/org.eclipse.xpand.tests/test.xml66
10 files changed, 230 insertions, 0 deletions
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/AllPackageTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/AllPackageTests.java
new file mode 100644
index 0000000..cc3f7ed
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/AllPackageTests.java
@@ -0,0 +1,18 @@
+package org.eclipse.xpand.internal.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllPackageTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xpand.internal.tests");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(GeneratorTest.class);
+ suite.addTestSuite(GeneratorAdviceTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/AllTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/AllTests.java
new file mode 100644
index 0000000..e1466fd
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/AllTests.java
@@ -0,0 +1,21 @@
+package org.eclipse.xpand.internal.tests;
+
+
+import org.eclipse.xpand.internal.tests.analyze.AllPackageTests;
+
+import junit.framework.TestSuite;
+
+public class AllTests extends TestSuite{
+
+ public AllTests() {
+ addTest(org.eclipse.xpand.internal.tests.pr.AllPackageTests.suite());
+ addTest(org.eclipse.xpand.internal.tests.AllPackageTests.suite());
+ addTest(AllPackageTests.suite());
+ addTest(org.eclipse.xpand.internal.tests.codeassist.AllPackageTests.suite());
+ addTest(org.eclipse.xpand.internal.tests.evaluate.AllPackageTests.suite());
+ addTest(org.eclipse.xpand.internal.tests.impl.AllPackageTests.suite());
+ addTest(org.eclipse.xpand.internal.tests.output.AllPackageTests.suite());
+ addTest(org.eclipse.xpand.internal.tests.parser.AllPackageTests.suite());
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/analyze/AllPackageTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/analyze/AllPackageTests.java
new file mode 100644
index 0000000..b5c2b04
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/analyze/AllPackageTests.java
@@ -0,0 +1,17 @@
+package org.eclipse.xpand.internal.tests.analyze;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllPackageTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xpand.internal.tests.analyze");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(StatementAnalyzationTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/codeassist/AllPackageTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/codeassist/AllPackageTests.java
new file mode 100644
index 0000000..dd18ea8
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/codeassist/AllPackageTests.java
@@ -0,0 +1,19 @@
+package org.eclipse.xpand.internal.tests.codeassist;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllPackageTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xpand.internal.tests.codeassist");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(FastAnalyzerTest.class);
+ suite.addTestSuite(KeywordProposalComputerTest.class);
+ suite.addTestSuite(StatementProposalComputerTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/evaluate/AllPackageTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/evaluate/AllPackageTests.java
new file mode 100644
index 0000000..74179b0
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/evaluate/AllPackageTests.java
@@ -0,0 +1,19 @@
+package org.eclipse.xpand.internal.tests.evaluate;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllPackageTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xpand.internal.tests.evaluate");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(AopFeatureTest.class);
+ suite.addTestSuite(ProtectedRegionsTest.class);
+ suite.addTestSuite(StatementEvaluatorTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/impl/AllPackageTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/impl/AllPackageTests.java
new file mode 100644
index 0000000..68a1c4d
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/impl/AllPackageTests.java
@@ -0,0 +1,17 @@
+package org.eclipse.xpand.internal.tests.impl;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllPackageTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xpand.internal.tests.impl");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(NameUtilTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/output/AllPackageTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/output/AllPackageTests.java
new file mode 100644
index 0000000..ddba46a
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/output/AllPackageTests.java
@@ -0,0 +1,18 @@
+package org.eclipse.xpand.internal.tests.output;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllPackageTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xpand.internal.tests.output");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(OutputImplTest.class);
+ suite.addTestSuite(NoChangesVetoStrategyTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/parser/AllPackageTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/parser/AllPackageTests.java
new file mode 100644
index 0000000..b785d15
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/parser/AllPackageTests.java
@@ -0,0 +1,18 @@
+package org.eclipse.xpand.internal.tests.parser;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllPackageTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xpand.internal.tests.parser");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(StatementParserTest.class);
+ suite.addTestSuite(XpandLexerTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/pr/AllPackageTests.java b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/pr/AllPackageTests.java
new file mode 100644
index 0000000..1718d86
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/src/org/eclipse/xpand/internal/tests/pr/AllPackageTests.java
@@ -0,0 +1,17 @@
+package org.eclipse.xpand.internal.tests.pr;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllPackageTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xpand.internal.tests.pr");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(ProtectedRegionResolverImplTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xpand.tests/test.xml b/tests/org.eclipse.xpand.tests/test.xml
new file mode 100644
index 0000000..bb7af5c
--- /dev/null
+++ b/tests/org.eclipse.xpand.tests/test.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2005 openArchitectureWare commiters 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:
+ * openArchitectureWare commiters - Initial API and implementation
+ *
+ * </copyright>
+ *
+ * $Id: test.xml,v 1.1 2007/12/15 01:00:45 bkolb 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.xpand.tests"/>
+ <property name="library-file" value="${eclipse-home}/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="emft-folder" value="${eclipse-home}/emf_folder"/>
+ <delete dir="${emft-folder}" quiet="true"/>
+ <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
+ <property name="data-dir" value="${emft-folder}"/>
+ <property name="plugin-name" value="${plugin-name}"/>
+ <property name="classname" value="org.eclipse.xpand.internal.tests.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>