PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/ri-clients/jbi-ant-tasks/regress/ui00016.ksh

https://bitbucket.org/rsaqc/openesb-core
Korn Shell | 96 lines | 45 code | 18 blank | 33 comment | 0 complexity | a4a86d0b0011df33c56a4bd87091174a MD5 | raw file
  1. #!/bin/sh
  2. #
  3. # BEGIN_HEADER - DO NOT EDIT
  4. #
  5. # The contents of this file are subject to the terms
  6. # of the Common Development and Distribution License
  7. # (the "License"). You may not use this file except
  8. # in compliance with the License.
  9. #
  10. # You can obtain a copy of the license at
  11. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  12. # See the License for the specific language governing
  13. # permissions and limitations under the License.
  14. #
  15. # When distributing Covered Code, include this CDDL
  16. # HEADER in each file and include the License file at
  17. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  18. # If applicable add the following below this CDDL HEADER,
  19. # with the fields enclosed by brackets "[]" replaced with
  20. # your own identifying information: Portions Copyright
  21. # [year] [name of copyright owner]
  22. #
  23. #
  24. # @(#)ui00016.ksh
  25. # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. ####
  30. # Test for list-statistics
  31. ####
  32. echo "ui00016 : jbi-list-statistics Ant Task."
  33. . ./regress_defs.ksh
  34. echo prepare the artifacts
  35. ant -q -emacs -propertyfile "$JV_JBI_DOMAIN_PROPS" -lib "$REGRESS_CLASSPATH" -f ui00015.xml
  36. SA_ARCHIVE=${JV_SVC_BLD}/regress/dist/ping-sa.jar
  37. SA_NAME=PingApp
  38. COMPONENT_ARCHIVE=${JV_SVC_BLD}/regress/dist/simpletestengine.jar
  39. COMPONENT_NAME=SimpleTestEngine
  40. run_test_against_server()
  41. {
  42. $JBI_ANT -Djbi.component.name=sun-http-binding start-component
  43. $JBI_ANT -Djbi.deploy.file=$SA_ARCHIVE deploy-service-assembly
  44. $JBI_ANT -Djbi.service.assembly.name=$SA_NAME start-service-assembly
  45. $JBI_ANT -Djbi.install.file=$COMPONENT_ARCHIVE install-component
  46. $JBI_ANT -Djbi.component.name=$COMPONENT_NAME start-component
  47. $JBI_ANT -Djbi.task.fail.on.error=true -Djbi.generate.templates=true list-all-statistics
  48. $JBI_ANT -Djbi.service.assembly.name=$SA_NAME stop-service-assembly
  49. $JBI_ANT -Djbi.service.assembly.name=$SA_NAME shut-down-service-assembly
  50. $JBI_ANT -Djbi.service.assembly.name=$SA_NAME undeploy-service-assembly
  51. $JBI_ANT -Djbi.component.name=sun-http-binding shut-down-component
  52. $JBI_ANT -Djbi.component.name=$COMPONENT_NAME stop-component
  53. $JBI_ANT -Djbi.component.name=$COMPONENT_NAME shut-down-component
  54. $JBI_ANT -Djbi.component.name=$COMPONENT_NAME uninstall-component
  55. }
  56. run_test()
  57. {
  58. $JBI_ANT -Djbi.target=$TARGET -Djbi.component.name=sun-http-binding start-component
  59. $JBI_ANT -Djbi.target=$TARGET -Djbi.deploy.file=$SA_ARCHIVE deploy-service-assembly
  60. $JBI_ANT -Djbi.target=$TARGET -Djbi.service.assembly.name=$SA_NAME start-service-assembly
  61. $JBI_ANT -Djbi.target=$TARGET -Djbi.install.file=$COMPONENT_ARCHIVE install-component
  62. $JBI_ANT -Djbi.target=$TARGET -Djbi.component.name=$COMPONENT_NAME start-component
  63. $JBI_ANT -Djbi.task.fail.on.error=true -Djbi.target=$TARGET -Djbi.generate.templates=true list-all-statistics
  64. $JBI_ANT -Djbi.target=$TARGET -Djbi.service.assembly.name=$SA_NAME stop-service-assembly
  65. $JBI_ANT -Djbi.target=$TARGET -Djbi.service.assembly.name=$SA_NAME shut-down-service-assembly
  66. $JBI_ANT -Djbi.target=$TARGET -Djbi.service.assembly.name=$SA_NAME undeploy-service-assembly
  67. $JBI_ANT -Djbi.target=$TARGET -Djbi.component.name=sun-http-binding shut-down-component
  68. $JBI_ANT -Djbi.target=$TARGET -Djbi.component.name=$COMPONENT_NAME stop-component
  69. $JBI_ANT -Djbi.target=$TARGET -Djbi.component.name=$COMPONENT_NAME shut-down-component
  70. $JBI_ANT -Djbi.target=$TARGET -Djbi.component.name=$COMPONENT_NAME uninstall-component
  71. }
  72. run_test_against_server
  73. # Run against cluster
  74. TARGET=ant_cluster
  75. run_test
  76. # Run against standalone instance
  77. TARGET=instance13
  78. run_test