jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 1 | <project name="WTP performance testing" default="main"> |
| 2 | |
jlanuti | 0f0e505 | 2007-02-26 20:37:29 +0000 | [diff] [blame] | 3 | <property environment="env"/> |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 4 | <!-- 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 --> |
jeffliu | 7d54999 | 2005-09-28 22:43:19 +0000 | [diff] [blame] | 11 | <property name="tomcat50Dir" value="jakarta-tomcat-5.0.28"/> |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 12 | |
| 13 | <!-- jonas install directory --> |
| 14 | <property name="jonas432Dir" value="${perfRoot}/JONAS_4_3_2"/> |
| 15 | |
jeffliu | 5e3253d | 2006-06-13 19:38:32 +0000 | [diff] [blame] | 16 | <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 | |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 30 | <target name="runperftests"> |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 31 | <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"> |
jeffliu | 269ce34 | 2006-03-17 17:56:32 +0000 | [diff] [blame] | 37 | <property name="library-file" value="${build.home}/releng.wtpbuilder/distribution/wtp.perf/performance-tests.xml"/> |
jlanuti | 0f0e505 | 2007-02-26 20:37:29 +0000 | [diff] [blame] | 38 | <property name="os" value="${env.BASEOS}"/> |
| 39 | <property name="ws" value="${env.BASEWS}"/> |
| 40 | <property name="arch" value="${env.BASEARCH}"/> |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 41 | </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"> |
jeffliu | 269ce34 | 2006-03-17 17:56:32 +0000 | [diff] [blame] | 48 | <style style="${build.home}/releng.wtpbuilder/distribution/wtp.tests/testScripts/JUNIT.XSL" basedir="${results}/xml" destdir="${results}/html" /> |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 49 | </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 | |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 135 | |
| 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 | |
jeffliu | 5e3253d | 2006-06-13 19:38:32 +0000 | [diff] [blame] | 144 | <target name="main" depends="init"> |
| 145 | <property file="${perfRoot}/perf2.properties"/> |
jlanuti | 708c487 | 2007-05-07 18:58:54 +0000 | [diff] [blame] | 146 | <property name="timeout" value="3600000" /> |
| 147 | <property name="junit-report-output" value="${results}" /> |
| 148 | <!-- <antcall target="wst-common-perfTests"/> --> |
jlanuti | 2cc6acc | 2007-03-19 19:19:03 +0000 | [diff] [blame] | 149 | <!-- <antcall target="wst-wsdl-perfTests"/> --> |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 150 | <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"/> |
jlanuti | 2cc6acc | 2007-03-19 19:19:03 +0000 | [diff] [blame] | 157 | <!-- <antcall target="wst-xsd-perfTests"/> --> |
jeffliu | d0eb4a7 | 2005-09-28 14:58:59 +0000 | [diff] [blame] | 158 | <antcall target="jst-j2ee-perfTests"/> |
| 159 | </target> |
| 160 | </project> |