PageRenderTime 27ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/runtime/esb-manage/regress/regress_defs.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 77 lines | 31 code | 7 blank | 39 comment | 4 complexity | 540ef07c6cc7c2ed2855166f2c694464 MD5 | raw file
  1. #
  2. # BEGIN_HEADER - DO NOT EDIT
  3. #
  4. # The contents of this file are subject to the terms
  5. # of the Common Development and Distribution License
  6. # (the "License"). You may not use this file except
  7. # in compliance with the License.
  8. #
  9. # You can obtain a copy of the license at
  10. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  11. # See the License for the specific language governing
  12. # permissions and limitations under the License.
  13. #
  14. # When distributing Covered Code, include this CDDL
  15. # HEADER in each file and include the License file at
  16. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  17. # If applicable add the following below this CDDL HEADER,
  18. # with the fields enclosed by brackets "[]" replaced with
  19. # your own identifying information: Portions Copyright
  20. # [year] [name of copyright owner]
  21. #
  22. #
  23. # @(#)regress_defs.ksh
  24. # Copyright 2004-2008 Sun Microsystems, Inc. All Rights Reserved.
  25. #
  26. # END_HEADER - DO NOT EDIT
  27. #
  28. #common definitions for management regression tests.
  29. ####
  30. # Source the esb definitions
  31. ####
  32. if [ "$my_test_domain" = "" ]; then
  33. . $SRCROOT/antbld/regress/esb_common_defs.ksh
  34. else
  35. #use my_test_domain if it is defined:
  36. . $SRCROOT/antbld/regress/common_defs.ksh
  37. fi
  38. export REGRESS_CLASSPATH
  39. REGRESS_CLASSPATH="$JV_SVC_CLASSES\
  40. ${JBI_PS}$JV_SVC_TEST_CLASSES\
  41. ${JBI_PS}$JV_JBI_HOME/lib/jbi_rt.jar\
  42. ${JBI_PS}$AS_INSTALL/lib/SUNWjdmk/5.1/lib/jdmkrt.jar\
  43. ${JBI_PS}$AS_INSTALL/lib/jmxremote_optional.jar\
  44. ${JBI_PS}$AS_INSTALL/lib/appserv-admin.jar\
  45. ${JBI_PS}$AS_INSTALL/lib/appserv-rt.jar\
  46. ${JBI_PS}$AS_INSTALL/lib/javaee.jar\
  47. "
  48. # Calls ant with jbi.task.fail.on.error=false so that we can track negative
  49. # test case output in the .out file
  50. export JBI_ANT_NEG
  51. JBI_ANT_NEG="$JBI_ANT -Djbi.task.fail.on.error=false"
  52. #
  53. # The target could be passed to this script.
  54. # jbiadmin00116 runs this test with target=cluster1
  55. #
  56. if [ "$1" != "" ]; then
  57. JBI_ANT_TARGET="$JBI_ANT -Djbi.target=$1"
  58. JBI_ANT_NEG_TARGET="$JBI_ANT -Djbi.target=$1 -Djbi.task.fail.on.error=false"
  59. else
  60. JBI_ANT_TARGET="$JBI_ANT"
  61. JBI_ANT_NEG_TARGET="$JBI_ANT_NEG"
  62. fi
  63. MANAGE_TEST_SL=$JV_SVC_TEST_CLASSES/dist/shared-library.jar
  64. MANAGE_TEST_BIND_COMP3=$JV_SVC_TEST_CLASSES/dist/component-binding3.jar
  65. MANAGE_EMPTY_SA=$JV_SVC_TEST_CLASSES/testdata/empty-service-assembly.zip
  66. #ASSERT that test domain is running:
  67. if [ "$my_test_domain" = "CAS" -a ! -r "$JBI_DOMAIN_STARTED" ]; then
  68. bldmsg -error -p "$testname" "TEST DOMAIN '$JBI_DOMAIN_NAME' is not running - TEST ABORTED"
  69. exit 1
  70. fi