/ri-components/file-binding/runtime/regress/file00001.ksh
Korn Shell | 69 lines | 24 code | 10 blank | 35 comment | 1 complexity | 21d964c9b637363036d406fe0f329b73 MD5 | raw file
- #!/bin/sh
- #
- # BEGIN_HEADER - DO NOT EDIT
- #
- # The contents of this file are subject to the terms
- # of the Common Development and Distribution License
- # (the "License"). You may not use this file except
- # in compliance with the License.
- #
- # You can obtain a copy of the license at
- # https://open-esb.dev.java.net/public/CDDLv1.0.html.
- # See the License for the specific language governing
- # permissions and limitations under the License.
- #
- # When distributing Covered Code, include this CDDL
- # HEADER in each file and include the License file at
- # https://open-esb.dev.java.net/public/CDDLv1.0.html.
- # If applicable add the following below this CDDL HEADER,
- # with the fields enclosed by brackets "[]" replaced with
- # your own identifying information: Portions Copyright
- # [year] [name of copyright owner]
- #
- #
- # @(#)file00001.ksh
- # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
- #
- # END_HEADER - DO NOT EDIT
- #
- #create a JBI test installation and start it up
- echo Starting framework for tests
- . ./regress_defs.ksh
- # rm -f $JBI_DOMAIN_ROOT/logs/server.log
- #remove our old test installations BEFORE we restart the appserver:
- rm -rf $JBI_DOMAIN_ROOT/jbi/bindings/SunFileBinding
- rm -rf $JBI_DOMAIN_ROOT/jbi/engines/29ae7208-b07d-45c7-8662-e1389d6b2ff
- rm -rf $JBI_DOMAIN_ROOT/jbi/tempdeploy
- rm -rf $JBI_DOMAIN_ROOT/jbi/engines/TESTENGINE_FOR_FILEBINDING
- #remove "pre-loaded" scaffolded installations:
- rm -f $JBI_DOMAIN_ROOT/config/ComponentList.dat
- touch $JBI_DOMAIN_ROOT/config/ComponentList.dat
- # remove file binding specific folders and create new ones
- rm -rf $FILEBINDING_BLD_DIR/test/input
- rm -rf $FILEBINDING_BLD_DIR/test/output
- rm -rf $FILEBINDING_BLD_DIR/test/processed
- rm -rf $FILEBINDING_BLD_DIR/test/outboundoutput
- rm -rf $FILEBINDING_BLD_DIR/test/sample_files
- mkdir -p $FILEBINDING_BLD_DIR/test/input
- mkdir $FILEBINDING_BLD_DIR/test/input/transforminonly
- mkdir $FILEBINDING_BLD_DIR/test/input/transforminout
- mkdir $FILEBINDING_BLD_DIR/test/input/transformrobustinonly
- mkdir $FILEBINDING_BLD_DIR/test/output
- mkdir $FILEBINDING_BLD_DIR/test/processed
- mkdir $FILEBINDING_BLD_DIR/test/outboundoutput
- mkdir $FILEBINDING_BLD_DIR/test/sample_files
- cp $FILEBINDING_REGRESS_DIR/test/sample_files/* $FILEBINDING_BLD_DIR/test/sample_files
- chmod +w $FILEBINDING_BLD_DIR/test/sample_files/*
- # $AS8BASE/bin/asadmin start-domain $JBI_DOMAIN_NAME
- # sleep 5
- echo Started the Test framework