PageRenderTime 57ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/runtime/framework/regress/framework00003.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 73 lines | 17 code | 15 blank | 41 comment | 1 complexity | eca7c3cbab17a2ffe3895cb120ec2def 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. # @(#)framework00003.ksh
  25. # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. #regress setup
  30. . ./regress_defs.ksh
  31. echo testing shared library invocation for engines/bindings
  32. # package components
  33. ant -emacs -q -f $JV_FRAMEWORK_REGRESS_DIR/scripts/build-framework00003-components.ant build-components
  34. # install shared library
  35. $JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/StockQuotesSharedLibrary.jar install-shared-library
  36. # install binding
  37. $JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/SharedLibraryTestBinding.jar install-component
  38. # install engine
  39. $JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/SharedLibraryTestEngine.jar install-component
  40. # start binding (this invokes the shared lib API)
  41. $JBI_ANT -Djbi.component.name="SharedLibraryTestBinding" start-component
  42. # start engine (this invokes the shared lib API)
  43. $JBI_ANT -Djbi.component.name="SharedLibraryTestEngine" start-component
  44. # shutdown binding
  45. $JBI_ANT -Djbi.component.name="SharedLibraryTestBinding" shut-down-component
  46. # shutdown engine
  47. $JBI_ANT -Djbi.component.name="SharedLibraryTestEngine" shut-down-component
  48. # uninstall binding
  49. $JBI_ANT -Djbi.component.name="SharedLibraryTestBinding" uninstall-component
  50. # uninstall engine
  51. $JBI_ANT -Djbi.component.name="SharedLibraryTestEngine" uninstall-component
  52. # uninstall shared library
  53. $JBI_ANT -Djbi.shared.library.name="StockQuotesSharedLibrary" uninstall-shared-library
  54. echo Engines Shared Library Invocation
  55. grep "MSFT'S STOCK VALUE" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.sharedlibtest.engine.rt.log | wc -l
  56. echo Bindings Shared Library Invocation
  57. grep "MSFT'S STOCK VALUE" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.sharedlibtest.binding.rt.log | wc -l
  58. # ### END