Changeset 88c19b89 in vaadin for tests/integration_tests.xml
- Timestamp:
- 12/20/11 11:34:45 (17 months ago)
- Branches:
- master, b1390c580cf5e9ad6adbb6067007d03fb69a92cc, 6a7683bedbdc745a6296a44a0328d61172181442
- Children:
- 9402854b2
- Parents:
- dcf839ee
- git-author:
- Mikael Vappula <mikael@…> (12/20/11 11:30:06)
- git-committer:
- Mikael Vappula <mikael@…> (12/20/11 11:34:45)
- File:
-
- 1 edited
-
tests/integration_tests.xml (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/integration_tests.xml
rc1ac1f6b r88c19b89 1 1 <?xml version="1.0"?> 2 2 3 <project name="Vaadin Integration Tests" basedir="." default="integration-test-all"> 3 <project xmlns:antcontrib="antlib:net.sf.antcontrib" 4 name="Vaadin Integration Tests" basedir="." default="integration-test-all"> 4 5 5 6 <!-- Import common targets --> … … 34 35 <!-- Upload war to deploy to ssh host --> 35 36 <target name="integration-test-upload-demo"> 36 < scp file="${demo.war}" todir="${user}@${test.integration.server}:integration-tests/servers/demo.war" keyfile="${sshkey.file}" passphrase="${passphrase}" />37 <antcontrib:scp file="${demo.war}" todir="${user}@${test.integration.server}:integration-tests/servers/demo.war" keyfile="${sshkey.file}" passphrase="${passphrase}" /> 37 38 </target> 38 39 … … 261 262 262 263 <parallel> 263 < trycatch property="tried">264 <antcontrib:trycatch property="tried"> 264 265 <try> 265 266 <!-- Still running GAE test from the old server which requires its own lock --> … … 282 283 <echo message="Uploading of demo.war failed. ${tried}" /> 283 284 </catch> 284 </ trycatch>285 </antcontrib:trycatch> 285 286 286 287 <antcall target="integration-test-liferay6" /> … … 313 314 <property name="target-port" value="8080" /> 314 315 315 < if>316 <antcontrib:if> 316 317 <isset property="startDelay" /> 317 318 <then> 318 < math result="sleepTime" datatype="int">319 <antcontrib:math result="sleepTime" datatype="int"> 319 320 <op op="rint"> 320 321 <op op="*"> … … 323 324 </op> 324 325 </op> 325 </ math>326 </antcontrib:math> 326 327 <echo>Delaying startup of ${target-server} with ${sleepTime} seconds</echo> 327 328 <sleep seconds="${sleepTime}" /> 328 329 </then> 329 </ if>330 331 < scp todir="${user}@${target-host}:." keyfile="${sshkey.file}" trust="yes" passphrase="${passphrase}" >330 </antcontrib:if> 331 332 <antcontrib:scp todir="${user}@${target-host}:." keyfile="${sshkey.file}" trust="yes" passphrase="${passphrase}" > 332 333 <fileset dir="integration_base_files"> 333 334 <include name="*" /> 334 335 </fileset> 335 </ scp>336 </antcontrib:scp> 336 337 337 338 <!-- trycatch probably not needed any more as it just fails with the original message and doesn't do anything in the finally block --> 338 < trycatch property="error_message">339 <antcontrib:trycatch property="error_message"> 339 340 <try> 340 341 <!-- timeout in one hour (remote end should timeout in 55 minutes) --> … … 345 346 </antcall> 346 347 347 < scp file="${demo.war}" todir="${user}@${target-host}:demo.war" keyfile="${sshkey.file}" trust="yes" passphrase="${passphrase}" />348 <antcontrib:scp file="${demo.war}" todir="${user}@${target-host}:demo.war" keyfile="${sshkey.file}" trust="yes" passphrase="${passphrase}" /> 348 349 349 350 <!-- timeout in 15 minutes --> … … 389 390 <fail message="${error_message}" /> 390 391 </catch> 391 </ trycatch>392 </antcontrib:trycatch> 392 393 </target> 393 394 … … 399 400 <target name="run-generic-integration-test"> 400 401 <concat>##teamcity[testStarted name='${target-server}' flowId='${target-server}']</concat> 401 < trycatch property="tried">402 <antcontrib:trycatch property="tried"> 402 403 <try> 403 404 <antcall target="do-run-generic-test" /> 404 405 </try> 405 406 <catch> 406 <antc allback target="teamcity-escape" return="tried-escaped">407 <antcontrib:antcallback target="teamcity-escape" return="tried-escaped"> 407 408 <param name="returnTo" value="tried-escaped" /> 408 409 <param name="message" value="${tried}" /> 409 </antc allback>410 </antcontrib:antcallback> 410 411 <concat>##teamcity[testFailed name='${target-server}' flowId='${target-server}' message='Integration test for ${target-server} failed.' details='${tried-escaped}']</concat> 411 412 </catch> 412 </ trycatch>413 </antcontrib:trycatch> 413 414 <concat>##teamcity[testFinished name='${target-server}' flowId='${target-server}']"</concat> 414 415 </target> … … 419 420 <!-- Should also perform other escaping (\u0085, \u2028 and \u2029) - see http://confluence.jetbrains.net/display/TCD65/Build+Script+Interaction+with+TeamCity --> 420 421 <!-- Immutable properties -> needs to create a new one every time --> 421 < propertyregex property="details-escaped1" input="${message}" regexp="['|\[\]]" replace="|\0" global="true" defaultValue="${message}" />422 < propertyregex property="details-escaped2" input="${details-escaped1}" regexp="\n" replace="|n" global="true" defaultValue="${details-escaped1}" />423 < propertyregex property="details-escaped3" input="${details-escaped2}" regexp="\r" replace="|r" global="true" defaultValue="${details-escaped2}" />422 <antcontrib:propertyregex property="details-escaped1" input="${message}" regexp="['|\[\]]" replace="|\0" global="true" defaultValue="${message}" /> 423 <antcontrib:propertyregex property="details-escaped2" input="${details-escaped1}" regexp="\n" replace="|n" global="true" defaultValue="${details-escaped1}" /> 424 <antcontrib:propertyregex property="details-escaped3" input="${details-escaped2}" regexp="\r" replace="|r" global="true" defaultValue="${details-escaped2}" /> 424 425 425 426 <property name="${returnTo}" value="${details-escaped3}" /> … … 428 429 <target name="run-integration-test"> 429 430 <concat>##teamcity[testStarted name='${target-server}' flowId='${target-server}']</concat> 430 < trycatch property="tried">431 <antcontrib:trycatch property="tried"> 431 432 <try> 432 433 <antcall target="integration-test-${target-server}" /> … … 439 440 <concat>##teamcity[testFailed name='${target-server}' flowId='${target-server}' message='Integration test for ${target-server} failed.' details='${tried-escaped}']"</concat> 440 441 </catch> 441 </ trycatch>442 </antcontrib:trycatch> 442 443 <concat>##teamcity[testFinished name='${target-server}' flowId='${target-server}']"</concat> 443 444 </target>
Note: See TracChangeset
for help on using the changeset viewer.
