PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/openesb/openesb-core
Korn Shell | 92 lines | 36 code | 24 blank | 32 comment | 0 complexity | 6bdc81b760f85756be4d535b049618ea 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. # @(#)file00008.ksh
  24. # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
  25. #
  26. # END_HEADER - DO NOT EDIT
  27. #
  28. echo "filebinding00005.ksh- Test MEPs - file binding test"
  29. . ./regress_defs.ksh
  30. # create test engine
  31. $JBI_ANT -Djbi.install.file=$FILEBINDING_BLD_DIR/testengine/testengine.jar install-component
  32. # start out tests tests
  33. $JBI_ANT -Djbi.component.name=TESTENGINE_FOR_FILEBINDING start-component
  34. echo
  35. echo "Testing out-only with valid message"
  36. grep "Test-GOODOUTONLY-Passed" $DOMAIN_LOG | wc -l
  37. ls $FILEBINDING_BLD_DIR/test/outboundoutput | wc -l
  38. echo
  39. echo
  40. echo "Testing out-only with invalid message"
  41. grep "Test-BADOUTONLY-Passed" $DOMAIN_LOG | wc -l
  42. ls $FILEBINDING_BLD_DIR/test/outboundoutput | wc -l
  43. echo
  44. # put a file in input folder to start in-out exchange
  45. # starting in-out test
  46. cp $FILEBINDING_BLD_DIR/test/sample_files/inout.xml $FILEBINDING_BLD_DIR/test/input/transforminout
  47. sleep 2
  48. echo
  49. echo "Testing in-out with valid message"
  50. grep "Test-GOODINOUT-Passed" $DOMAIN_LOG | wc -l
  51. ls $FILEBINDING_BLD_DIR/test/output | wc -l
  52. ls $FILEBINDING_BLD_DIR/test/processed | wc -l
  53. echo
  54. cp $FILEBINDING_BLD_DIR/test/sample_files/inonly.xml $FILEBINDING_BLD_DIR/test/input/transforminonly
  55. sleep 2
  56. echo
  57. echo "Testing in-only with valid message"
  58. grep "Test-GOODINONLY-Passed" $DOMAIN_LOG | wc -l
  59. ls $FILEBINDING_BLD_DIR/test/output | wc -l
  60. ls $FILEBINDING_BLD_DIR/test/processed | wc -l
  61. echo
  62. cp $FILEBINDING_BLD_DIR/test/sample_files/robustinonly.xml $FILEBINDING_BLD_DIR/test/input/transformrobustinonly
  63. sleep 2
  64. $JBI_ANT -Djbi.component.name=TESTENGINE_FOR_FILEBINDING stop-component
  65. $JBI_ANT -Djbi.component.name=TESTENGINE_FOR_FILEBINDING shut-down-component
  66. $JBI_ANT -Djbi.component.name=TESTENGINE_FOR_FILEBINDING uninstall-component
  67. # stop shutdown uninstall
  68. echo Completed Testing file binding MEPs