Skip navigation

This is a recording of how to build JBoss AS 6.1.0.Final from source, how to build its test suite and how to run the test suite.

 

Some of this information is partially available in the references https://community.jboss.org/wiki/HowToRunTheTestsuite and http://docs.jboss.org/process-guide/en/html/testsuite.html. These are however not completely up-to-date.

 

Note that JBOSS_INSTALL in the following document deisgnates the root directory of the unpacked distribution of the JBoss AS.

Environment

JBoss AS 6.1.0.Final (jboss-6.1.0.Final-src.tar.gz) with Sun Java SE 1.6 on Ubuntu 11.10 (64-bit, workstation).

Environment details

> uname -a
Linux ragnar 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
> java -version
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

Build the AS

Run the build command from the correct directory...

> cd JBOSS_INSTALL/build
> ./build.sh

Build testsuite

Build the testsuite from the correct directory...

Note: Second line might not be necessary depending on how your file rights are set.

> cd JBOSS_INSTALL/testuite
> chmod +x build.sh
> ./build.sh

Run testsuite

Firsts run

> sudo route add -net 224.0.0.0 netmask 240.0.0.0 lo


Secondly [This must performed to get cluster-tests operational] create the file JBOSS_INSTALL/testsuite/local.properties and add the following content - and setYourHost to whatever your host is named.

Note: Mine was set to: ragnar

node0=localhost
node1=YourHost

 

Thirdly [This might not be necessary on all hosts] increase the timout (time to wait) for server start by issuing the following command.

Note: increase the timeout value as needed.

> export ANT_OPTS="-Djbossas.startup.timeout=240"

 

And finally, to avoid out of heap memory problems, disable some reports by addyntg the following line to JBOSS_INSTALL/testsuite/build.xml (just within the project-block)

<property name="skip.report" value="true"/>

 

Now run the testsuite from the correct directory...

> cd JBOSS_INSTALL/testuite
> ./build.sh tests

Results

Complete output (stdout) from tests: See attached file - jboss610.log.gz

 

Tests failures and warnings (stderr) - causes unknown for now

[junit] Test org.jboss.test.cmp2.optimisticlock.test.OptimisticLockUnitTestCase FAILED
[junit] Test org.jboss.test.jca.test.PreFillPoolingUnitTestCase FAILED
[junit] Test org.jboss.test.naming.test.NamingRestartUnitTestCase FAILED
[junit] Test org.jboss.test.naming.test.SimpleUnitTestCase FAILED
[junit] Test org.jboss.test.timer.test.BasicTimerUnitTestCase FAILED
[junit] Test org.jboss.test.security.test.SRPLoginModuleUnitTestCase FAILED
[junit] Test org.jboss.test.security.test.SRPUnitTestCase FAILED
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-udp-SYNC-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-udp-SYNC-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-udp-DIST-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-udp-DIST-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-tcp-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-tcp-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-tcp-SYNC-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-tcp-SYNC-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-tcp-DIST-0 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/cluster-tcp-DIST-1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/tomcat-federation not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/binding-manager1 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/binding-manager2 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/scoped-aop-jdk50 not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/web-ondemand-disabled not found.
[copy] Warning: /home/arnie/Downloads/community/jboss-6.1.0.Final-src/testsuite/output/resources/test-configs/jts not found.
[junit] Test org.jboss.test.jca.test.DataSourceDeployerTestCase FAILED