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

/runtime/framework/regress/framework00004.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 55 lines | 11 code | 9 blank | 35 comment | 1 complexity | 02f967514dfed360e6e94dee970f9da4 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. # @(#)framework00004.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 classloader chain for engines
  32. # package components
  33. ant -emacs -q -f $JV_FRAMEWORK_REGRESS_DIR/scripts/build-framework00004-components.ant build-components
  34. # install engine
  35. $JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/ClassLoaderChainTestEngine.jar install-component
  36. # start engine (this tests the classloader chain)
  37. $JBI_ANT -Djbi.component.name="ClassLoaderChainTestEngine" start-component
  38. # shutdown engine
  39. $JBI_ANT -Djbi.component.name="ClassLoaderChainTestEngine" shut-down-component
  40. # uninstall engine
  41. $JBI_ANT -Djbi.component.name="ClassLoaderChainTestEngine" uninstall-component
  42. echo Engines Classloader Chain
  43. grep "java.net.URLClassLoader@" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.classloaderchaintest.engine.rt.log | wc -l
  44. grep "CustomClassLoader@" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.classloaderchaintest.engine.rt.log | wc -l
  45. grep "DelegatingClassLoader@" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.classloaderchaintest.engine.rt.log | wc -l
  46. # ### END