blob: 5a30f19e1223d858b7ffa3812734050c11113f29 [file] [log] [blame]
justinchen670b8f72006-06-15 22:54:09 +00001<?xml version="1.0"?>
2
3<project name="testsuite" default="run" basedir=".">
4 <!-- The property ${eclipse-home} should be passed into this script -->
5 <!-- Set a meaningful default value for when it is not. -->
6 <!-- <property name="eclipse-home" value="${basedir}\..\.."/> -->
7 <echo message="basedir ${basedir}" />
8 <echo message="eclipse place ${eclipse-home}" />
9 <!-- sets the properties plugin-name, and library-file -->
10 <property name="plugin-name" value="org.eclipse.jst.jsf.metadata.tests"/>
11 <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml"/>
12
13 <!-- This target holds all initialization code that needs to be done for -->
14 <!-- all tests that are to be run. Initialization for individual tests -->
15 <!-- should be done within the body of the suite target. -->
16 <target name="init">
17 <tstamp/>
18 <delete>
19 <fileset dir="${eclipse-home}" includes="org.eclipse.jst.jsf.metadata.tests.*xml"/>
20 </delete>
21 </target>
22
23 <!-- This target defines the tests that need to be run. -->
24 <target name="suite">
25 <property name="jsf-folder" value="${eclipse-home}/jsf_folder"/>
26 <delete dir="${jsf-folder}" quiet="true"/>
27 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
28 <property name="data-dir" value="${jsf-folder}"/>
29 <property name="plugin-name" value="${plugin-name}"/>
30 <property name="classname" value="org.eclipse.jst.jsf.metadata.tests.AllTests" />
31 <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/>
32 </ant>
33 </target>
34
35 <!-- This target holds code to cleanup the testing environment after -->
36 <!-- after all of the tests have been run. You can use this target to -->
37 <!-- delete temporary files that have been created. -->
38 <target name="cleanup">
39 </target>
40
41 <!-- This target runs the test suite. Any actions that need to happen -->
42 <!-- after all the tests have been run should go here. -->
43 <target name="run" depends="init,suite,cleanup">
44 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
45 <property name="includes" value="org.eclipse.jst.jsf.metadata.tests.*xml"/>
46 <property name="output-file" value="${plugin-name}.xml"/>
47 </ant>
48 </target>
49</project>