diff options
author | Mikael Grankvist <mikael.grankvist@itmill.com> | 2009-12-14 11:10:07 +0000 |
---|---|---|
committer | Mikael Grankvist <mikael.grankvist@itmill.com> | 2009-12-14 11:10:07 +0000 |
commit | 9bf33c47f2634bf2c496b842a7d3c5bd7c303632 (patch) | |
tree | 9b18c2744249fd623e633f4a8d75214a07dcf80b /tests/integration_tests.xml | |
parent | 8e04b4e1a2b9075b5cbad7554a482359ea6f5e87 (diff) | |
download | vaadin-framework-9bf33c47f2634bf2c496b842a7d3c5bd7c303632.tar.gz vaadin-framework-9bf33c47f2634bf2c496b842a7d3c5bd7c303632.zip |
Updated integration test images and added missing reference integration test images.
added wait lock to integration tests so that multiple integration tests can't run at the same time.
svn changeset:10277/svn branch:6.2
Diffstat (limited to 'tests/integration_tests.xml')
-rw-r--r-- | tests/integration_tests.xml | 52 |
1 files changed, 49 insertions, 3 deletions
diff --git a/tests/integration_tests.xml b/tests/integration_tests.xml index 25e324ffe6..0ad9b5e034 100644 --- a/tests/integration_tests.xml +++ b/tests/integration_tests.xml @@ -25,9 +25,16 @@ <property name="user" value="rnd" />
<property name="passphrase" value="" />
+ <!-- add ant contrib -->
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties">
+ <classpath>
+ <pathelement location="../build/lib/ant-contrib-1.0b3.jar"/>
+ </classpath>
+ </taskdef>
+
<!-- Upload war to deploy to ssh host -->
<target name="upload-demo">
- <scp file="${demo.war}" todir="${user}@${sshHost}:servers/demo.war" keyfile="${sshkey.file}" passphrase="${passphrase}" />
+ <scp file="${demo.war}" todir="${user}@${sshHost}:demo.war" keyfile="${sshkey.file}" passphrase="${passphrase}" />
</target>
<!-- Run sampler deployment test -->
@@ -342,8 +349,47 @@ </target>
<!-- Upload demo, clean error screenshots and test deployment on all servers -->
- <target name="all" depends="upload-demo,tomcat4,tomcat5,tomcat6,jetty5,jetty6,jetty7,jboss3,jboss4,jboss5,glassfish,liferay,weblogic9,weblogic10,GAE,clean" />
-
+ <target name="all">
+ <echo>Getting lock</echo>
+ <antcall target="get-lock" />
+ <echo>Got lock</echo>
+ <trycatch property="tried">
+ <try>
+ <antcall target="upload-demo" />
+ <antcall target="tomcat4" />
+ <antcall target="tomcat5" />
+ <antcall target="tomcat6" />
+ <antcall target="jetty5" />
+ <antcall target="jetty6" />
+ <antcall target="jetty7" />
+ <antcall target="jboss3" />
+ <antcall target="jboss4" />
+ <antcall target="jboss5" />
+ <antcall target="glassfish" />
+ <antcall target="liferay" />
+ <antcall target="weblogic9" />
+ <antcall target="weblogic10" />
+ <antcall target="GAE" />
+ </try>
+ <catch>
+ <echo>${tried}</echo>
+ <echo>Running targets: clean and release-lock</echo>
+ </catch>
+ <finally>
+ <antcall target="clean" />
+ <antcall target="release-lock" />
+ </finally>
+ </trycatch>
+ </target>
+
+ <target name="get-lock">
+ <sshexec host="${sshHost}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} get-lock" />
+ </target>
+
+ <target name="release-lock">
+ <sshexec host="${sshHost}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} release-lock" />
+ </target>
+
<!-- Remove demo.war -->
<target name="clean">
<sshexec host="${sshHost}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} clean" />
|