Stephan Herrmann | 71432c0 | 2011-10-25 16:30:36 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
| 3 | <!-- |
Stephan Herrmann | 03fc98b | 2014-11-04 20:35:01 +0100 | [diff] [blame] | 4 | Copyright (c) 2002, 2014 IBM Corporation and others. |
Stephan Herrmann | 5ed21e4 | 2010-04-01 21:40:57 +0000 | [diff] [blame] | 5 | All rights reserved. This program and the accompanying materials |
| 6 | are made available under the terms of the Eclipse Public License v1.0 |
| 7 | which accompanies this distribution, and is available at |
| 8 | http://www.eclipse.org/legal/epl-v10.html |
| 9 | |
| 10 | Contributors: |
| 11 | IBM Corporation - initial API and implementation |
| 12 | Technical University Berlin - adapted for Object Teams |
| 13 | --> |
| 14 | |
| 15 | <project name="testsuite" default="run" basedir="."> |
| 16 | <!-- The property ${eclipse-home} should be passed into this script --> |
| 17 | <!-- Set a meaningful default value for when it is not. --> |
| 18 | <property name="eclipse-home" value="${basedir}\..\.."/> |
| 19 | |
| 20 | <!-- sets the properties eclipse-home, and library-file --> |
| 21 | <property name="plugin-name" value="org.eclipse.jdt.core.tests.compiler"/> |
| 22 | <property name="library-file" |
| 23 | value="${eclipse-home}/plugins/${org.eclipse.test}/library.xml"/> |
| 24 | |
| 25 | <!-- This target holds all initialization code that needs to be done for --> |
| 26 | <!-- all tests that are to be run. Initialization for individual tests --> |
| 27 | <!-- should be done within the body of the suite target. --> |
| 28 | <target name="init"> |
| 29 | <tstamp/> |
| 30 | <delete> |
| 31 | <fileset dir="${eclipse-home}" includes="org*.xml"/> |
| 32 | </delete> |
| 33 | </target> |
| 34 | |
| 35 | <!-- This target defines the tests that need to be run. --> |
| 36 | <target name="suite"> |
Stephan Herrmann | 5ed21e4 | 2010-04-01 21:40:57 +0000 | [diff] [blame] | 37 | <!-- Parser tests --> |
| 38 | <property name="jdt-parser-folder" |
| 39 | value="${eclipse-home}/jdt_parser_folder"/> |
| 40 | <delete dir="${jdt-parser-folder}" quiet="true"/> |
| 41 | <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}"> |
| 42 | <property name="data-dir" value="${jdt-parser-folder}"/> |
| 43 | <property name="plugin-name" value="${plugin-name}"/> |
| 44 | <property name="classname" |
| 45 | value="org.eclipse.jdt.core.tests.compiler.parser.TestAll"/> |
| 46 | </ant> |
| 47 | |
| 48 | <!-- Compiler regression tests --> |
| 49 | <property name="jdt-compiler-folder" |
| 50 | value="${eclipse-home}/jdt_compiler_folder"/> |
| 51 | <delete dir="${jdt-compiler-folder}" quiet="true"/> |
| 52 | <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}"> |
| 53 | <property name="data-dir" value="${jdt-compiler-folder}"/> |
| 54 | <property name="plugin-name" value="${plugin-name}"/> |
| 55 | <property name="classname" |
| 56 | value="org.eclipse.jdt.core.tests.compiler.regression.TestAll"/> |
| 57 | </ant> |
| 58 | |
| 59 | <antcall target="evaluation_tests"/> |
| 60 | </target> |
| 61 | |
Stephan Herrmann | cf711a1 | 2014-03-11 16:19:58 +0100 | [diff] [blame] | 62 | <target name="evaluation_tests"> |
Stephan Herrmann | 5ed21e4 | 2010-04-01 21:40:57 +0000 | [diff] [blame] | 63 | <!-- Evaluation tests --> |
| 64 | <property name="jdt-eval-folder" |
| 65 | value="${eclipse-home}/jdt_eval_folder"/> |
| 66 | <delete dir="${jdt-eval-folder}" quiet="true"/> |
| 67 | <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}"> |
| 68 | <property name="data-dir" value="${jdt-eval-folder}"/> |
| 69 | <property name="plugin-name" value="${plugin-name}"/> |
| 70 | <property name="classname" |
| 71 | value="org.eclipse.jdt.core.tests.eval.TestAll"/> |
| 72 | </ant> |
| 73 | </target> |
| 74 | <!-- This target holds code to cleanup the testing environment after --> |
| 75 | <!-- after all of the tests have been run. You can use this target to --> |
| 76 | <!-- delete temporary files that have been created. --> |
| 77 | <target name="cleanup"> |
| 78 | </target> |
| 79 | |
| 80 | <!-- This target runs the test suite. Any actions that need to happen --> |
| 81 | <!-- after all the tests have been run should go here. --> |
| 82 | <target name="run" depends="init,suite,cleanup"> |
| 83 | <echo message="OTTest: done running ${plugin-name}"/> |
| 84 | <!-- ObjectTeams: per-plugin collect not needed. |
| 85 | <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> |
| 86 | <property name="includes" value="org*.xml"/> |
| 87 | <property name="output-file" value="${plugin-name}.xml"/> |
| 88 | </ant> |
| 89 | --> |
| 90 | </target> |
| 91 | |
Stephan Herrmann | 5ed21e4 | 2010-04-01 21:40:57 +0000 | [diff] [blame] | 92 | </project> |