|
35 | 35 | <macrodef name="run-test"> |
36 | 36 | <sequential> |
37 | 37 | <property name="testName" value=""/> |
38 | | - <script language="javascript"> <![CDATA[ |
39 | | - targetName = self.getOwningTarget().toString(); |
40 | | - project.setProperty( "testName", targetName.slice(5) ); |
41 | | - ]]> |
42 | | - </script> |
| 38 | + <get-test-name propertyName="testName"/> |
43 | 39 | <java classname="org.jsl.tests.${testName}.Main" fork="true"> |
44 | 40 | <classpath> |
45 | 41 | <pathelement location="${build}/classes"/> |
|
53 | 49 | </macrodef> |
54 | 50 |
|
55 | 51 | <target name="init"> |
| 52 | + <mkdir dir="${build}/ant_tasks"/> |
56 | 53 | <mkdir dir="${build}/classes"/> |
57 | 54 | <mkdir dir="${dist}/lib"/> |
58 | 55 | </target> |
|
96 | 93 | <copy file="pom.xml" tofile="${dist}/lib/${ant.project.name}-${version}.pom"/> |
97 | 94 | </target> |
98 | 95 |
|
99 | | - <target name="compile_tests" depends="compile"> |
| 96 | + <target name="compile_ant_tasks" depends="init"> |
| 97 | + <javac srcdir="ant_tasks" destdir="${build}/ant_tasks" includeAntRuntime="true" debug="true"/> |
| 98 | + <taskdef name="get-test-name" classname="GetTestNameTask" classpath="${build}/ant_tasks"/> |
| 99 | + </target> |
| 100 | + |
| 101 | + <target name="compile_tests" depends="compile, compile_ant_tasks"> |
100 | 102 | <mkdir dir="${build}/tests"/> |
101 | | - <javac srcdir="tests/src" destdir="${build}/tests" includeantruntime="false" debug="true"> |
| 103 | + <javac srcdir="tests/src" destdir="${build}/tests" includeAntRuntime="false" debug="true"> |
102 | 104 | <classpath> |
103 | 105 | <pathelement location="${build}/classes"/> |
104 | 106 | </classpath> |
|
198 | 200 | test.echo_throughput, |
199 | 201 | test.message_queue, |
200 | 202 | test.msg_size_eq_block_size, |
| 203 | + test.pubsub, |
201 | 204 | test.recv_throughput, |
202 | 205 | test.remove_acceptor, |
203 | 206 | test.session_latency, |
|
206 | 209 | test.sched_latency, |
207 | 210 | test.thread_pool, |
208 | 211 | test.thread_pool_throughput, |
209 | | - test.timer_queue, |
210 | | - test.pubsub"/> |
211 | | - |
| 212 | + test.timer_queue"/> |
212 | 213 | </project> |
0 commit comments