[jboss-remoting-commits] JBoss Remoting SVN: r3590 - remoting2/branches/2.x.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Fri Mar 7 12:39:01 EST 2008


Author: david.lloyd at jboss.com
Date: 2008-03-07 12:39:01 -0500 (Fri, 07 Mar 2008)
New Revision: 3590

Modified:
   remoting2/branches/2.x/build.xml
Log:
At the risk of screwing up the test runs - here it is: Add in a security manager to all tests.  Also had to bump up the memory allocation for the main test suite since it runs out for me now.  Tests *seem* to *mostly* work, so here goes nuthin...

Modified: remoting2/branches/2.x/build.xml
===================================================================
--- remoting2/branches/2.x/build.xml	2008-03-07 17:37:44 UTC (rev 3589)
+++ remoting2/branches/2.x/build.xml	2008-03-07 17:39:01 UTC (rev 3590)
@@ -29,6 +29,9 @@
    <property name="compile.source" value="${ant.java.version}"/>
    <property name="compile.target" value="${ant.java.version}"/>
 
+    <!-- set the security manager information for unit tests -->
+    <property name="java.security.policy" value="${basedir}/test.policy"/>
+
    <!-- ================================================================== -->
    <!-- Sets bind address and port used by jrunit/jgroups multicast socket -->
    <!-- ================================================================== -->
@@ -924,13 +927,15 @@
    	  <mkdir dir="${output.tests.tmp}"/>
       <junit
             printsummary="true" fork="yes" includeantruntime="true"
-            tempdir="${output.tests.tmp}" maxmemory="1024m">
+            tempdir="${output.tests.tmp}" maxmemory="1280m">
          <jvmarg value="-Dloader.path=${output.lib.dir}/jboss-remoting-loading-tests.jar"/>
          <jvmarg value="-D${remoting.metadata.key}=${metadata}"/>
          <classpath>
             <path refid="tests.classpath"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
@@ -977,6 +982,8 @@
             <path refid="tests.classpath"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
@@ -1029,6 +1036,8 @@
             <path refid="tests.classpath"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
@@ -1057,6 +1066,8 @@
             <path refid="tests.classpath"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
@@ -1089,6 +1100,8 @@
             <path refid="${classpath}"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
@@ -1129,6 +1142,8 @@
             <path refid="${classpath}"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
@@ -1175,6 +1190,8 @@
             <path refid="tests.classpath"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
@@ -1201,6 +1218,8 @@
             <path refid="tests.classpath"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
          <sysproperty key="jrunit.mcast_port" value="${multicast.port}"/>
@@ -1262,6 +1281,8 @@
             <path refid="tests.classpath"/>
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <!-- this is needed for the remoting.marshall.dynamic.remote.MarshallerLoadingServer -->
          <jvmarg value="-Dloader.path=${output.lib.dir}/jboss-remoting-loading-tests.jar"/>
          <formatter type="xml"/>
@@ -1288,6 +1309,8 @@
             <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
             <!--<path refid="third_party.classpath"/>            -->
          </classpath>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jrunit.bind_addr"  value="${bind.address}"/>
          <sysproperty key="jrunit.mcast_addr" value="${multicast.address}"/>
          <sysproperty key="jrunit.mcast_port" value="${multicast.port}"/>
@@ -1722,6 +1745,8 @@
          <jvmarg value="-Dclient.path=${client.classpath}"/>
          <jvmarg value="-Dserver.path=${server.classpath}"/>
          <!--<jvmarg value="-Djboss.remoting.pre_2_0_compatible=${jboss.remoting.pre_2_0_compatible}"/>-->
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
                     extension="-${jboss-junit-configuration}.xml"/>
@@ -1753,6 +1778,8 @@
          <jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
          <jvmarg value="-Dremoting.metadata=check_connection=${check_connection}"/>
          <jvmarg value="-Dcheck_content_type=${check_content_type}"/>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
                     extension="-${jboss-junit-configuration}.xml"/>
@@ -1785,6 +1812,8 @@
          <jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
          <jvmarg value="-Dremoting.metadata=check_connection=${check_connection}"/>
          <jvmarg value="-Dcheck_content_type=${check_content_type}"/>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
       	 <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
                     extension="-${jboss-junit-configuration}.xml"/>
@@ -1818,6 +1847,8 @@
          <jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
          <jvmarg value="-Dcheck_content_type=${check_content_type}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
        	<formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
                     extension="-${jboss-junit-configuration}.xml"/>
          <batchtest fork="yes" todir="${output.tests.results}"
@@ -1934,6 +1965,8 @@
          <jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
          <jvmarg value="-Dclient.check_connection=${client.check_connection}"/>
          <jvmarg value="-Dserver.check_connection=${server.check_connection}"/>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
                     extension="-${jboss-junit-configuration}.xml"/>
@@ -1959,6 +1992,8 @@
          <jvmarg value="-Dclient.path=${client.classpath}"/>
          <jvmarg value="-Dserver.path=${server.classpath}"/>
          <jvmarg value="-Djboss.remoting.pre_2_0_compatible=${jboss.remoting.pre_2_0_compatible}"/>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
                     extension="-${jboss-junit-configuration}.xml"/>
@@ -1986,6 +2021,8 @@
          <jvmarg value="-Dclient.path=${client.classpath}"/>
          <jvmarg value="-Dserver.path=${server.classpath}"/>
          <jvmarg value="-Djboss.remoting.pre_2_0_compatible=${jboss.remoting.pre_2_0_compatible}"/>
+         <sysproperty key="java.security.manager" value=""/>
+         <sysproperty key="java.security.policy" value="${java.security.policy}"/>
          <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
          <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
                     extension="-${jboss-junit-configuration}.xml"/>




More information about the jboss-remoting-commits mailing list