blob: 4f12281fbfaa9f148fcfc3bc833bd4fc2b938786 [file] [log] [blame]
jeffliud0eb4a72005-09-28 14:58:59 +00001<project name="WTP performance testing" default="main">
2
3 <!-- Platform property -->
4 <property name="platform" value="" />
5
6 <!-- XML and HTML results -->
7 <property name="results" value="${perfRoot}/results" />
8
9 <!-- Tomcat install directory -->
10 <property name="tomcat50Dir" value="${perfRoot}/jakarta-tomcat-5.0.28"/>
11
12 <!-- jonas install directory -->
13 <property name="jonas432Dir" value="${perfRoot}/JONAS_4_3_2"/>
14
15 <target name="runperftests">
16 <ant antfile="${wtp.perf}/build.xml" target="setup"/>
17 <available file="${perfRoot}/eclipse/plugins/${testPlugin}/test.xml" property="test.xml.exists"/>
18 <antcall target="runtests"/>
19 </target>
20
21 <target name="runtests" if="test.xml.exists">
22 <ant antfile="${perfRoot}/eclipse/plugins/${testPlugin}/test.xml" dir="${perfRoot}/eclipse">
23 <property name="library-file" value="${wtp.perf}/performance-tests.xml"/>
24 </ant>
25 <mkdir dir="${results}/xml"/>
26 <copy file="${perfRoot}/eclipse/${report}.xml" tofile="${results}/xml/${report}_${platform}.xml" failonerror="false" />
27 <antcall target="genHtml" />
28 </target>
29
30 <target name="genHtml">
31 <style style="${wtp.perf}/../wtp.tests/testScripts/JUNIT.XSL" basedir="${results}/xml" destdir="${results}/html" />
32 </target>
33
34 <!-- wst.server performance tests -->
35 <target name="wst-server-perfTests" description="Runs the org.eclipse.wst.server.tests.performance test.xml">
36 <antcall target="runperftests">
37 <param name="testPlugin" value="${org.eclipse.wst.server.tests.performance}" />
38 <param name="report" value="org.eclipse.wst.server.tests.performance" />
39 </antcall>
40 </target>
41
42 <!-- Tomcat performance tests -->
43 <target name="jst-server-tomcat-perfTests" description="Runs the org.eclipse.jst.server.tomcat.tests.performance test.xml">
44 <antcall target="runperftests">
45 <param name="testPlugin" value="${org.eclipse.jst.server.tomcat.tests.performance}" />
46 <param name="report" value="org.eclipse.jst.server.tomcat.tests.performance" />
47 </antcall>
48 </target>
49
50 <!-- JSP performance tests -->
51 <target name="jst-jsp-perfTests" description="Runs test.xml for
52 org.eclipse.jst.jsp.ui.tests.performance">
53 <antcall target="runperftests">
54 <param name="testPlugin" value="${org.eclipse.jst.jsp.ui.tests.performance}" />
55 <param name="report" value="org.eclipse.jst.jsp.ui.tests.performance" />
56 </antcall>
57 </target>
58
59 <!-- XML performance tests -->
60 <target name="wst-xml-perfTests" description="Runs test.xml for
61 org.eclipse.wst.xml.ui.tests.performance">
62 <antcall target="runperftests">
63 <param name="testPlugin" value="${org.eclipse.wst.xml.ui.tests.performance}" />
64 <param name="report" value="org.eclipse.wst.xml.ui.tests.performance" />
65 </antcall>
66 </target>
67
68 <!-- HTML performance tests -->
69 <target name="wst-html-perfTests" description="Runs test.xml for
70 org.eclipse.wst.html.ui.tests.performance">
71 <antcall target="runperftests">
72 <param name="testPlugin" value="${org.eclipse.wst.html.ui.tests.performance}" />
73 <param name="report" value="org.eclipse.wst.html.ui.tests.performance" />
74 </antcall>
75 </target>
76
77 <!-- CSS performance tests -->
78 <target name="wst-css-perfTests" description="Runs test.xml for
79 org.eclipse.wst.css.ui.tests.performance">
80 <antcall target="runperftests">
81 <param name="testPlugin" value="${org.eclipse.wst.css.ui.tests.performance}" />
82 <param name="report" value="org.eclipse.wst.css.ui.tests.performance" />
83 </antcall>
84 </target>
85
86 <!-- wst.common performance tests -->
87 <target name="wst-common-perfTests" description="Runs test.xml for org.eclipse.wst.common.tests.performance">
88 <antcall target="runperftests">
89 <param name="testPlugin" value="${org.eclipse.wst.common.tests.performance}" />
90 <param name="report" value="org.eclipse.wst.common.tests.performance" />
91 </antcall>
92 </target>
93
94 <!-- Web services performance tests -->
95 <target name="jst-ws-perfTests" description="Runs the org.eclipse.jst.ws.tests.performance test.xml">
96 <antcall target="runperftests">
97 <param name="testPlugin" value="${org.eclipse.jst.ws.tests.performance}" />
98 <param name="report" value="org.eclipse.jst.ws.tests.performance" />
99 </antcall>
100 </target>
101
102 <!-- wsdl performance tests -->
103 <target name="wst-wsdl-perfTests">
104 <antcall target="runperftests">
105 <param name="testPlugin" value="${org.eclipse.wst.wsdl.tests.performance}" />
106 <param name="report" value="org.eclipse.wst.wsdl.tests.performance" />
107 </antcall>
108 </target>
109
110 <!-- xsd performance tests -->
111 <target name="wst-xsd-perfTests">
112 <antcall target="runperftests">
113 <param name="testPlugin" value="${org.eclipse.wst.xsd.tests.performance}" />
114 <param name="report" value="org.eclipse.wst.xsd.tests.performance" />
115 </antcall>
116 </target>
117
118 <!-- rdb performance tests -->
119 <target name="wst-rdb-perfTests">
120 <antcall target="runperftests">
121 <param name="testPlugin" value="${org.eclipse.wst.rdb.tests.performance}"/>
122 <param name="report" value="org.eclipse.wst.rdb.tests.performance"/>
123 </antcall>
124 </target>
125
126 <!-- j2ee performance tests -->
127 <target name="jst-j2ee-perfTests">
128 <antcall target="runperftests">
129 <param name="testPlugin" value="${org.eclipse.jst.j2ee.core.tests.performance}"/>
130 <param name="report" value="org.eclipse.jst.j2ee.core.tests.performance"/>
131 </antcall>
132 </target>
133
134 <target name="main">
135 <antcall target="wst-common-perfTests"/>
136 <antcall target="wst-wsdl-perfTests"/>
137 <antcall target="wst-server-perfTests" />
138 <antcall target="jst-server-tomcat-perfTests" />
139 <antcall target="jst-jsp-perfTests" />
140 <antcall target="wst-xml-perfTests" />
141 <antcall target="wst-html-perfTests" />
142 <antcall target="wst-css-perfTests" />
143 <antcall target="jst-ws-perfTests"/>
144 <antcall target="wst-xsd-perfTests"/>
145 <antcall target="wst-rdb-perfTests"/>
146 <antcall target="jst-j2ee-perfTests"/>
147 </target>
148</project>