summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkolb2007-12-14 20:20:30 (EST)
committer bkolb2007-12-14 20:20:30 (EST)
commitd7186ba2619d85a36343d466917a571409802ebb (patch)
treec78ebcb05b7759e59539e0a491a3a7612df2cd11
parent954ec30426f3d0491d23ead3a930c99869f9e960 (diff)
downloadorg.eclipse.xpand-d7186ba2619d85a36343d466917a571409802ebb.zip
org.eclipse.xpand-d7186ba2619d85a36343d466917a571409802ebb.tar.gz
org.eclipse.xpand-d7186ba2619d85a36343d466917a571409802ebb.tar.bz2
added suites
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/AllAllTests.java25
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/AllTests.java19
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/check/AllTests.java18
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/codeassist/AllTests.java16
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/AllTests.java20
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/ast/AllTests.java18
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/codeassist/AllTests.java20
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/parser/AllTests.java18
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/parser/AllTests.java16
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/baseimpl/AllTests.java19
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/baseimpl/types/AllTests.java24
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/impl/javabeans/AllTests.java17
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/impl/oawclassic/AllTests.java17
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/javabeansimpl/AllTests.java17
-rw-r--r--plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/javabeansimpl/test/AllTests.java17
-rw-r--r--plugins/org.eclipse.xtend.tests/test.xml66
-rw-r--r--tests/org.eclipse.xtend.typesystem.emf.tests/src/org/eclipse/xtend/typesystem/emf/AllAllTests.java11
-rw-r--r--tests/org.eclipse.xtend.typesystem.emf.tests/src/org/eclipse/xtend/typesystem/emf/AllTests.java19
-rw-r--r--tests/org.eclipse.xtend.typesystem.emf.tests/test.xml66
19 files changed, 443 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/AllAllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/AllAllTests.java
new file mode 100644
index 0000000..5fffe41
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/AllAllTests.java
@@ -0,0 +1,25 @@
+package org.eclipse.xtend;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllAllTests extends TestSuite{
+
+ public AllAllTests() {
+ addTest(AllTests.suite());
+ addTest(org.eclipse.xtend.check.AllTests.suite());
+ addTest(org.eclipse.xtend.codeassist.AllTests.suite());
+ addTest(org.eclipse.xtend.expression.AllTests.suite());
+ addTest(org.eclipse.xtend.expression.ast.AllTests.suite());
+ addTest(org.eclipse.xtend.expression.codeassist.AllTests.suite());
+ addTest(org.eclipse.xtend.expression.parser.AllTests.suite());
+ addTest(org.eclipse.xtend.parser.AllTests.suite());
+ addTest(org.eclipse.xtend.typesystem.baseimpl.AllTests.suite());
+ addTest(org.eclipse.xtend.typesystem.baseimpl.types.AllTests.suite());
+ addTest(org.eclipse.xtend.typesystem.impl.javabeans.AllTests.suite());
+ addTest(org.eclipse.xtend.typesystem.impl.oawclassic.AllTests.suite());
+ addTest(org.eclipse.xtend.typesystem.javabeansimpl.AllTests.suite());
+ addTest(org.eclipse.xtend.typesystem.javabeansimpl.test.AllTests.suite());
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/AllTests.java
new file mode 100644
index 0000000..9d35f04
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/AllTests.java
@@ -0,0 +1,19 @@
+package org.eclipse.xtend;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.eclipse.xtend");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(ExtensionAnalyzationTest.class);
+ suite.addTestSuite(XtendFacadeTest.class);
+ suite.addTestSuite(XtendComponentTest.class);
+ suite.addTestSuite(ExtensionEvaluationTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/check/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/check/AllTests.java
new file mode 100644
index 0000000..11ee5ff
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/check/AllTests.java
@@ -0,0 +1,18 @@
+package org.eclipse.xtend.check;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.eclipse.xtend.check");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(CheckFastAnalyzerTest.class);
+ suite.addTestSuite(CheckAnalyzationTest.class);
+ suite.addTestSuite(CheckEvaluationTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/codeassist/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/codeassist/AllTests.java
new file mode 100644
index 0000000..a19661e
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/codeassist/AllTests.java
@@ -0,0 +1,16 @@
+package org.eclipse.xtend.codeassist;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.eclipse.xtend.codeassist");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(FastAnalyzerTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/AllTests.java
new file mode 100644
index 0000000..7310075
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/AllTests.java
@@ -0,0 +1,20 @@
+package org.eclipse.xtend.expression;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.eclipse.xtend.expression");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(PolymorphismTest.class);
+ suite.addTestSuite(TypeNameUtilTest.class);
+ suite.addTestSuite(ResourceManagerDefaultImplTest.class);
+ suite.addTestSuite(EvaluationExceptionTest.class);
+ suite.addTestSuite(ExecutionContextImplTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/ast/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/ast/AllTests.java
new file mode 100644
index 0000000..890e59e
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/ast/AllTests.java
@@ -0,0 +1,18 @@
+package org.eclipse.xtend.expression.ast;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.expression.ast");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(EvaluationTest.class);
+ suite.addTestSuite(AnalyzationTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/codeassist/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/codeassist/AllTests.java
new file mode 100644
index 0000000..b728e38
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/codeassist/AllTests.java
@@ -0,0 +1,20 @@
+package org.eclipse.xtend.expression.codeassist;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.expression.codeassist");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(ReverseScannerTest.class);
+ suite.addTestSuite(ExpressionProposalComputerTest.class);
+ suite.addTestSuite(TypeProposalComputerTest.class);
+ suite.addTestSuite(ExtensionImportProposalComputerTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/parser/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/parser/AllTests.java
new file mode 100644
index 0000000..7e2f979
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/expression/parser/AllTests.java
@@ -0,0 +1,18 @@
+package org.eclipse.xtend.expression.parser;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.expression.parser");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(ParserTest.class);
+ suite.addTestSuite(ScannerTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/parser/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/parser/AllTests.java
new file mode 100644
index 0000000..5289ab4
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/parser/AllTests.java
@@ -0,0 +1,16 @@
+package org.eclipse.xtend.parser;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.eclipse.xtend.parser");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(ExtensionParserTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/baseimpl/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/baseimpl/AllTests.java
new file mode 100644
index 0000000..5dc7cb6
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/baseimpl/AllTests.java
@@ -0,0 +1,19 @@
+package org.eclipse.xtend.typesystem.baseimpl;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.typesystem.baseimpl");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(ObjectFeaturesTest.class);
+ suite.addTestSuite(TypesComparatorTest.class);
+ suite.addTestSuite(CollectionFeaturesTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/baseimpl/types/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/baseimpl/types/AllTests.java
new file mode 100644
index 0000000..3be695f
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/baseimpl/types/AllTests.java
@@ -0,0 +1,24 @@
+package org.eclipse.xtend.typesystem.baseimpl.types;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.typesystem.baseimpl.types");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(IntegerTypeTest.class);
+ suite.addTestSuite(CollectionTypeTest.class);
+ suite.addTestSuite(ObjectTypeTest.class);
+ suite.addTestSuite(TypeTypeTest.class);
+ suite.addTestSuite(RealTypeTest.class);
+ suite.addTestSuite(StringTypeTest.class);
+ suite.addTestSuite(EnumTest.class);
+ suite.addTestSuite(BooleanTypeTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/impl/javabeans/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/impl/javabeans/AllTests.java
new file mode 100644
index 0000000..120eb36
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/impl/javabeans/AllTests.java
@@ -0,0 +1,17 @@
+package org.eclipse.xtend.typesystem.impl.javabeans;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.typesystem.impl.javabeans");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(JavaBeansStrategyTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/impl/oawclassic/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/impl/oawclassic/AllTests.java
new file mode 100644
index 0000000..5c5f716
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/impl/oawclassic/AllTests.java
@@ -0,0 +1,17 @@
+package org.eclipse.xtend.typesystem.impl.oawclassic;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.typesystem.impl.oawclassic");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(OawClassicStrategyTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/javabeansimpl/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/javabeansimpl/AllTests.java
new file mode 100644
index 0000000..183e09e
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/javabeansimpl/AllTests.java
@@ -0,0 +1,17 @@
+package org.eclipse.xtend.typesystem.javabeansimpl;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.typesystem.javabeansimpl");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(JavaTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/javabeansimpl/test/AllTests.java b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/javabeansimpl/test/AllTests.java
new file mode 100644
index 0000000..25c1ef1
--- /dev/null
+++ b/plugins/org.eclipse.xtend.tests/src/org/eclipse/xtend/typesystem/javabeansimpl/test/AllTests.java
@@ -0,0 +1,17 @@
+package org.eclipse.xtend.typesystem.javabeansimpl.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.typesystem.javabeansimpl.test");
+ //$JUnit-BEGIN$
+
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtend.tests/test.xml b/plugins/org.eclipse.xtend.tests/test.xml
new file mode 100644
index 0000000..5c34d54
--- /dev/null
+++ b/plugins/org.eclipse.xtend.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:20:30 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.xtend.AllAllTests"/>
+ </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>
diff --git a/tests/org.eclipse.xtend.typesystem.emf.tests/src/org/eclipse/xtend/typesystem/emf/AllAllTests.java b/tests/org.eclipse.xtend.typesystem.emf.tests/src/org/eclipse/xtend/typesystem/emf/AllAllTests.java
new file mode 100644
index 0000000..60edb85
--- /dev/null
+++ b/tests/org.eclipse.xtend.typesystem.emf.tests/src/org/eclipse/xtend/typesystem/emf/AllAllTests.java
@@ -0,0 +1,11 @@
+package org.eclipse.xtend.typesystem.emf;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllAllTests extends TestSuite {
+
+ public AllAllTests() {
+ addTest(AllTests.suite());
+ }
+}
diff --git a/tests/org.eclipse.xtend.typesystem.emf.tests/src/org/eclipse/xtend/typesystem/emf/AllTests.java b/tests/org.eclipse.xtend.typesystem.emf.tests/src/org/eclipse/xtend/typesystem/emf/AllTests.java
new file mode 100644
index 0000000..73c2730
--- /dev/null
+++ b/tests/org.eclipse.xtend.typesystem.emf.tests/src/org/eclipse/xtend/typesystem/emf/AllTests.java
@@ -0,0 +1,19 @@
+package org.eclipse.xtend.typesystem.emf;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.xtend.typesystem.emf");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(EmfMetaModelTest.class);
+ suite.addTest(AllTests.suite());
+ suite.addTestSuite(EnumTypeTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
diff --git a/tests/org.eclipse.xtend.typesystem.emf.tests/test.xml b/tests/org.eclipse.xtend.typesystem.emf.tests/test.xml
new file mode 100644
index 0000000..e787327
--- /dev/null
+++ b/tests/org.eclipse.xtend.typesystem.emf.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:22:08 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.xtend.typesystem.emf.AllAllTests.java"/>
+ </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>