Author: jeff.yuchang
Date: 2009-11-05 22:49:55 -0500 (Thu, 05 Nov 2009)
New Revision: 240
Added:
trunk/qa/hudson-riftsaw-jdk5.sh
Modified:
trunk/qa/hudson-riftsaw-ws.sh
Log:
* add script for JDK5 version of JBoss AS.
Added: trunk/qa/hudson-riftsaw-jdk5.sh
===================================================================
--- trunk/qa/hudson-riftsaw-jdk5.sh (rev 0)
+++ trunk/qa/hudson-riftsaw-jdk5.sh 2009-11-06 03:49:55 UTC (rev 240)
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# Run Riftsaw Integration tests.
+
+MAVEN_OPTS="-Xms512M -Xmx1024M"
+RIFTSAW_PARENT_DIR="$WORKSPACE"
+JBOSS_VERSION="5.1.0.GA"
+DATABASE="hsql"
+JBOSS_FILENAME="jboss-$JBOSS_VERSION.zip"
+
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE
-Djboss.filename=$JBOSS_FILENAME"
+echo ANT_PROPERTIES=${ANT_PROPERTIES}
+
+# firstly build the Riftsaw and run unit tests
+echo build RiftSaw and running unit test
+cd ..
+mvn clean install
+
+# run integration test
+echo cleanup the RiftSaw HOME
+cd qa
+ant $ANT_PROPERTIES clean
+ant $ANT_PROPERTIES install.jbossesb
+
+# clean up the database (no need for hsql)
+echo clean up the database
+#ant $ANT_PROPERTIES drop.riftsaw.schema
+
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+ESB_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+ESB_CONFIG="default"
+WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
+
+echo build the RiftSaw and run integration tests
+echo ESB_HOME=$ESB_HOME, ESB_CONIFG=$ESB_CONFIG WS_STACK_DIR=$WS_STACK_DIR
WS_STACK=$WS_STACK
+
+cd ../integration-tests
+mvn -Dorg.jboss.esb.server.home=$ESB_HOME -Dorg.jboss.esb.server.config=$ESB_CONFIG
-Ddatabase=$DATABASE -Dws.stack=$WS_STACK -Dws.stack.dir=$WS_STACK_DIR clean install
Modified: trunk/qa/hudson-riftsaw-ws.sh
===================================================================
--- trunk/qa/hudson-riftsaw-ws.sh 2009-11-05 21:25:30 UTC (rev 239)
+++ trunk/qa/hudson-riftsaw-ws.sh 2009-11-06 03:49:55 UTC (rev 240)
@@ -21,9 +21,8 @@
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
-# clean up the database
+# clean up the database (no need for hsql)
echo clean up the database
-
#ant $ANT_PROPERTIES drop.riftsaw.schema
RIFTSAW_VERSION="2.0-SNAPSHOT"
@@ -32,7 +31,7 @@
WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
echo build the RiftSaw and run integration tests
-echo ESB_HOME=$ESB_HOME, ESB_CONIFG=$ESB_CONFIG
+echo ESB_HOME=$ESB_HOME, ESB_CONIFG=$ESB_CONFIG WS_STACK_DIR=$WS_STACK_DIR
WS_STACK=$WS_STACK
cd ../integration-tests
mvn -Dorg.jboss.esb.server.home=$ESB_HOME -Dorg.jboss.esb.server.config=$ESB_CONFIG
-Ddatabase=$DATABASE -Dws.stack=$WS_STACK -Dws.stack.dir=$WS_STACK_DIR clean install
Show replies by date