[jbpm-commits] JBoss JBPM SVN: r5929 - jbpm4/trunk/qa.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Dec 8 22:06:48 EST 2009
Author: koen.aers at jboss.com
Date: 2009-12-08 22:06:48 -0500 (Tue, 08 Dec 2009)
New Revision: 5929
Added:
jbpm4/trunk/qa/hudson-jbpm4-enterprise.sh
Modified:
jbpm4/trunk/qa/build.xml
Log:
script to setup testsuite for ejb and jms activities
Modified: jbpm4/trunk/qa/build.xml
===================================================================
--- jbpm4/trunk/qa/build.xml 2009-12-09 03:01:46 UTC (rev 5928)
+++ jbpm4/trunk/qa/build.xml 2009-12-09 03:06:48 UTC (rev 5929)
@@ -105,7 +105,7 @@
</target>
<!-- JBOSS SETUP -->
- <target name="testsuite.jboss.setup"
+ <target name="testsuite.jboss.setup"
depends="reinstall.jbpm"
description="reinstalls jbpm, reinstalls jboss, installs jbpm into jboss, starts jboss and then creates the jbpm schema">
<ant antfile="${jbpm.home}/install/build.xml" target="reinstall.jboss" />
@@ -136,8 +136,8 @@
<fileset dir="cactus.webapp.cfg" />
</copy>
- <!-- delete the jbpm configuration files -->
- <delete dir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war/WEB-INF/classes" />
+ <!-- delete the jbpm configuration files -->
+ <delete dir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war/WEB-INF/classes" />
<delete file="${jboss.home}/server/default/deploy/jbpm-test-webapp.war/WEB-INF/lib/jta.jar" />
<!-- add examples.jar -->
@@ -163,7 +163,69 @@
<ant antfile="${jbpm.home}/install/build.xml" target="drop.jbpm.schema" />
<ant antfile="${jbpm.home}/install/build.xml" target="internal.stop.hsqldb.server.if.needed" />
</target>
+
+ <!-- ENTERPRISE SETUP -->
+ <target name="testsuite.enterprise.setup"
+ depends="reinstall.jbpm"
+ description="reinstalls jbpm, reinstalls jboss, installs jbpm into jboss, starts jboss and then creates the jbpm schema">
+ <ant antfile="${jbpm.home}/install/build.xml" target="reinstall.jboss" />
+ <ant antfile="${jbpm.home}/install/build.xml" target="install.jbpm.into.jboss" />
+ <ant antfile="${jbpm.home}/install/build.xml" target="create.user.webapp" />
+ <ant antfile="${jbpm.home}/install/build.xml" target="internal.install.and.start.hsqldb.if.needed" />
+ <ant antfile="${jbpm.home}/install/build.xml" target="create.jbpm.schema" />
+
+ <ant antfile="${jbpm.home}/examples/build.xml" target="examples.jar" />
+ <mkdir dir="${jboss.server.config.dir}/deploy/jbpm/userlibs" />
+ <copy file="${jbpm.home}/examples/target/examples.jar"
+ todir="${jboss.server.config.dir}/deploy/jbpm/userlibs" />
+
+ <!-- to build the jbpm test webapp we start by copying the user webapp -->
+ <mkdir dir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war" />
+ <copy todir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war">
+ <fileset dir="${jbpm.home}/install/generated/user-webapp"/>
+ </copy>
+
+ <!-- customize the jbpm configuration for the testsuite -->
+ <copy todir="${jboss.home}/server/default/deploy/jbpm/jbpm-service.sar" overwrite="true">
+ <fileset dir="jboss.jbpm.cfg" />
+ </copy>
+
+ <!-- customize the configuration for the jbpm-test-webapp -->
+ <copy todir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war" overwrite="true">
+ <fileset dir="cactus.webapp.cfg" />
+ </copy>
+
+ <!-- delete the jbpm configuration files -->
+ <delete dir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war/WEB-INF/classes" />
+ <delete file="${jboss.home}/server/default/deploy/jbpm-test-webapp.war/WEB-INF/lib/jta.jar" />
+
+ <!-- add examples.jar -->
+ <ant antfile="${jbpm.home}/examples/build.xml" target="examples.jar" />
+ <copy file="${jbpm.home}/examples/target/examples.jar" todir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war/WEB-INF/lib" />
+
+ <!-- add junit.jar -->
+ <copy file="${jbpm.home}/lib/junit.jar" todir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war/WEB-INF/lib" />
+
+ <!-- add the cactus libs -->
+ <copy todir="${jboss.home}/server/default/deploy/jbpm-test-webapp.war/WEB-INF/lib">
+ <fileset dir="../modules/test-cactus/target/jbpm.test.webapp.libs" />
+ </copy>
+
+ <!-- start jboss -->
+ <ant antfile="${jbpm.home}/install/build.xml" target="start.jboss" />
+ </target>
+
+
+ <!-- ENTERPRISE TEARDOWN -->
+ <target name="testsuite.enterprise.teardown"
+ description="drops the jbpm schema and stops jboss">
+ <ant antfile="${jbpm.home}/install/build.xml" target="stop.jboss" />
+ <ant antfile="${jbpm.home}/install/build.xml" target="drop.jbpm.schema" />
+ <ant antfile="${jbpm.home}/install/build.xml" target="internal.stop.hsqldb.server.if.needed" />
+ </target>
+
+
<!-- ################ -->
<!-- ### UPGRADE ### -->
<!-- ################ -->
Added: jbpm4/trunk/qa/hudson-jbpm4-enterprise.sh
===================================================================
--- jbpm4/trunk/qa/hudson-jbpm4-enterprise.sh (rev 0)
+++ jbpm4/trunk/qa/hudson-jbpm4-enterprise.sh 2009-12-09 03:06:48 UTC (rev 5929)
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# runs the jboss integration test suite
+
+MAVEN_OPTS="-Xms1024M -Xmx1024M"
+ANT_PROPERTIES="-Djboss.version=$JBOSS_VERSION -Djbpm.parent.dir=$WORKSPACE -Djboss.distro.dir=$SOURCE_REPO/jboss"
+echo ANT_PROPERTIES=${ANT_PROPERTIES}
+
+#echo just in case the previous run didnt complete ok, we stop jboss
+#ant -f modules/distro/src/main/files/install/build.xml $ANT_PROPERTIES reinstall.jboss
+#ant -f modules/distro/src/main/files/install/build.xml $ANT_PROPERTIES stop.jboss
+
+mvn -U -Pdistro,integration clean install
+ant -f qa/build.xml $ANT_PROPERTIES testsuite.enterprise.setup
+
+cd modules/test-enterprise-suite
+mvn -Pruntest test
+cd ../..
+
+#ant -f qa/build.xml $ANT_PROPERTIES testsuite.enterprise.teardown
Property changes on: jbpm4/trunk/qa/hudson-jbpm4-enterprise.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the jbpm-commits
mailing list