Author: jeff.yuchang
Date: 2010-02-25 03:47:38 -0500 (Thu, 25 Feb 2010)
New Revision: 511
Added:
trunk/qa/hudson-riftsaw-soa-p.sh
Modified:
trunk/qa/build.xml
Log:
* RIFTSAW-164, add script for running test against soa-p 5.
Modified: trunk/qa/build.xml
===================================================================
--- trunk/qa/build.xml 2010-02-25 07:02:11 UTC (rev 510)
+++ trunk/qa/build.xml 2010-02-25 08:47:38 UTC (rev 511)
@@ -27,6 +27,12 @@
<property name="jbossesb.filename"
value="jbossesb-${jbossesb.version}.zip" />
<property name="jbossesb.distro.url"
value="http://download.jboss.org/jbossesb/${jbossesb.version}/binary...
/>
<property name="jbossesb.distro.path"
value="${download.dir}/${jbossesb.filename}" />
+
+ <property name="soa.p.version" value="5.0.0.GA"/>
+ <property name="soa.p.filename" value="soa-${soa.p.version}.zip"
/>
+ <property name="soa.p.distro.url"
value="http://jawa05.englab.brq.redhat.com/candidate/soa-${soa.p.ver...
+ <property name="soa.p.distro.path"
value="${download.dir}/${soa.p.filename}" />
+ <property name="soa.p.home"
value="${riftsaw.home}/jboss-soa-p.5.0.0/jboss-as" />
<property name="org.jboss.as.config" value="default" />
@@ -49,6 +55,9 @@
<condition property="is.jbossesb.distro.available">
<available file="${jbossesb.distro.path}" />
</condition>
+ <condition property="is.soa-p.distro.available">
+ <available file="${soa.p.distro.path}" />
+ </condition>
<condition property="is.oracle">
<equals arg1="oracle" arg2="${database}"/>
@@ -105,6 +114,18 @@
<property name="org.jboss.as.config"
value="${org.jboss.as.config}" />
</ant>
</target>
+
+ <!-- ### INSTALL SOA-P ################################################## -->
+ <target name="install.soa-p"
+ depends="get.soa-p"
+ description="Install SOA-P">
+ <unzip src="${soa.p.distro.path}" dest="${riftsaw.home}"
/>
+ <chmod perm="a+x" file="${soa.p.home}/bin/run.sh"
os="Linux, Mac OS X" />
+ <chmod perm="a+x" file="${soa.p.home}/bin/shutdown.sh"
os="Linux, Mac OS X" />
+
+ <antcall target="get.ojdbc" />
+
+ </target>
<!-- ### GET JBOSS and JBossESB
###################################################### -->
@@ -128,6 +149,13 @@
<mkdir dir="../distribution/target/libs"/>
<get dest="../distribution/target/libs/ojdbc14.jar"
src="${ojdbc.url}"/>
</target>
+
+ <target name="get.soa-p"
+ unless="is.soa-p.distro.available"
+ description="Downloads SOA-P into ${download.dir}">
+ <mkdir dir="${download.dir}" />
+ <get src="${soa.p.distro.url}" dest="${soa.p.distro.path}"
/>
+ </target>
<!-- ### Install and Cleanup DB
###################################################### -->
<target name="unpack-riftsaw">
Added: trunk/qa/hudson-riftsaw-soa-p.sh
===================================================================
--- trunk/qa/hudson-riftsaw-soa-p.sh (rev 0)
+++ trunk/qa/hudson-riftsaw-soa-p.sh 2010-02-25 08:47:38 UTC (rev 511)
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Run Riftsaw Integration tests.
+
+MAVEN_OPTS="-Xms512M -Xmx1024M"
+
+RIFTSAW_PARENT_DIR="$WORKSPACE"
+DATABASE="hsql"
+
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-soa-p.5.0.0/jboss-as"
+AS_CONFIG="default"
+REPLACE_QA_JDBC="true"
+
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE
-Dreplace.qa.jdbc=$REPLACE_QA_JDBC -Dorg.jboss.as.home=$AS_HOME
-Dorg.jboss.as.config=$AS_CONFIG"
+echo ANT_PROPERTIES=${ANT_PROPERTIES}
+
+#build RiftSaw and running unit tests
+cd ..
+mvn clean install -Pdocs
+
+#cleanup the RiftSaw HOME
+cd qa
+ant $ANT_PROPERTIES stop-server
+ant $ANT_PROPERTIES clean
+ant $ANT_PROPERTIES install.soa-p
+
+# clean up the database
+#ant $ANT_PROPERTIES drop.riftsaw.schema
+
+#build the RiftSaw and run integration tests
+cd ../integration-tests
+mvn $ANT_PROPERTIES clean install
Property changes on: trunk/qa/hudson-riftsaw-soa-p.sh
___________________________________________________________________
Name: svn:executable
+ *