[jboss-cvs] JBoss Messaging SVN: r7982 - branches/Branch_1_4/tests/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 23 03:16:07 EDT 2010


Author: gaohoward
Date: 2010-03-23 03:16:07 -0400 (Tue, 23 Mar 2010)
New Revision: 7982

Modified:
   branches/Branch_1_4/tests/bin/runtest
Log:
add force.ipv4 switch


Modified: branches/Branch_1_4/tests/bin/runtest
===================================================================
--- branches/Branch_1_4/tests/bin/runtest	2010-03-23 07:14:19 UTC (rev 7981)
+++ branches/Branch_1_4/tests/bin/runtest	2010-03-23 07:16:07 UTC (rev 7982)
@@ -51,6 +51,8 @@
    TEST_OBJECTSTORE=ObjectStore
 fi
 
+FORCE_IPV4=false
+
 #
 # We should use the same test execution classpath as the ant <junit> task, so we run ant to get
 # it from there.
@@ -118,6 +120,11 @@
         shift
         continue;
     fi
+    if [ "$1" = "-forceipv4" ]; then
+        FORCE_IPV4=true
+        shift
+        continue;
+    fi
     if [ "$1" = "-clustered" ]; then
         TEST_CLUSTERED=true
         shift
@@ -141,6 +148,7 @@
 -Dtest.remoting=$TEST_REMOTING \
 -Dtest.spawn.verbose=$TEST_SPAWN_VERBOSE \
 -Dtest.logfile.suffix=$TEST_LOGFILE_SUFFIX \
+-Dforce.ipv4=$FORCE_IPV4 \
 -Dbuild.lib=../../output/lib"
 
 if [ "$TEST_BIND_ADDRESS" != "" ]; then
@@ -174,7 +182,9 @@
    fi
 fi
 
-"$JAVA_HOME/bin/java" -Xmx1024M $JAVA_OPTS -Djgroups.bind_addr=localhost -cp "$CLASSPATH" \
+# JGroups works better with IPv4 in JBM tests. 
+# For in-vm test: -Djava.net.preferIPv4Stack=true For remote test add: -Dforce.ipv4=true
+"$JAVA_HOME/bin/java" -Xmx1024M $JAVA_OPTS -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=localhost -cp "$CLASSPATH" \
 org.jboss.test.messaging.tools.junit.SelectiveTestRunner $TARGET_CLASS $TARGET_TEST
 
 #




More information about the jboss-cvs-commits mailing list