You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2004/09/27 14:53:02 UTC

cvs commit: ws-axis/c/tests/auto_build/testcases/platform/linux apache_ports.config

damitha     2004/09/27 05:53:01

  Modified:    c/tests/auto_build autoBuildCVS.sh Readme.txt
               c/tests/auto_build/testcases/platform/linux
                        apache_ports.config
  Log:
  Improved the documentation and process. Now test.config is generated by the
  tool. User need only change apache_ports.config
  
  Revision  Changes    Path
  1.18      +8 -2      ws-axis/c/tests/auto_build/autoBuildCVS.sh
  
  Index: autoBuildCVS.sh
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/autoBuildCVS.sh,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- autoBuildCVS.sh	27 Sep 2004 07:33:41 -0000	1.17
  +++ autoBuildCVS.sh	27 Sep 2004 12:53:01 -0000	1.18
  @@ -104,10 +104,15 @@
   rm -f testcases/build/runTestCase.log
   APACHE2_PORT=$(echo | grep APACHE2_PORT testcases/platform/linux/apache_ports.config | grep -o "[0-9]*$")
   APACHE_PORT=$(echo | grep APACHE_PORT testcases/platform/linux/apache_ports.config | grep -o "[0-9]*$")
  +APACHE2_HOST=$(echo | grep APACHE2_HOST testcases/platform/linux/apache_ports.config | grep -o "=.*$"|sed "s/=//g")
  +APACHE_HOST=$(echo | grep APACHE_HOST testcases/platform/linux/apache_ports.config | grep -o "=.*$"|sed "s/=//g")
  +ls testcases/wsdls/*.wsdl | sed "s/testcases\/wsdls\///g" |sed "s/.wsdl/:host=localhost/g" > ${HOME_DIR}/testcases/platform/linux/test.config
  +ls testcases/wsdls/*.wsdl | sed "s/testcases\/wsdls\///g" |sed "s/.wsdl/:port=80/g" >> ${HOME_DIR}/testcases/platform/linux/test.config
   # *** Deploy with Apache 2 ***
   echo Start deploy with apache2 using expat parser library
   sed 's/xercesc/expat/g' ${AXISCPP_DEPLOY}/bin/deploy_apache2.sh > ${AXISCPP_DEPLOY}/bin/deploy_apache2_auto.sh
  -sed "s/[=][0-9]*$/=${APACHE2_PORT}/g" ${HOME_DIR}/testcases/platform/linux/test.config> ./test.config
  +sed "s/[port=][0-9]*$/port=${APACHE2_PORT}/g" ${HOME_DIR}/testcases/platform/linux/test.config> ./test.config
  +sed "s/host=.*$/host=${APACHE2_HOST}/g" testcases/platform/linux/test.config> ./test.config
   #sed 's/9090/80/g' testcases/platform/linux/test.config > ./test.config
   cp -f test.config testcases/platform/linux
   cp -f ${AXISCPP_DEPLOY}/lib/libaxiscpp_mod2.so ${APACHE2_HOME}/modules/
  @@ -130,7 +135,8 @@
   
   echo "Start deploy with apache1 using expat parser library"
   sed 's/xercesc/expat/g' ${AXISCPP_DEPLOY}/bin/deploy_apache.sh > ${AXISCPP_DEPLOY}/bin/deploy_apache_auto.sh
  -sed "s/[=][0-9]*$/=${APACHE_PORT}/g" ${HOME_DIR}/testcases/platform/linux/test.config> ./test.config
  +sed "s/[port=][0-9]*$/port=${APACHE_PORT}/g" ${HOME_DIR}/testcases/platform/linux/test.config> ./test.config
  +sed "s/host=.*$/host=${APACHE_HOST}/g" testcases/platform/linux/test.config> ./test.config
   #sed 's/80/9090/g' ${HOME_DIR}/testcases/platform/linux/test.config > ./test.config
   cp -f test.config ${HOME_DIR}/testcases/platform/linux
   cp -f ${AXISCPP_DEPLOY}/lib/libaxiscpp_mod.so ${APACHE_HOME}/libexec/
  
  
  
  1.6       +21 -18    ws-axis/c/tests/auto_build/Readme.txt
  
  Index: Readme.txt
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/Readme.txt,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Readme.txt	27 Sep 2004 11:04:31 -0000	1.5
  +++ Readme.txt	27 Sep 2004 12:53:01 -0000	1.6
  @@ -4,8 +4,7 @@
   cases for the C/C++ Service/Client Web Services Stack. For each wsdl service is 
   created and built and installed into the server.  Remeber to put your correct 
   port type implementation class in the appropriate place described in the 
  -documentation. Normally you don't put this implementation file if your service 
  -is running in a remote server.
  +documentation.
   
   ##############################################################################
   
  @@ -68,15 +67,21 @@
   
   runAllTests.[sh|bat] [lang]
   
  -  Run all the test cases present in the client folders for the specified
  -  language, default c++. The test will only be run if there is a matching
  -  client source file and wsdl
  +  Run all the test cases present in the service/client folders for the specified
  +  language, default c++. The test will only be successfull if there is a matching
  +  service/client source files and wsdl. 
  +  Note that in this case only the services and clients are built. Axis C++ is not 
  +  built in this case. It is assumed that $AXISCPP_HOME/tests/auto_build/cvsautobuild 
  +  is downloaded and built and installed by a previous run of autoBuildCVS.sh script.
   
   runTest.[sh|bat] wsdls\<wsdl> [lang]
   
     Run the client test for the specified WSDL file and the specified language,
  -  default c++. If there is not a matching client source file for the WSDL file
  -  then nothing is done.
  +  default c++. If there is not a matching service/client source file for the WSDL file
  +  then build may fail.
  +  Note that in this case only the service and client are built. Axis C++ is not
  +  built in this case. It is assumed that $AXISCPP_HOME/tests/auto_build/cvsautobuild
  +  is downloaded and built and installed by a previous run of autoBuildCVS.sh script.
   
   
   ##############################################################################
  @@ -101,17 +106,15 @@
       WSDL  file plus Client.
       Example: SimpleTypeArray.wsdl -> SimpleTypeArrayClient.c[pp]
   
  -4. Add the server and port running the webservice in 
  -   testcases/platform/linux/test.config file. The format is
  -   <wsdl file name (without .wsdl part)>:host=<your host>
  -   <wsdl file name (without .wsdl part)>:port=<your port>
  -   Also give your APACHE2_PORT and APACHE_PORT in
  -   testcases/platform/linux/apache_ports.config file. Giving
  -   these information is very important as tests are first run
  -   using apache2 and then using apache. port in test.config
  -   is replaced with whatever on apache_ports.config file whenever
  -   the tests are run. Anyway you must initially give the port
  -   in test.config file as a initialization kind of value.
  +4. Give your APACHE2_HOST, APACHE_HOST, APACHE2_PORT and APACHE_PORT  in
  +   testcases/platform/linux/apache_ports.config file. 
  +
  +   If you run autoBuildCVS.sh script then all test services are assumed 
  +   to be run on the server/port specified on apache_ports.config file.
  +
  +   If you just run tests by giving runAllTests.sh or runTest.sh
  +   you can give the server name and port of a remote machine
  +   which run your service in generated test.config.
   
   5. cd to auto_build and edit the build.sh file
      according to your configure requirments.
  
  
  
  1.2       +2 -0      ws-axis/c/tests/auto_build/testcases/platform/linux/apache_ports.config
  
  Index: apache_ports.config
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/platform/linux/apache_ports.config,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- apache_ports.config	27 Sep 2004 07:33:41 -0000	1.1
  +++ apache_ports.config	27 Sep 2004 12:53:01 -0000	1.2
  @@ -1,4 +1,6 @@
   #Specify the ports your apache2 and apache use here
   
  +APACHE2_HOST=192.168.101.15
  +APACHE_HOST=192.168.101.15
   APACHE2_PORT=80
   APACHE_PORT=9090