You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2004/08/31 12:19:56 UTC

cvs commit: ws-axis/c/tests/auto_build build.sh rmlog.sh runAllTests.sh runTest.sh

damitha     2004/08/31 03:19:56

  Added:       c/tests/auto_build build.sh rmlog.sh runAllTests.sh
                        runTest.sh
  Removed:     c/tests/auto_build/testcases runAllTests.sh runTest.sh
               c/tests/auto_build/linux autoBuildCVS.sh
  Log:
  Moved autoBuildCVS.sh from linux to prev. Moved testcases/runAllTests.sh and
  testcases/runTest.sh to prev
  
  Revision  Changes    Path
  1.1                  ws-axis/c/tests/auto_build/build.sh
  
  Index: build.sh
  ===================================================================
  #!/bin/bash
  #
  #   Copyright 2003-2004 The Apache Software Foundation.
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
  #   You may obtain a copy of the License at
  #
  #       http://www.apache.org/licenses/LICENSE-2.0
  #
  #   Unless required by applicable law or agreed to in writing, software
  #   distributed under the License is distributed on an "AS IS" BASIS,
  #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  #   See the License for the specific language governing permissions and
  #   limitations under the License.
  #
  #
  #   @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
  #
  
  echo "----------------------------------"
  echo "build server, client and samples"
  echo "----------------------------------"
  echo "run configure"
  ./configure --prefix=/usr/local/axiscpp_deploy \
      --with-apache2=/usr/local/apache2 \
      --with-apache=/usr/local/apache \
      --with-expat=/usr/local/expat1957 \
      --with-xercesc=/usr/local/xerces-c-src2_2_0 \
      --enable-libwww=no
  echo "make"
  make 2> build_errors
  
  
  
  
  1.1                  ws-axis/c/tests/auto_build/rmlog.sh
  
  Index: rmlog.sh
  ===================================================================
  rm -f log*
  
  
  
  1.1                  ws-axis/c/tests/auto_build/runAllTests.sh
  
  Index: runAllTests.sh
  ===================================================================
  #!/bin/sh
  #
  set +u # Don't complain about unset variables
  unset=0
  if [[ -z "$AXISCPP_HOME" ]]
  then
  	echo -e "Environment variable AXISCPP_HOME is not set. A default will be used"
      unset=1
  fi
  if [[ -z "$AXISCPP_HOME" ]]
  then
  	echo -e "Environment variable AXISCPP_HOME is not set. A default will be used"
      unset=1
  fi
  #if [[ -z "$AXISTEST_HOME" ]]
  #then
  #	echo -e "Environment variable AXISTEST_HOME is not set. A default will be used"
  #    unset=1
  #fi
  
  if [[ $unset -ne 0 ]]
  then
  	echo -n "Some required environment variables have not been set. "
  	echo -n "Continue? [Y/N] "; read x
      case $x in
  		Y|y) ;;
            *) echo -e "Exiting." ; exit 1 ;;
  	esac
  fi
  
  . testcases/platform/linux/setAxis.sh 
  
  rm -rf $OUTPUT_DIR
  
  passed=0
  num_tests=21
  
  # inserted Adrian Dick by
  #test1 
  runTestCase.sh testcases/wsdls/RpcHttpHeaderTest1.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test2
  runTestCase.sh testcases/wsdls/RpcHttpHeaderTest2.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test3 
  runTestCase.sh testcases/wsdls/RpcHttpHeaderTest3.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test4 
  runTestCase.sh testcases/wsdls/RpcHttpHeaderTest4.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test5 
  runTestCase.sh testcases/wsdls/RpcHttpHeaderTest5.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test6 
  runTestCase.sh testcases/wsdls/RpcHttpHeaderTest7.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test7 
  runTestCase.sh testcases/wsdls/RpcHttpHeaderTest8.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test8 
  runTestCase.sh testcases/wsdls/RpcSoapHeaderTest1.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test9 
  runTestCase.sh testcases/wsdls/RpcSoapHeaderTest2.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test10 
  runTestCase.sh testcases/wsdls/RpcSoapHeaderTest3.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test11
  runTestCase.sh testcases/wsdls/RpcSoapHeaderTest4.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test12
  runTestCase.sh testcases/wsdls/RpcSoapHeaderTest6.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test13 
  runTestCase.sh testcases/wsdls/RpcSoapHeaderTest8.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test14 
  runTestCase.sh testcases/wsdls/RpcSoapHeaderTest9.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test15 
  runTestCase.sh testcases/wsdls/RpcSoapHeaderTest10.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test16 
  runTestCase.sh testcases/wsdls/MathOps.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test17 
  runTestCase.sh testcases/wsdls/ExceptionTest.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test18 
  runTestCase.sh testcases/wsdls/FaultMapping.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test19 
  runTestCase.sh testcases/wsdls/InteropTestRound1.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test20
  runTestCase.sh testcases/wsdls/ExtensibilityQuery.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  #test21
  runTestCase.sh testcases/wsdls/Calculator.wsdl c++
  [[ $? -eq 0 ]] && passed=$(($passed + 1))
  
  #runTestCase.sh testcases/wsdls/SimpleTypeArray.wsdl c++
  #[[ $? -eq 0 ]] && passed=$(($passed + 1))
  #runTestCase.sh testcases/wsdls/SimpleTypeInnerUnbounded.wsdl c++
  #[[ $? -eq 0 ]] && passed=$(($passed + 1))
  #runTestCase.sh testcases/wsdls/SimpleTypeInnerUnboundedInOutput.wsdl c++
  #[[ $? -eq 0 ]] && passed=$(($passed + 1))
  # runTestCase.sh testcases/wsdls/SOAPHeaderStockService.wsdl c++
  #[[ $? -eq 0 ]] && passed=$(($passed + 1))
  # runTestCase.sh testcases/wsdls/TradeServices.wsdl c++
  #[[ $? -eq 0 ]] && passed=$(($passed + 1))
  
  echo -n "${passed}/${num_tests} tests passed."
  [[ $passed -eq $num_tests ]] && echo " PASSED" || echo " FAILED"
  
  exit 0
  
  for file in $(find client -name "*.c" -o -name "*.cpp")
  do
   runTestCase.sh $(echo testcases/wsdls/$(basename $file) | sed "s/Client\./.wsdl /" | sed "s/pp/++/")
  done
  
  
  
  1.1                  ws-axis/c/tests/auto_build/runTest.sh
  
  Index: runTest.sh
  ===================================================================
  #!/bin/sh
  #
  here=$PWD
  script_location=$(dirname $0)
  cd $script_location
  TEST_HOME=$PWD
  cd $here
  
  WSDL=$1
  LANG=${2:-c++}
  
  # Strip any path and suffix stuff from WSDL
  WSDL2=$(basename $WSDL wsdl)
  
  if [[ ! -f $WSDL ]]
  then
  	# Try in the wsdls directory
  	if [[ ! -f wsdls/${WSDL} ]]
  	then
  		if [[ ! -f wsdls/${WSDL2}.wsdl ]]
  		then
  			echo "Cannot find WSDL $WSDL"
  			exit 0
  		else
  			WSDL=wsdls/${WSDL2}.wsdl
  		fi
  	else
  		WSDL=wsdls/${WSDL}
  	fi
  fi
  
  if [[ ! -f $TEST_HOME/platform/linux/setAxis.sh ]]
  then
  	echo "Cannot determine where the test framework is."
      echo "The $0 script is probably in the wrong directory"
  	exit 1
  fi
  
  . $TEST_HOME/platform/linux/setAxis.sh 
  [[ $? -ne 0 ]] && {
  	exit 1
  }
  
  cd $AXISTEST_HOME
  
  [[ -f $OUTPUT_DIR/buildTestCase.log ]] && >$OUTPUT_DIR/buildTestCase.log
  [[ -f $OUTPUT_DIR/runTestCase.log ]] && >$OUTPUT_DIR/runTestCase.log
  runTestCase.sh $WSDL c++
  
  exit 0