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