Author: jeff.yuchang
Date: 2009-10-23 12:29:05 -0400 (Fri, 23 Oct 2009)
New Revision: 200
Added:
trunk/qa/
trunk/qa/build.xml
trunk/qa/hudson-riftsaw-jboss.sh
Modified:
trunk/integration-tests/build.xml
Log:
* RIFTSAW-82 add integration test script for hudson job.
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2009-10-22 17:36:20 UTC (rev 199)
+++ trunk/integration-tests/build.xml 2009-10-23 16:29:05 UTC (rev 200)
@@ -2,27 +2,37 @@
<property environment="env" />
<property name="riftsaw.engine.version" value="2.0-SNAPSHOT"
/>
-
+
<property file="${riftsaw.test.deployment.properties}" />
<target name="unpack-distribution">
<mkdir dir="${basedir}/../distribution/target/dist"/>
<unzip dest="${basedir}/../distribution/target/dist"
src="${basedir}/../distribution/target/riftsaw-${riftsaw.engine.version}.zip"/>
- <copy file="${riftsaw.test.deployment.properties}"
- tofile="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install/deployment.properties"
/>
+ <!--copy file="${riftsaw.test.deployment.properties}"
+ tofile="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install/deployment.properties"
/-->
</target>
<target name="deploy-riftsaw" >
- <ant
antfile="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install/build.xml"
+ <ant antfile="build.xml"
target="deploy"
- dir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install"
/>
+ dir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install">
+ <property name="org.jboss.esb.server.home"
value="${org.jboss.esb.server.home}" />
+ <property name="org.jboss.esb.server.config"
value="${org.jboss.esb.server.config}" />
+ <property name="org.jboss.esb.home"
value="${org.jboss.esb.home}" />
+ <property name="database" value="${database}" />
+ </ant>
</target>
<target name="undeploy-riftsaw" >
- <ant
antfile="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install/build.xml"
+ <ant antfile="build.xml"
target="undeploy"
- dir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install"
/>
+ dir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install">
+ <property name="org.jboss.esb.server.home"
value="${org.jboss.esb.server.home}" />
+ <property name="org.jboss.esb.server.config"
value="${org.jboss.esb.server.config}" />
+ <property name="org.jboss.esb.home"
value="${org.jboss.esb.home}" />
+ <property name="database" value="${database}" />
+ </ant>
</target>
<target name="start-server" >
Added: trunk/qa/build.xml
===================================================================
--- trunk/qa/build.xml (rev 0)
+++ trunk/qa/build.xml 2009-10-23 16:29:05 UTC (rev 200)
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="riftsaw.qa">
+
+ <!-- QA SPECIFIC CONFIGURATIONS -->
+ <property file="build.properties" />
+
+ <fail message="property riftsaw.parent.dir must be specified"
unless="riftsaw.parent.dir" />
+
+ <!-- CONFIGURABLE PROPERTIES -->
+ <property name="database" value="hsqldb" />
+ <property name="riftsaw.version" value="2.0-SNAPSHOT" />
+ <property name="riftsaw.home"
value="${riftsaw.parent.dir}/riftsaw-${riftsaw.version}" /> <!--
riftsaw.home should not be configured. change riftsaw.parent.dir instead -->
+
+ <property name="jboss.parent.dir" value="${riftsaw.home}" />
+ <property name="jboss.version" value="5.1.0.GA" />
+ <property name="jboss.home"
value="${riftsaw.home}/jboss-${jboss.version}" />
+ <property name="jboss.filename"
value="jboss-${jboss.version}.zip" />
+
+ <property name="download.dir"
value="${riftsaw.parent.dir}/downloads" />
+
+ <property name="jboss.distro.url"
value="http://downloads.sourceforge.net/jboss/${jboss.filename}" />
+ <property name="jboss.distro.path"
value="${download.dir}/${jboss.filename}" />
+
+ <property name="jbossesb.version" value="4.6" />
+ <property name="jbossesb.distro.dir"
value="${riftsaw.home}/downloads" />
+ <property name="jbossesb.filename"
value="jbossesb-${jbossesb.version}.zip" />
+ <property name="jbossesb.distro.url"
value="http://jboss.org/downloading/?projectId=jbossesb&url=...
/>
+ <property name="jbossesb.distro.path"
value="${download.dir}/${jbossesb.filename}" />
+
+ <property name="org.jboss.esb.server.config" value="default"
/>
+
+ <echo message="database.......... ${database}" />
+ <echo message="riftsaw.version...... ${riftsaw.version}" />
+ <echo message="riftsaw.home......... ${riftsaw.home}" />
+ <echo message="jbossesb.home.. ${jboss.home}" />
+
+
+ <condition property="is.jboss.distro.available">
+ <available file="${jboss.distro.path}" />
+ </condition>
+ <condition property="is.jbossesb.distro.available">
+ <available file="${jbossesb.distro.path}" />
+ </condition>
+
+ <!-- remove the riftsaw.home -->
+ <target name="clean"
+ description="Clean the RiftSaw home">
+ <delete dir="${riftsaw.home}" />
+ </target>
+
+ <!-- ### REINSTALL JBOSSESB ################################################ -->
+ <target name="reinstall.jbossesb"
+ depends="delete.jboss, install.jbossesb"
+ description="Deletes the previous jboss esb installation and re-installs
jbossesb" />
+
+ <!-- ### DELETE JBOSS ################################################### -->
+ <target name="delete.jboss"
+ description="Deletes jboss installation">
+ <delete dir="${jboss.home}" />
+ </target>
+
+ <!-- ### INSTALL JBOSS ESB Server##################################################
-->
+ <target name="install.jbossesb"
+ depends="get.jboss, get.jbossesb"
+ description="Install JBoss ESB into JBoss AS server">
+ <unzip src="${jboss.distro.path}" dest="${jboss.parent.dir}"
/>
+ <chmod perm="a+x" file="${jboss.home}/bin/run.sh"
os="Linux, Mac OS X" />
+ <chmod perm="a+x" file="${jboss.home}/bin/shutdown.sh"
os="Linux, Mac OS X" />
+
+ <unzip src="${jbossesb.distro.path}"
dest="${jboss.parent.dir}" />
+
+ <ant dir="${jboss.parent.dir}/jbossesb-${jbossesb.version}/install"
target="deploy">
+ <property name="org.jboss.esb.server.home"
value="${jboss.home}" />
+ <property name="org.jboss.esb.server.config"
value="${org.jboss.esb.server.config}" />
+ </ant>
+ </target>
+
+ <!-- ### INSTALL RiftSaw into JBossESB
################################################## -->
+ <target name="install.riftsaw"
+ depends="install.jbossesb"
+ description="Install RiftSaw into JBossESB Server">
+ <unzip src="../distribution/target/riftsaw-${riftsaw.version}.zip"
dest="../distribution/target" />
+
+ <ant dir="../distribution/target/riftsaw-${riftsaw.version}/install"
target="deploy">
+ <property name="org.jboss.esb.server.home"
value="${jboss.home}}" />
+ <property name="org.jboss.esb.server.config"
value="${org.jboss.esb.server.config}" />
+ </ant>
+ </target>
+
+
+ <!-- ### GET JBOSS and JBossESB
###################################################### -->
+ <target name="get.jboss"
+ unless="is.jboss.distro.available"
+ description="Downloads JBoss into ${download.dir}">
+ <mkdir dir="${download.dir}" />
+ <get src="${jboss.distro.url}" dest="${jboss.distro.path}"
/>
+ </target>
+
+ <target name="get.jbossesb"
+ unless="is.jbossesb.distro.available"
+ description="Download JBossESB into ${jboss.distro.dir}">
+ <mkdir dir="${download.dir}" />
+ <get src="${jbossesb.distro.url}"
dest="${jbossesb.distro.path}" />
+ </target>
+
+
+</project>
\ No newline at end of file
Added: trunk/qa/hudson-riftsaw-jboss.sh
===================================================================
--- trunk/qa/hudson-riftsaw-jboss.sh (rev 0)
+++ trunk/qa/hudson-riftsaw-jboss.sh 2009-10-23 16:29:05 UTC (rev 200)
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# Run Riftsaw Integration tests.
+
+MAVEN_OPTS="-Xms512M -Xmx1024M"
+RIFTSAW_PARENT_DIR="/local/deploy/riftsaw"
+JBOSS_VERSION="5.1.0.GA"
+
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR"
+echo ANT_PROPERTIES=${ANT_PROPERTIES}
+
+echo cleanup the RiftSaw HOME
+ant $ANT_PROPERTIES clean
+ant $ANT_PROPERTIES install.jbossesb
+
+
+DATABASE="hsql"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+ESB_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+ESB_CONFIG="default"
+
+echo build the RiftSaw and run integration tests
+echo ESB_HOME=$ESB_HOME, ESB_CONIFG=$ESB_CONFIG
+
+cd ..
+mvn -Dorg.jboss.esb.server.home=$ESB_HOME -Dorg.jboss.esb.server.config=$ESB_CONFIG
-Ddatabase=$DATABASE clean install -P integration
Property changes on: trunk/qa/hudson-riftsaw-jboss.sh
___________________________________________________________________
Name: svn:executable
+ *