From: Kabir K. <kk...@jb...> - 2006-04-25 11:36:05
|
User: kkhan Date: 06/04/25 07:35:58 Modified: jbosstest Tag: Branch_4_0 build.xml Log: Add special test target for the scoped aop test Revision Changes Path No revision No revision 1.406.2.174 +67 -39 jbosstest/build.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.173 retrieving revision 1.406.2.174 diff -u -b -r1.406.2.173 -r1.406.2.174 --- build.xml 25 Apr 2006 08:39:58 -0000 1.406.2.173 +++ build.xml 25 Apr 2006 11:35:58 -0000 1.406.2.174 @@ -12,7 +12,7 @@ <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.173 2006/04/25 08:39:58 kkhan Exp $ --> +<!-- $Id: build.xml,v 1.406.2.174 2006/04/25 11:35:58 kkhan Exp $ --> <project default="main" name="JBoss/Testsuite" xmlns:server="http://jboss.org/ns/test/ant/server"> @@ -735,6 +735,9 @@ <!-- Needs to be started either with the bootclasspath or -javaagent classloader hooks --> <exclude name="org/jboss/test/aop/test/ScopedUnitTestCase.class"/> </patternset> + <patternset id="aop-with-classloader.includes"> + <include name="org/jboss/test/aop/test/ScopedUnitTestCase.class"/> + </patternset> <!-- The union of the excludes --> <patternset id="all.excludes"> @@ -785,6 +788,7 @@ <antcall target="tests-compatibility"/> <antcall target="tests-webservice-ssl"/> <antcall target="tests-unified"/> + <antcall target="tests-aop-scoped"/> <antcall target="tests-report"/> <record name="${basedir}/build.log" action="stop"/> </target> @@ -2504,6 +2508,30 @@ <server:stop name="webservice-ssl"/> </target> + + <target name="tests-aop-scoped" + description="AOP tests requiring a native classloader hook"> + + <!-- Generate the JDK 1.4 classloader hook --> + <java classname="org.jboss.aop.hook.GeneratePluggableInstrumentedClassLoader"> + <classpath> + <path refid="javassist.classpath"/> + <path refid="jboss.aop.classpath"/> + </classpath> + <arg value="${jboss.dist}\bin\woven-classloader"/> + </java> + <!-- copy across the jdk 1.4 pluggable instrumentor --> + <copy todir="${jboss.dist}\bin" file="${jboss.aop.lib}/jdk14-pluggable-instrumentor.jar"/> + <server:start name="scoped-aop"/> + + <run-junit junit.patternset="aop-with-classloader.includes"/> + + <server:stop name="scoped-aop"/> + <delete dir="${jboss.dist}/bin/woven-classloader"/> + <delete file="${jboss.dist}/bin/jdk14-pluggable-instrumentor.jar"/> + </target> + + <!-- | Standard jaxr tests that should run successfully against a | JBoss server distribution build that contains jaxr. |