Building AS 7.1.0.Final and running its test suite
Posted by arnoldjohansson in Arnold Johansson's Blog on Feb 17, 2012 10:33:30 AMThis is a recording of how to build JBoss AS 7.1.0.Final from source, how to build its test suite and how to run the test suite.
Note that JBOSS_INSTALL in the following document deisgnates the root directory of the unpacked distribution of the JBoss AS.
The documentation of the JBoss AS 7.1.0.Final is fresh and good. It is available at https://docs.jboss.org/author/display/AS71/Documentation
For this particular topic it is recommended to study the Integration Testsuite User Guide - https://docs.jboss.org/author/display/AS71/AS+7+Integration+Testsuite+User+Guide
The README.md file in the JBOSS_INSTALL directory is however somewhat faulty in terms of commands for running the testsuite. Rely on the documentation above instead.
Environment
Test performed on JBoss AS 7.1.0.Final (jbossas-jboss-as-7.1.0.Final-0-g2e3f3e9.zip - downloaded from github https://github.com/jbossas/jboss-as/tree/7.1.0.Final) with Sun Java SE 1.6 and Maven 3.03 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) > mvn -v Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) Maven home: /opt/maven Java version: 1.6.0_26, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.0.0-15-generic", arch: "amd64", family: "unix"
Build the AS
Run the build command from the correct directory using Maven 3...
> cd JBOSS_INSTALL > mvn install
Run the build command from the correct directory and not(!) using Maven 3...
> cd JBOSS_INSTALL > ./build.sh
This will also run the tests in the smoke test module (ts.smoke).
Build and run testsuite
Build and run the testsuite from the correct directory...
This will run all test modules except those from the smoke tests module
> cd JBOSS_INSTALL > ./integration-tests.sh install -DallTests -Dts.noSmoke
Results
ts.smoke
Just running the smoke tests with e g the initial build command "mvn install", gives the following successful output
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] JBoss Application Server: Build Configuration ..... SUCCESS [2.373s] [INFO] JBoss Application Server: Parent Aggregator ....... SUCCESS [2.418s] [INFO] JBoss Application Server: Domain HTTP Interface ... SUCCESS [0.376s] [INFO] JBoss Application Server: Domain HTTP Error Context SUCCESS [1.252s] [INFO] JBoss Application Server: Protocol Utilities ...... SUCCESS [12.372s] [INFO] JBoss Application Server: Controller Client ....... SUCCESS [6.356s] [INFO] JBoss Application Server: Controller Core ......... SUCCESS [22.661s] [INFO] JBoss Application Server: Domain Management ....... SUCCESS [4.640s] [INFO] JBoss Application Server: Domain HTTP Interface ... SUCCESS [3.055s] [INFO] JBoss Application Server: Deployment Repository ... SUCCESS [1.800s] [INFO] JBoss Application Server: Embedded ................ SUCCESS [2.947s] [INFO] JBoss Application Server: Platform MBean integration SUCCESS [5.127s] [INFO] JBoss Application Server: Process Controller ...... SUCCESS [7.339s] [INFO] JBoss Application Server: Network ................. SUCCESS [3.911s] [INFO] JBoss Application Server: Threading Subsystem ..... SUCCESS [8.206s] [INFO] JBoss Application Server: Remoting Subsystem ...... SUCCESS [5.030s] [INFO] JBoss Application Server: Server .................. SUCCESS [11.877s] [INFO] JBoss Application Server: Subsystem Test Harness .. SUCCESS [5.065s] [INFO] JBoss Application Server: JMX Subsystem ........... SUCCESS [10.134s] [INFO] JBoss Application Server: Naming Subsystem ........ SUCCESS [8.728s] [INFO] JBoss Application Server: EE ...................... SUCCESS [8.654s] [INFO] JBoss Application Server: Transaction Subsystem ... SUCCESS [7.103s] [INFO] JBoss Application Server: Clustering Subsystem .... SUCCESS [0.127s] [INFO] JBoss Application Server: Common code for clustering subsystems SUCCESS [4.076s] [INFO] JBoss Application Server: JGroups Subsystem ....... SUCCESS [5.760s] [INFO] JBoss Application Server: Infinispan Subsystem .... SUCCESS [19.177s] [INFO] JBoss Application Server: Security Subsystem ...... SUCCESS [12.025s] [INFO] JBoss Application Server: Connector Subsystem ..... SUCCESS [14.818s] [INFO] JBoss Application Server: Clustering Server API ... SUCCESS [11.759s] [INFO] JBoss Application Server: Clustered registry service SUCCESS [1.337s] [INFO] JBoss Application Server: JacORB Subsystem ........ SUCCESS [13.740s] [INFO] JBoss Application Server: EJB Subsystem ........... SUCCESS [27.449s] [INFO] JBoss Application Server: Distributed Web Session SPI SUCCESS [3.065s] [INFO] JBoss Application Server: Clustering Server API implementation SUCCESS [3.322s] [INFO] JBoss Application Server: Distributed Web Session Infinispan provider SUCCESS [5.370s] [INFO] JBoss Application Server: Web Subsystem ........... SUCCESS [12.214s] [INFO] JBoss Application Server: Web Services Subsystem .. SUCCESS [0.077s] [INFO] JBoss Application Server: Web Services Server Integration Subsystem SUCCESS [10.933s] [INFO] JBoss Application Server: Application Client Bootstrap SUCCESS [5.102s] [INFO] JBoss Application Server: Command line interface .. SUCCESS [10.031s] [INFO] JBoss Application Server: EJB Client BOM .......... SUCCESS [0.118s] [INFO] JBoss Application Server: JMS Client BOM .......... SUCCESS [0.109s] [INFO] JBoss Application Server: EJB and JMS client combined jar SUCCESS [1.940s] [INFO] JBoss Application Server: Clustered Stateful Session Bean cache Infinispan provider SUCCESS [3.926s] [INFO] JBoss Application Server: Clustered service provider registry services SUCCESS [1.825s] [INFO] JBoss Application Server: Clustered singleton services SUCCESS [5.277s] [INFO] JBoss Application Server: EJB Container Managed Persistence Subsystem SUCCESS [17.846s] [INFO] JBoss Application Server: Config Admin ............ SUCCESS [3.621s] [INFO] JBoss Application Server: Deployment Scanner ...... SUCCESS [6.187s] [INFO] JBoss Application Server: EE Deployment ........... SUCCESS [3.233s] [INFO] JBoss Application Server: JAXR Client ............. SUCCESS [3.539s] [INFO] JBoss Application Server: JPA Subsystem ........... SUCCESS [0.088s] [INFO] JBoss Application Server: JPA SPI ................. SUCCESS [2.516s] [INFO] JBoss Application Server: JPA UTIL ................ SUCCESS [1.222s] [INFO] JBoss Application Server: JPA Subsystem ........... SUCCESS [5.490s] [INFO] JBoss Application Server: Weld Integration ........ SUCCESS [7.861s] [INFO] JBoss Application Server: JAX-RS Integration ...... SUCCESS [7.370s] [INFO] JBoss Application Server: JBoss Diagnostic Reporter SUCCESS [0.073s] [INFO] JBoss Application Server: JDR ..................... SUCCESS [3.880s] [INFO] JBoss Application Server: JSR-77 Subsystem ........ SUCCESS [3.168s] [INFO] JBoss Application Server: Management Client Content SUCCESS [1.824s] [INFO] JBoss Application Server: Host Controller ......... SUCCESS [11.934s] [INFO] JBoss Application Server: Logging Subsystem ....... SUCCESS [10.792s] [INFO] JBoss Application Server: Mail subsystem .......... SUCCESS [4.944s] [INFO] JBoss Application Server: Messaging Subsystem ..... SUCCESS [11.961s] [INFO] JBoss Application Server: ModCluster Subsystem .... SUCCESS [8.297s] [INFO] JBoss Application Server: OSGi .................... SUCCESS [0.062s] [INFO] JBoss Application Server: OSGi Subsystem .......... SUCCESS [8.327s] [INFO] JBoss Application Server: OSGi ConfigurationAdmin . SUCCESS [3.044s] [INFO] JBoss Application Server: POJO Subsystem .......... SUCCESS [6.516s] [INFO] JBoss Application Server: sosreport scripts ....... SUCCESS [0.608s] [INFO] JBoss Application Server: Service Archive Subsystem SUCCESS [4.333s] [INFO] JBoss Application Server: XTS Subsystem ........... SUCCESS [4.366s] [INFO] JBoss Application Server: Hibernate 3.6.x JPA integration SUCCESS [2.098s] [INFO] JBoss Application Server: Hibernate 4.0.x JPA integration SUCCESS [4.298s] [INFO] JBoss Application Server: Infinispan Hibernate 2nd level cache provider SUCCESS [1.931s] [INFO] JBoss Application Server: OpenJPA 2.x JPA integration SUCCESS [1.641s] [INFO] JBoss Application Server: Build ................... SUCCESS [17.093s] [INFO] JBoss Application Server: Arquillian .............. SUCCESS [0.130s] [INFO] JBoss Application Server: Arquillian TestEnricher MSC SUCCESS [1.293s] [INFO] JBoss Application Server: Arquillian Common ....... SUCCESS [1.688s] [INFO] JBoss Application Server: Arquillian Protocol JMX . SUCCESS [2.580s] [INFO] JBoss Application Server: Arquillian Managed Container SUCCESS [15.504s] [INFO] JBoss Application Server: Arquillian Remote Container SUCCESS [1.603s] [INFO] JBoss Application Server: Exported Java EE Specification APIs SUCCESS [0.114s] [INFO] JBoss Application Server: Arquillian TestNG Integration SUCCESS [14.177s] [INFO] JBoss Application Server: Demos: Aggregator ....... SUCCESS [0.511s] [INFO] JBoss Application Server: Demos: Spec ............. SUCCESS [2.314s] [INFO] JBoss Application Server: Demos: Legacy TO BE MOVED SUCCESS [8.153s] [INFO] JBoss Application Server: Distribution ............ SUCCESS [0.508s] [INFO] JBoss Application Server: Remoting Subsystem Test . SUCCESS [2.788s] [INFO] JBoss Application Server: Validation Tests for Exported Java EE Specification APIs SUCCESS [0.801s] [INFO] JBoss Application Server: Web Services Tests Integration Subsystem SUCCESS [1.381s] [INFO] JBoss Application Server Test Suite: Shared ....... SUCCESS [3.503s] [INFO] JBoss Application Server Test Suite: Aggregator ... SUCCESS [3.472s] [INFO] JBoss Application Server Test Suite: Integration .. SUCCESS [1.645s] [INFO] JBoss Application Server Test Suite: Integration - Smoke SUCCESS [1:35.921s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10:50.282s [INFO] Finished at: Fri Feb 17 15:51:44 CET 2012 [INFO] Final Memory: 218M/877M [INFO] ------------------------------------------------------------------------
allTests
Below is the results from running all tests (allTests) except the smoke tests (ts.smoke) with "./integration-tests install -DallTests -Dts.noSmoke"
Note that some tests fail ("Integration - Basic" and "Domin Mode Integration Tests"). Reasons are still unclear and are subject to further investigation as time allows.
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] JBoss Application Server Test Suite: Aggregator ... SUCCESS [16.464s] [INFO] JBoss Application Server Test Suite: Integration .. SUCCESS [2.240s] [INFO] JBoss Application Server Test Suite: Integration - Smoke SUCCESS [1:31.601s] [INFO] JBoss Application Server Test Suite: Integration - Basic FAILURE [7:59.327s] [INFO] JBoss Application Server Test Suite: Integration - Clustering SUCCESS [11:16.084s] [INFO] JBoss Application Server Test Suite: Integration - IIOP SUCCESS [27.397s] [INFO] JBoss Application Server Test Suite: Integration - XTS SUCCESS [23.895s] [INFO] JBoss AS Test Suite: Integration - Multinode Tests SUCCESS [25.851s] [INFO] JBoss Application Server Test Suite: Compatibility Tests SUCCESS [26.197s] [INFO] JBoss Application Server Test Suite: Domain Mode Integration Tests FAILURE [34.163s] [INFO] JBoss Application Server Test Suite: Benchmark Tests SUCCESS [1.848s] [INFO] JBoss Application Server Test Suite: Stress Tests . SUCCESS [1.300s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23:29.870s [INFO] Finished at: Fri Feb 17 16:17:45 CET 2012 [INFO] Final Memory: 131M/336M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (basic-integration-default-web.surefire) on project jboss-as-testsuite-integration-basic: There are test failures. [ERROR] [ERROR] Please refer to /home/arnie/Downloads/community/jbossas-jboss-as-2e3f3e9/testsuite/integration/basic/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project jboss-as-testsuite-integration-domain: There are test failures. [ERROR] [ERROR] Please refer to /home/arnie/Downloads/community/jbossas-jboss-as-2e3f3e9/testsuite/domain/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :jboss-as-testsuite-integration-basic
Comments