Author: alex.guizar(a)jboss.com
Date: 2010-08-10 16:18:38 -0400 (Tue, 10 Aug 2010)
New Revision: 6562
Added:
jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/container.sh
jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/standalone.sh
Removed:
jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh
Log:
JBPM-2916 split standalone and container test suites
Deleted: jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh 2010-08-10 18:50:38 UTC (rev
6561)
+++ jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh 2010-08-10 20:18:38 UTC (rev
6562)
@@ -1,171 +0,0 @@
-#!/bin/sh
-#
-# Script that builds the project via Maven and
-# executes the test suite against a given target container
-#
-# Exported shell variables required:
-# WORKSPACE work directory
-# JAVA_HOME location of java development kit
-# JAVA_15_HOME required if testing against java 1.4 only
-# DATABASE db2, hsqldb, mssql, mysql, oracle, postgresql
-# CONTAINER jboss405, jboss423, jboss501, jboss510
-# MYTESTIP_1 bind address
-# MCASTIP multicast address
-# JOB_NAME used as unique jgroups partition name
-# SOURCE_REPO location of jboss distributions
-#
-
-#
-# Extract JBoss distro
-#
-case $CONTAINER in
- jboss405)
- JBOSS_VERSION=jboss-4.0.5.GA
- ;;
- jboss423)
- JBOSS_VERSION=jboss-4.2.3.GA
- ;;
- jboss501)
- JBOSS_VERSION=jboss-5.0.1.GA
- ;;
- jboss510)
- JBOSS_VERSION=jboss-5.1.0.GA
- ;;
- *)
- echo "ERROR: invalid container: $CONTAINER"
- exit 1
- ;;
-esac
-JBOSS_HOME=$WORKSPACE/$JBOSS_VERSION
-JBOSS_SERVER=all
-
-rm -rf $JBOSS_HOME
-unzip -q -d $WORKSPACE $SOURCE_REPO/jboss/$JBOSS_VERSION.zip
-
-#
-# Determine Java platform version
-#
-JAVA=$JAVA_HOME/bin/java
-JAVA_VERSION=`$JAVA -version 2>&1 | grep version | awk '{ print substr($3, 2,
3); }'`
-
-if [ $JAVA_VERSION = 1.4 ]; then
- ORIG_JAVA_HOME=$JAVA_HOME
- JAVA=$JAVA_15_HOME/bin/java
- export JAVA_HOME=$JAVA_15_HOME
-else
- ORIG_JAVA_HOME=$JAVA_HOME
-fi
-
-#
-# Set up Maven
-#
-export MAVEN_OPTS="-Ddatabase=$DATABASE -Xms16m -Xmx256m"
-cp -u hudson/profiles.redhat.qa.xml profiles.xml
-
-# Determine jBPM version
-mvn -Dexpression=project.version help:evaluate > $WORKSPACE/project-version.txt
-JBPM_VERSION=`grep '^3\.' $WORKSPACE/project-version.txt`
-
-#
-# Build distro
-#
-mvn -Pdistro -Djbpm.home=$WORKSPACE/jbpm-$JBPM_VERSION -Dcontainer=$CONTAINER \
- -Djboss.home=$JBOSS_HOME -Djboss.server=$JBOSS_SERVER clean install
-if [ $? -ne 0 ]; then
- echo "ERROR: failed to build distro"
- exit 1
-fi
-
-#
-# Install distro
-#
-$JAVA -jar modules/distribution/target/jbpm-distribution-$JBPM_VERSION-installer.jar \
- modules/distribution/target/classes/auto-install-template.xml
-if [ $? -ne 0 ]; then
- echo "ERROR: failed to install distro"
- exit 1
-fi
-
-#
-# Install proprietary JDBC drivers
-#
-mvn -N -DoutputFile=$WORKSPACE/dependencies.txt dependency:resolve
-
-# Install DB2 driver
-if [ "$DATABASE" = "db2" ]; then
- DB2JCC_VERSION=`grep com.ibm:db2jcc:jar $WORKSPACE/dependencies.txt | awk -F : '{
print $4 }'`
- DB2JCC_JAR=~/.m2/repository/com/ibm/db2jcc/$DB2JCC_VERSION/db2jcc-$DB2JCC_VERSION.jar
- if [ -f $DB2JCC_JAR ]; then
- ln -s $DB2JCC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
- else
- echo "WARNING: DB2 driver not found: $DB2JCC_JAR"
- fi
-
DB2JCC_LICENSE=~/.m2/repository/com/ibm/db2jcc_license_cu/$DB2JCC_VERSION/db2jcc_license_cu-$DB2JCC_VERSION.jar
- if [ -f $DB2JCC_LICENSE ]; then
- ln -s $DB2JCC_LICENSE $JBOSS_HOME/server/$JBOSS_SERVER/lib
- else
- echo "WARNING: DB2 license not found: $DB2JCC_LICENSE"
- fi
-fi
-
-# Install MSSQL driver
-if [ "$DATABASE" = "mssql" ]; then
- MSJDBC_VERSION=`grep com.microsoft.sqlserver:msjdbc $WORKSPACE/dependencies.txt | awk
-F : '{ print $4 }'`
-
MSJDBC_JAR=~/.m2/repository/com/microsoft/sqlserver/msjdbc/$MSJDBC_VERSION/msjdbc-$MSJDBC_VERSION.jar
- if [ -f $MSJDBC_JAR ]; then
- ln -s $MSJDBC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
- else
- echo "WARNING: SQL Server driver not found: $MSJDBC_JAR"
- fi
-fi
-
-# Install Oracle driver
-if [ "$DATABASE" = "oracle" ]; then
- OJDBC_VERSION=`grep com.oracle:ojdbc14 $WORKSPACE/dependencies.txt | awk -F : '{
print $4 }'`
-
OJDBC_JAR=~/.m2/repository/com/oracle/ojdbc14/$OJDBC_VERSION/ojdbc14-$OJDBC_VERSION.jar
- if [ -f $OJDBC_JAR ]; then
- ln -s $OJDBC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
- else
- echo "WARNING: Oracle driver not found: $OJDBC_JAR"
- fi
-fi
-
-# Install Sybase driver
-if [ "$DATABASE" = "sybase" ]; then
- JCONNECT_VERSION=`grep com.sybase:jconnect $WORKSPACE/dependencies.txt | awk -F :
'{ print $4 }'`
-
JCONNECT_JAR=~/.m2/repository/com/sybase/jconnect/$JCONNECT_VERSION/jconnect-$JCONNECT_VERSION.jar
- if [ -f $JCONNECT_JAR ]; then
- ln -s $JCONNECT_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
- else
- echo "WARNING: Sybase driver not found: $JCONNECT_JAR"
- fi
-fi
-
-#
-# Start JBoss AS
-#
-export JAVA_HOME=$ORIG_JAVA_HOME
-$JBOSS_HOME/bin/run.sh -b $MYTESTIP_1 -c $JBOSS_SERVER -g $JOB_NAME -u $MCASTIP &>
/dev/null &
-
-# Was it successfully started?
-wget --spider --retry-connrefused --waitretry=24 --no-verbose $MYTESTIP_1:8080
-if [ $? -ne 0 ]; then
- tail -n 100 $JBOSS_HOME/server/$JBOSS_SERVER/log/server.log
- $JBOSS_HOME/bin/shutdown.sh -s jnp://$MYTESTIP_1:1099 -S
- exit 1
-fi
-
-#
-# Execute tests
-#
-mvn --fail-at-end -Djboss.bind.address=$MYTESTIP_1 -Dsurefire.jvm.args="-Xms64m
-Xmx256m" \
- test | tee $WORKSPACE/tests.log
-grep -E 'FIXME\|FAILED' $WORKSPACE/tests.log | sort -u > $WORKSPACE/fixme.txt
-grep -E '\[\S*]' $WORKSPACE/fixme.txt > $WORKSPACE/errata-$CONTAINER.txt
-
-#
-# Stop JBoss AS
-#
-$JBOSS_HOME/bin/shutdown.sh -s jnp://$MYTESTIP_1:1099 -S
-ln -sf $JBOSS_HOME/server/$JBOSS_SERVER/log/boot.log $WORKSPACE
-ln -sf $JBOSS_HOME/server/$JBOSS_SERVER/log/server.log $WORKSPACE
Copied: jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/container.sh (from rev 6560,
jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh)
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/container.sh
(rev 0)
+++ jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/container.sh 2010-08-10 20:18:38 UTC
(rev 6562)
@@ -0,0 +1,155 @@
+#!/bin/sh
+#
+# Build the project with Maven and
+# run the enterprise test suite inside a container
+#
+# Exported shell variables required:
+# WORKSPACE work directory
+# JAVA_HOME location of java development kit
+# JAVA_15_HOME required if testing against java 1.4 only
+# DATABASE db2, hsqldb, mssql, mysql, oracle, postgresql
+# CONTAINER jboss405, jboss423, jboss501, jboss510
+# MYTESTIP_1 bind address
+# MCASTIP multicast address
+# SOURCE_REPO location of jboss distributions
+
+# Determine JBoss AS version
+case $CONTAINER in
+ jboss405)
+ JBOSS_VERSION=jboss-4.0.5.GA
+ ;;
+ jboss423)
+ JBOSS_VERSION=jboss-4.2.3.GA
+ ;;
+ jboss501)
+ JBOSS_VERSION=jboss-5.0.1.GA
+ ;;
+ jboss510)
+ JBOSS_VERSION=jboss-5.1.0.GA
+ ;;
+ *)
+ echo "ERROR: invalid container: $CONTAINER"
+ exit 1
+ ;;
+esac
+JBOSS_HOME=$WORKSPACE/$JBOSS_VERSION
+JBOSS_SERVER=all
+
+# Determine Java platform version
+JAVA=$JAVA_HOME/bin/java
+JAVA_VERSION=`$JAVA -version 2>&1 | grep version | awk '{ print substr($3, 2,
3); }'`
+
+if [ $JAVA_VERSION = 1.4 ]; then
+ # Switch to JDK 1.5 for building and installing jBPM
+ ORIG_JAVA_HOME=$JAVA_HOME
+ JAVA=$JAVA_15_HOME/bin/java
+ export JAVA_HOME=$JAVA_15_HOME
+else
+ ORIG_JAVA_HOME=$JAVA_HOME
+fi
+
+# Set up Maven
+export MAVEN_OPTS="-Ddatabase=$DATABASE -Xms16m -Xmx256m"
+cp -u hudson/profiles.redhat.qa.xml profiles.xml
+
+# Determine jBPM version
+mvn -Dexpression=project.version help:evaluate > $WORKSPACE/project-version.txt
+JBPM_VERSION=`grep '^3\.' $WORKSPACE/project-version.txt`
+
+# Build jBPM
+mvn -Pdistro -Djbpm.home=$WORKSPACE/jbpm-$JBPM_VERSION -Dcontainer=$CONTAINER \
+ -Djboss.home=$JBOSS_HOME -Djboss.server=$JBOSS_SERVER clean install
+if [ $? -ne 0 ]; then
+ echo "ERROR: failed to build distro"
+ exit 1
+fi
+
+# Install JBoss AS
+rm -rf $JBOSS_HOME
+unzip -q -d $WORKSPACE $SOURCE_REPO/jboss/$JBOSS_VERSION.zip
+
+# Install jBPM
+$JAVA -jar modules/distribution/target/jbpm-distribution-$JBPM_VERSION-installer.jar \
+ modules/distribution/target/classes/auto-install-template.xml
+if [ $? -ne 0 ]; then
+ echo "ERROR: failed to install distro"
+ exit 1
+fi
+
+# Install proprietary JDBC drivers
+mvn -N -DoutputFile=$WORKSPACE/dependencies.txt dependency:resolve
+
+# DB2 driver
+if [ "$DATABASE" = "db2" ]; then
+ DB2JCC_VERSION=`grep com.ibm:db2jcc:jar $WORKSPACE/dependencies.txt | awk -F : '{
print $4 }'`
+ DB2JCC_JAR=~/.m2/repository/com/ibm/db2jcc/$DB2JCC_VERSION/db2jcc-$DB2JCC_VERSION.jar
+ if [ -f $DB2JCC_JAR ]; then
+ ln -s $DB2JCC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
+ else
+ echo "WARNING: DB2 driver not found: $DB2JCC_JAR"
+ fi
+
DB2JCC_LICENSE=~/.m2/repository/com/ibm/db2jcc_license_cu/$DB2JCC_VERSION/db2jcc_license_cu-$DB2JCC_VERSION.jar
+ if [ -f $DB2JCC_LICENSE ]; then
+ ln -s $DB2JCC_LICENSE $JBOSS_HOME/server/$JBOSS_SERVER/lib
+ else
+ echo "WARNING: DB2 license not found: $DB2JCC_LICENSE"
+ fi
+fi
+
+# MSSQL driver
+if [ "$DATABASE" = "mssql" ]; then
+ MSJDBC_VERSION=`grep com.microsoft.sqlserver:msjdbc $WORKSPACE/dependencies.txt | awk
-F : '{ print $4 }'`
+
MSJDBC_JAR=~/.m2/repository/com/microsoft/sqlserver/msjdbc/$MSJDBC_VERSION/msjdbc-$MSJDBC_VERSION.jar
+ if [ -f $MSJDBC_JAR ]; then
+ ln -s $MSJDBC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
+ else
+ echo "WARNING: SQL Server driver not found: $MSJDBC_JAR"
+ fi
+fi
+
+# Oracle driver
+if [ "$DATABASE" = "oracle" ]; then
+ OJDBC_VERSION=`grep com.oracle:ojdbc14 $WORKSPACE/dependencies.txt | awk -F : '{
print $4 }'`
+
OJDBC_JAR=~/.m2/repository/com/oracle/ojdbc14/$OJDBC_VERSION/ojdbc14-$OJDBC_VERSION.jar
+ if [ -f $OJDBC_JAR ]; then
+ ln -s $OJDBC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
+ else
+ echo "WARNING: Oracle driver not found: $OJDBC_JAR"
+ fi
+fi
+
+# Sybase driver
+if [ "$DATABASE" = "sybase" ]; then
+ JCONNECT_VERSION=`grep com.sybase:jconnect $WORKSPACE/dependencies.txt | awk -F :
'{ print $4 }'`
+
JCONNECT_JAR=~/.m2/repository/com/sybase/jconnect/$JCONNECT_VERSION/jconnect-$JCONNECT_VERSION.jar
+ if [ -f $JCONNECT_JAR ]; then
+ ln -s $JCONNECT_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
+ else
+ echo "WARNING: Sybase driver not found: $JCONNECT_JAR"
+ fi
+fi
+
+# Switch back to JDK 1.4 for running test suite
+export JAVA_HOME=$ORIG_JAVA_HOME
+
+# Start JBoss AS
+$JBOSS_HOME/bin/run.sh -b $MYTESTIP_1 -c $JBOSS_SERVER -g jbpm3-$CONTAINER-$DATABASE \
+ -u $MCASTIP &> /dev/null &
+
+# Was it successfully started?
+wget --spider --retry-connrefused --waitretry=24 --no-verbose $MYTESTIP_1:8080
+if [ $? -ne 0 ]; then
+ tail -n 100 $JBOSS_HOME/server/$JBOSS_SERVER/log/server.log
+ $JBOSS_HOME/bin/shutdown.sh -s jnp://$MYTESTIP_1:1099 -S
+ exit 1
+fi
+
+# Run enterprise test suite
+mvn -f modules/enterprise/pom.xml --fail-at-end -Djboss.bind.address=$MYTESTIP_1 \
+ -Dsurefire.jvm.args="-Xms64m -Xmx256m" test | tee $WORKSPACE/tests.log
+grep -E 'FIXME\|FAILED' $WORKSPACE/tests.log | sort -u > $WORKSPACE/fixme.txt
+
+# Stop JBoss AS
+$JBOSS_HOME/bin/shutdown.sh -s jnp://$MYTESTIP_1:1099 -S
+ln -sf $JBOSS_HOME/server/$JBOSS_SERVER/log/boot.log $WORKSPACE
+ln -sf $JBOSS_HOME/server/$JBOSS_SERVER/log/server.log $WORKSPACE
Added: jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/standalone.sh
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/standalone.sh
(rev 0)
+++ jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/standalone.sh 2010-08-10 20:18:38 UTC
(rev 6562)
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# Build the project with Maven and
+# run the standalone test suite
+#
+# Exported shell variables required:
+# JAVA_HOME location of java development kit
+# JAVA_15_HOME required if testing against java 1.4 only
+# DATABASE db2, hsqldb, mssql, mysql, oracle, postgresql
+
+# Determine Java platform version
+JAVA=$JAVA_HOME/bin/java
+JAVA_VERSION=`$JAVA -version 2>&1 | grep version | awk '{ print substr($3, 2,
3); }'`
+
+if [ $JAVA_VERSION = 1.4 ]; then
+ ORIG_JAVA_HOME=$JAVA_HOME
+ JAVA=$JAVA_15_HOME/bin/java
+ export JAVA_HOME=$JAVA_15_HOME
+else
+ ORIG_JAVA_HOME=$JAVA_HOME
+fi
+
+# Set up Maven
+export MAVEN_OPTS="-Ddatabase=$DATABASE -Xms16m -Xmx256m"
+cp -u hudson/profiles.redhat.qa.xml profiles.xml
+
+# Build jBPM
+mvn -Pdistro clean install
+if [ $? -ne 0 ]; then
+ echo "ERROR: failed to build distro"
+ exit 1
+fi
+
+# Run standalone test suite
+export JAVA_HOME=$ORIG_JAVA_HOME
+mvn --fail-at-end -Dsurefire.jvm.args="-Xms64m -Xmx256m" test
Property changes on: jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/standalone.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:eol-style
+ LF
Show replies by date