PageRenderTime 51ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/ri-components/file-binding/runtime/regress/file00001.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 69 lines | 24 code | 10 blank | 35 comment | 1 complexity | 21d964c9b637363036d406fe0f329b73 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. # @(#)file00001.ksh
  25. # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. #create a JBI test installation and start it up
  30. echo Starting framework for tests
  31. . ./regress_defs.ksh
  32. # rm -f $JBI_DOMAIN_ROOT/logs/server.log
  33. #remove our old test installations BEFORE we restart the appserver:
  34. rm -rf $JBI_DOMAIN_ROOT/jbi/bindings/SunFileBinding
  35. rm -rf $JBI_DOMAIN_ROOT/jbi/engines/29ae7208-b07d-45c7-8662-e1389d6b2ff
  36. rm -rf $JBI_DOMAIN_ROOT/jbi/tempdeploy
  37. rm -rf $JBI_DOMAIN_ROOT/jbi/engines/TESTENGINE_FOR_FILEBINDING
  38. #remove "pre-loaded" scaffolded installations:
  39. rm -f $JBI_DOMAIN_ROOT/config/ComponentList.dat
  40. touch $JBI_DOMAIN_ROOT/config/ComponentList.dat
  41. # remove file binding specific folders and create new ones
  42. rm -rf $FILEBINDING_BLD_DIR/test/input
  43. rm -rf $FILEBINDING_BLD_DIR/test/output
  44. rm -rf $FILEBINDING_BLD_DIR/test/processed
  45. rm -rf $FILEBINDING_BLD_DIR/test/outboundoutput
  46. rm -rf $FILEBINDING_BLD_DIR/test/sample_files
  47. mkdir -p $FILEBINDING_BLD_DIR/test/input
  48. mkdir $FILEBINDING_BLD_DIR/test/input/transforminonly
  49. mkdir $FILEBINDING_BLD_DIR/test/input/transforminout
  50. mkdir $FILEBINDING_BLD_DIR/test/input/transformrobustinonly
  51. mkdir $FILEBINDING_BLD_DIR/test/output
  52. mkdir $FILEBINDING_BLD_DIR/test/processed
  53. mkdir $FILEBINDING_BLD_DIR/test/outboundoutput
  54. mkdir $FILEBINDING_BLD_DIR/test/sample_files
  55. cp $FILEBINDING_REGRESS_DIR/test/sample_files/* $FILEBINDING_BLD_DIR/test/sample_files
  56. chmod +w $FILEBINDING_BLD_DIR/test/sample_files/*
  57. # $AS8BASE/bin/asadmin start-domain $JBI_DOMAIN_NAME
  58. # sleep 5
  59. echo Started the Test framework