Author: mircea.markus
Date: 2008-12-02 12:12:22 -0500 (Tue, 02 Dec 2008)
New Revision: 7241
Modified:
core/trunk/pom.xml
core/trunk/src/test/java/org/jboss/cache/UnitTestCacheFactory.java
Log:
parallel tests
Modified: core/trunk/pom.xml
===================================================================
--- core/trunk/pom.xml 2008-12-02 17:07:08 UTC (rev 7240)
+++ core/trunk/pom.xml 2008-12-02 17:12:22 UTC (rev 7241)
@@ -132,7 +132,7 @@
<version>2.4.3-JBOSS</version>
<configuration>
<parallel>tests</parallel>
- <threadCount>1</threadCount>
+ <threadCount>10</threadCount>
<forkMode>none</forkMode>
<trimStackTrace>false</trimStackTrace>
<properties>
Modified: core/trunk/src/test/java/org/jboss/cache/UnitTestCacheFactory.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/UnitTestCacheFactory.java 2008-12-02 17:07:08
UTC (rev 7240)
+++ core/trunk/src/test/java/org/jboss/cache/UnitTestCacheFactory.java 2008-12-02 17:12:22
UTC (rev 7241)
@@ -139,6 +139,12 @@
// }
checkCaches();
+ String useIpV4 = System.getProperty("java.net.preferIPv4Stack");
+ if (useIpV4 == null || !useIpV4.equalsIgnoreCase("tRue"))
+ {
+ System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ not using
IPv4");
+ log.error("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ not using IPv4");
+ }
switch (configuration.getCacheMode())
{
@@ -221,7 +227,7 @@
public void mangleConfiguration(Configuration configuration)
{
configuration.setClusterConfig(mangleClusterConfiguration(configuration.getClusterConfig()));
- // Check if the cluster name contains thread id. If not, append.
+ // Check if the cluster name contains thread id. If not, append.
// We can not just append the threadId, since some of the tests are crating
instances
// using configurations derived from configurations returned by this factory.
@@ -231,7 +237,7 @@
if (clusterName.indexOf(Thread.currentThread().getName()) == -1)
{
clusterName = clusterName + "-" + Thread.currentThread().getName();
-// System.out.println(getThreadId() + " Setting cluster name " +
newClusterName);
+// System.out.println(getThreadId() + " Setting cluster name " +
newClusterName);
}
// String testName = extractTestName();
@@ -255,7 +261,7 @@
if (clusterConfig == null)
{
// No explicit cluster configuration found. we need to resolve the default
config
- // now in orded to be able to update it before the cache (and the channel)
starts.
+ // now in orded to be able to update it before the cache (and the channel)
starts.
// TODO: this does not seem to be the best solution :(
clusterConfig = UnitTestCacheConfigurationFactory.getClusterConfigFromFile(