[jboss-cvs] JBoss Messaging SVN: r2071 - in trunk/tests: bin and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jan 26 14:20:51 EST 2007
Author: timfox
Date: 2007-01-26 14:20:50 -0500 (Fri, 26 Jan 2007)
New Revision: 2071
Modified:
trunk/tests/bin/runtest
trunk/tests/build.properties
trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/JGroupsUtil.java
Log:
tweaks
Modified: trunk/tests/bin/runtest
===================================================================
--- trunk/tests/bin/runtest 2007-01-26 19:05:53 UTC (rev 2070)
+++ trunk/tests/bin/runtest 2007-01-26 19:20:50 UTC (rev 2071)
@@ -22,6 +22,7 @@
ENV_TEST_SERIALIZATION=$TEST_SERIALIZATION
ENV_TEST_CLUSTERED=$TEST_CLUSTERED
ENV_TEST_REMOTING=$TEST_REMOTING
+ENV_TEST_BIND_ADDRESS=$TEST_BIND_ADDRESS
if [ -z "$TARGET_CLASS" -a -f $reldir/.testrc ]; then
. $reldir/.testrc
@@ -139,6 +140,10 @@
-Dtest.logfile.suffix=$TEST_LOGFILE_SUFFIX \
-Dbuild.lib=../../output/lib"
+if [ "$TEST_BIND_ADDRESS" != "" ]; then
+ JAVA_OPTS="$JAVA_OPTS -Dtest.bind.address=$TEST_BIND_ADDRESS"
+fi
+
if [ "$TARGET_TEST" != "" ]; then
TARGET_TEST="-t $TARGET_TEST"
fi
@@ -162,6 +167,8 @@
fi
fi
+
+
$JAVA_HOME/bin/java $JAVA_OPTS -cp "$CLASSPATH" \
org.jboss.test.messaging.tools.junit.SelectiveTestRunner $TARGET_CLASS $TARGET_TEST
Modified: trunk/tests/build.properties
===================================================================
--- trunk/tests/build.properties 2007-01-26 19:05:53 UTC (rev 2070)
+++ trunk/tests/build.properties 2007-01-26 19:20:50 UTC (rev 2071)
@@ -2,3 +2,5 @@
# Local overrides for the builds initiated by build.sh
#
+
+
Modified: trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/JGroupsUtil.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/JGroupsUtil.java 2007-01-26 19:05:53 UTC (rev 2070)
+++ trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/JGroupsUtil.java 2007-01-26 19:20:50 UTC (rev 2071)
@@ -23,7 +23,7 @@
package org.jboss.test.messaging.core.plugin.postoffice.cluster;
-import java.net.InetAddress;
+import org.jboss.logging.Logger;
/**
* @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
@@ -35,13 +35,19 @@
public class JGroupsUtil
{
// Constants -----------------------------------------------------
+
+ private static final Logger log = Logger.getLogger(JGroupsUtil.class);
+
// Static --------------------------------------------------------
public static String getDataStackProperties()
{
String host = System.getProperty("test.bind.address");
+
+ log.info("test.bind.address is " + host);
+
if (host == null)
{
host = "localhost";
@@ -75,10 +81,15 @@
public static String getControlStackProperties()
{
String host = System.getProperty("test.bind.address");
+
+ log.info("test.bind.address is " + host);
+
if (host == null)
{
host = "localhost";
}
+
+
return "UDP(mcast_recv_buf_size=500000;down_thread=false;ip_mcast=true;mcast_send_buf_size=32000;"+
"mcast_port=45568;ucast_recv_buf_size=500000;use_incoming_packet_handler=false;"+
More information about the jboss-cvs-commits
mailing list