blob: 6d4a95823d05fc8098037c36d83b72206b958548 [file] [log] [blame]
jeffliud0eb4a72005-09-28 14:58:59 +00001<project name="WTP performance testing" default="main">
2
jlanuti0f0e5052007-02-26 20:37:29 +00003 <property environment="env"/>
jeffliud0eb4a72005-09-28 14:58:59 +00004 <!-- Platform property -->
5 <property name="platform" value="" />
6
7 <!-- XML and HTML results -->
8 <property name="results" value="${perfRoot}/results" />
9
10 <!-- Tomcat install directory -->
jeffliu7d549992005-09-28 22:43:19 +000011 <property name="tomcat50Dir" value="jakarta-tomcat-5.0.28"/>
jeffliud0eb4a72005-09-28 14:58:59 +000012
13 <!-- jonas install directory -->
14 <property name="jonas432Dir" value="${perfRoot}/JONAS_4_3_2"/>
15
jeffliu5e3253d2006-06-13 19:38:32 +000016 <target name="init">
17 <antcall target="computePluginVersion"/>
18 </target>
19
20 <target name="computePluginVersion">
21 <java classname="org.eclipse.wtp.releng.test.ComputePluginVersion">
22 <classpath>
23 <pathelement location="${build.home}/releng.wtpbuilder/distribution/wtp.tests/testScripts/ComputePluginVersion.jar"/>
24 </classpath>
25 <arg value="${perfRoot}/eclipse/plugins"/>
26 <arg value="${perfRoot}/perf2.properties"/>
27 </java>
28 </target>
29
jeffliud0eb4a72005-09-28 14:58:59 +000030 <target name="runperftests">
jeffliud0eb4a72005-09-28 14:58:59 +000031 <available file="${perfRoot}/eclipse/plugins/${testPlugin}/test.xml" property="test.xml.exists"/>
32 <antcall target="runtests"/>
33 </target>
34
35 <target name="runtests" if="test.xml.exists">
36 <ant antfile="${perfRoot}/eclipse/plugins/${testPlugin}/test.xml" dir="${perfRoot}/eclipse">
jeffliu269ce342006-03-17 17:56:32 +000037 <property name="library-file" value="${build.home}/releng.wtpbuilder/distribution/wtp.perf/performance-tests.xml"/>
jlanuti0f0e5052007-02-26 20:37:29 +000038 <property name="os" value="${env.BASEOS}"/>
39 <property name="ws" value="${env.BASEWS}"/>
40 <property name="arch" value="${env.BASEARCH}"/>
jeffliud0eb4a72005-09-28 14:58:59 +000041 </ant>
42 <mkdir dir="${results}/xml"/>
43 <copy file="${perfRoot}/eclipse/${report}.xml" tofile="${results}/xml/${report}_${platform}.xml" failonerror="false" />
44 <antcall target="genHtml" />
45 </target>
46
47 <target name="genHtml">
jeffliu269ce342006-03-17 17:56:32 +000048 <style style="${build.home}/releng.wtpbuilder/distribution/wtp.tests/testScripts/JUNIT.XSL" basedir="${results}/xml" destdir="${results}/html" />
jeffliud0eb4a72005-09-28 14:58:59 +000049 </target>
50
51 <!-- wst.server performance tests -->
52 <target name="wst-server-perfTests" description="Runs the org.eclipse.wst.server.tests.performance test.xml">
53 <antcall target="runperftests">
54 <param name="testPlugin" value="${org.eclipse.wst.server.tests.performance}" />
55 <param name="report" value="org.eclipse.wst.server.tests.performance" />
56 </antcall>
57 </target>
58
59 <!-- Tomcat performance tests -->
60 <target name="jst-server-tomcat-perfTests" description="Runs the org.eclipse.jst.server.tomcat.tests.performance test.xml">
61 <antcall target="runperftests">
62 <param name="testPlugin" value="${org.eclipse.jst.server.tomcat.tests.performance}" />
63 <param name="report" value="org.eclipse.jst.server.tomcat.tests.performance" />
64 </antcall>
65 </target>
66
67 <!-- JSP performance tests -->
68 <target name="jst-jsp-perfTests" description="Runs test.xml for
69 org.eclipse.jst.jsp.ui.tests.performance">
70 <antcall target="runperftests">
71 <param name="testPlugin" value="${org.eclipse.jst.jsp.ui.tests.performance}" />
72 <param name="report" value="org.eclipse.jst.jsp.ui.tests.performance" />
73 </antcall>
74 </target>
75
76 <!-- XML performance tests -->
77 <target name="wst-xml-perfTests" description="Runs test.xml for
78 org.eclipse.wst.xml.ui.tests.performance">
79 <antcall target="runperftests">
80 <param name="testPlugin" value="${org.eclipse.wst.xml.ui.tests.performance}" />
81 <param name="report" value="org.eclipse.wst.xml.ui.tests.performance" />
82 </antcall>
83 </target>
84
85 <!-- HTML performance tests -->
86 <target name="wst-html-perfTests" description="Runs test.xml for
87 org.eclipse.wst.html.ui.tests.performance">
88 <antcall target="runperftests">
89 <param name="testPlugin" value="${org.eclipse.wst.html.ui.tests.performance}" />
90 <param name="report" value="org.eclipse.wst.html.ui.tests.performance" />
91 </antcall>
92 </target>
93
94 <!-- CSS performance tests -->
95 <target name="wst-css-perfTests" description="Runs test.xml for
96 org.eclipse.wst.css.ui.tests.performance">
97 <antcall target="runperftests">
98 <param name="testPlugin" value="${org.eclipse.wst.css.ui.tests.performance}" />
99 <param name="report" value="org.eclipse.wst.css.ui.tests.performance" />
100 </antcall>
101 </target>
102
103 <!-- wst.common performance tests -->
104 <target name="wst-common-perfTests" description="Runs test.xml for org.eclipse.wst.common.tests.performance">
105 <antcall target="runperftests">
106 <param name="testPlugin" value="${org.eclipse.wst.common.tests.performance}" />
107 <param name="report" value="org.eclipse.wst.common.tests.performance" />
108 </antcall>
109 </target>
110
111 <!-- Web services performance tests -->
112 <target name="jst-ws-perfTests" description="Runs the org.eclipse.jst.ws.tests.performance test.xml">
113 <antcall target="runperftests">
114 <param name="testPlugin" value="${org.eclipse.jst.ws.tests.performance}" />
115 <param name="report" value="org.eclipse.jst.ws.tests.performance" />
116 </antcall>
117 </target>
118
119 <!-- wsdl performance tests -->
120 <target name="wst-wsdl-perfTests">
121 <antcall target="runperftests">
122 <param name="testPlugin" value="${org.eclipse.wst.wsdl.tests.performance}" />
123 <param name="report" value="org.eclipse.wst.wsdl.tests.performance" />
124 </antcall>
125 </target>
126
127 <!-- xsd performance tests -->
128 <target name="wst-xsd-perfTests">
129 <antcall target="runperftests">
130 <param name="testPlugin" value="${org.eclipse.wst.xsd.tests.performance}" />
131 <param name="report" value="org.eclipse.wst.xsd.tests.performance" />
132 </antcall>
133 </target>
134
jeffliud0eb4a72005-09-28 14:58:59 +0000135
136 <!-- j2ee performance tests -->
137 <target name="jst-j2ee-perfTests">
138 <antcall target="runperftests">
139 <param name="testPlugin" value="${org.eclipse.jst.j2ee.core.tests.performance}"/>
140 <param name="report" value="org.eclipse.jst.j2ee.core.tests.performance"/>
141 </antcall>
142 </target>
143
jeffliu5e3253d2006-06-13 19:38:32 +0000144 <target name="main" depends="init">
145 <property file="${perfRoot}/perf2.properties"/>
jlanuti708c4872007-05-07 18:58:54 +0000146 <property name="timeout" value="3600000" />
147 <property name="junit-report-output" value="${results}" />
148 <!-- <antcall target="wst-common-perfTests"/> -->
jlanuti2cc6acc2007-03-19 19:19:03 +0000149 <!-- <antcall target="wst-wsdl-perfTests"/> -->
jeffliud0eb4a72005-09-28 14:58:59 +0000150 <antcall target="wst-server-perfTests" />
151 <antcall target="jst-server-tomcat-perfTests" />
152 <antcall target="jst-jsp-perfTests" />
153 <antcall target="wst-xml-perfTests" />
154 <antcall target="wst-html-perfTests" />
155 <antcall target="wst-css-perfTests" />
156 <antcall target="jst-ws-perfTests"/>
jlanuti2cc6acc2007-03-19 19:19:03 +0000157 <!-- <antcall target="wst-xsd-perfTests"/> -->
jeffliud0eb4a72005-09-28 14:58:59 +0000158 <antcall target="jst-j2ee-perfTests"/>
159 </target>
160</project>