blob: 4b8556cda196a2c9c8f3589b3cd4dd1cdb902347 [file] [log] [blame]
cbatemanabc93fe2007-05-30 17:40:38 +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.validation.el.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.validation.el.tests.*xml"/>
20 </delete>
21 </target>
22
23 <!-- This target defines the tests that need to be run. -->
24 <target name="suite_1_1">
25 <property name="jsf-folder" value="${eclipse-home}/jsf_folder"/>
26 <delete dir="${jsf-folder}" quiet="true"/>
rsrinivasan6a7dbda2007-12-27 19:24:59 +000027 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
cbatemanabc93fe2007-05-30 17:40:38 +000028 <property name="data-dir" value="${jsf-folder}"/>
29 <property name="plugin-name" value="${plugin-name}"/>
30 <property name="classname" value="org.eclipse.jst.jsf.validation.el.tests.AllTests_1_1" />
31 <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/>
32 </ant>
33 </target>
34
35 <target name="suite_1_2">
36 <property name="jsf-folder" value="${eclipse-home}/jsf_folder"/>
37 <delete dir="${jsf-folder}" quiet="true"/>
rsrinivasan6a7dbda2007-12-27 19:24:59 +000038 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
cbatemanabc93fe2007-05-30 17:40:38 +000039 <property name="data-dir" value="${jsf-folder}"/>
40 <property name="plugin-name" value="${plugin-name}"/>
41 <property name="classname" value="org.eclipse.jst.jsf.validation.el.tests.AllTests_1_2" />
42 <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/>
43 </ant>
44 </target>
45
46 <!-- This target holds code to cleanup the testing environment after -->
47 <!-- after all of the tests have been run. You can use this target to -->
48 <!-- delete temporary files that have been created. -->
49 <target name="cleanup">
50 </target>
51
52 <!-- This target runs the test suite. Any actions that need to happen -->
53 <!-- after all the tests have been run should go here. -->
54 <target name="run" depends="init,suite_1_1,suite_1_2,cleanup">
55 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
56 <property name="includes" value="org.eclipse.jst.jsf.validation.el.tests.*xml"/>
57 <property name="output-file" value="${plugin-name}.xml"/>
58 </ant>
59 </target>
60</project>