From: Stale P. <st...@co...> - 2006-06-07 18:11:50
|
User: stalep Date: 06/06/07 14:11:44 Modified: jbosstest build.xml Log: [JBAOP-257] run this test with 'ant tests-aop-scoped', to run the test with generated advisors run 'ant test-aop-scoped-generated-advisor'. note that the generated advisor test fail atm (looking into it). Revision Changes Path 1.575 +18 -1 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.574 retrieving revision 1.575 diff -u -b -r1.574 -r1.575 --- build.xml 30 May 2006 21:24:21 -0000 1.574 +++ build.xml 7 Jun 2006 18:11:44 -0000 1.575 @@ -10,7 +10,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.574 2006/05/30 21:24:21 asaldhana Exp $ --> +<!-- $Id: build.xml,v 1.575 2006/06/07 18:11:44 stalep Exp $ --> <project default="main" name="JBoss/Testsuite" xmlns:server="http://jboss.org/ns/test/ant/server"> @@ -730,9 +730,11 @@ <patternset id="aop-with-classloader.excludes"> <!-- Needs to be started either with the bootclasspath or -javaagent classloader hooks --> <exclude name="org/jboss/test/aop/test/ScopedUnitTestCase.class"/> + <exclude name="org/jboss/test/aop/test/ScopedExtenderTestCase.class"/> </patternset> <patternset id="aop-with-classloader.includes"> <include name="org/jboss/test/aop/test/ScopedUnitTestCase.class"/> + <include name="org/jboss/test/aop/test/ScopedExtenderTestCase.class"/> </patternset> <!-- The union of the excludes --> @@ -2966,6 +2968,21 @@ <delete file="${jboss.dist}/bin/pluggable-instrumentor.jar"/> </target> + <target name="tests-aop-scoped-generated-advisor" + description="AOP tests requiring a native classloader hook for JDK 5.0" + if="HAVE_JDK_1.5"> + + <!-- copy across the pluggable instrumentor --> + <copy todir="${jboss.dist}/bin" file="${jboss.aop.lib}/pluggable-instrumentor.jar"/> + <server:start name="scoped-aop-generated-advisor"/> + + <run-junit junit.patternset="aop-with-classloader.includes"/> + + <server:stop name="scoped-aop-generated-advisor"/> + + <delete file="${jboss.dist}/bin/pluggable-instrumentor.jar"/> + </target> + |