axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa_abeysin...@yahoo.com>
Subject Re: Test suite for Axis C++
Date Tue, 17 Aug 2004 03:45:30 GMT
Damitha, 
Few more thoughts.

1. In case of build failure it logs:
"${TIME}: Regression test on $TARGET: BUILD FAILED"
However it does not log an entry in case of BUILD SUCCESS.
(There can be situations where compilation succeeds but runnig fails.)

2. In case of attempt to run client fails it logs:
"${TIME}: Regression test on $TARGET: FAILED"
However it would be nice to log
"${TIME}: Regression test on $TARGET: RUN FAILED"

(I understand that if BUILD FAILED is missing and FAILED is present that means that running
has
failed. However, I think the above looks more clear)

3. In case of build failure it logs into the run log.
It would be better to log all build related messages into build log.

4. I would like to have all logs in a 'logs' folder rather than in the 'build' folder

Here is the modified block of code fro 1-3 suggestions above (in platform/linux/runTestCase.sh).
Please add those and 4 to cvs if you feel they are of use.

if [ ! -f $OUTPUT_DIR/$TARGET/client ]
then

  TIME=$(date "+%d/%m/%Y %H:%M:%S")
  echo "${TIME}: Regression test on $TARGET: BUILD FAILED" |tee -a $OUTPUT_DIR/buildTestCase.log

else

  TIME=$(date "+%d/%m/%Y %H:%M:%S")
  echo "${TIME}: Regression test on $TARGET: BUILD SUCCESS" |tee -a $OUTPUT_DIR/buildTestCase.log

  export LD_LIBRARY_PATH=$AXISCPP_HOME_BIN:$LIB_XERCES_BIN

  # Pass in the URI if it has been set.
  $OUTPUT_DIR/$TARGET/client $URI > $OUTPUT_DIR/$TARGET/$OUTPUT
  if [ -f $OUTPUT_DIR/$TARGET/$OUTPUT ]
  then
    diff -q output/$OUTPUT $OUTPUT_DIR/$TARGET 2>/dev/null
    if [ $? -eq 0 ]
    then
      TIME=$(date "+%d/%m/%Y %H:%M:%S")
      echo "${TIME}: Regression test on $TARGET: RUN SUCCESS" |tee -a $OUTPUT_DIR/runTestCase.log
      status=0
    else
      TIME=$(date "+%d/%m/%Y %H:%M:%S")
      echo "${TIME}: Regression test on $TARGET: RUN FAILED" |tee -a $OUTPUT_DIR/runTestCase.log
    fi
  else
    TIME=$(date "+%d/%m/%Y %H:%M:%S")
    echo "${TIME}: Regression test on $TARGET: RUN FAILED" |tee -a $OUTPUT_DIR/runTestCase.log
  fi

fi

Samisa...

--- Samisa Abeysinghe <samisa_abeysinghe@yahoo.com> wrote:

> Hi Damitha,
>     I have few ideas on the test scripts.
>     
> 1. In platform/linux/buildTestCase.sh wsdl tool is built using ant for each and 
> every test case. Would it not be better to make it one off?
> 
> 2/ The test suite assumes that I will have my Jars in the place it has hard coded 
> (${AXISCPP_HOME}/lib/axisjava).I would like it to use my own CLASSPATH setting.
> 
> 3. Is it possible to have a compile only opion?
> 
> Thanks,
> Samisa...
> 
> --- Andrew Perry2 <PERRYAN@uk.ibm.com> wrote:
> 
> > 
> > 
> > 
> > 
> > The web services called by these tests are written in java for websphere
> > 5.0.2. Will it be worthwhile for me to put the ear file, which also
> > contains all the source, into CVS for this project?
> > 
> > Regards
> > 
> > Andrew Perry
> > Clients for Web Service Stack
> > perryan@uk.ibm.com
> > Mail Point 102
> > IBM UK Laboratories. Hursley Park, Winchester, Hants. SO21 2JN
> > Tel. Internal 249828  External + 44 (0)1962 819828
> > Fax. + 44(0)1962 818080
> > 
> > 
> >                                                                            
> >              damitha@opensourc                                             
> >              e.lk                                                          
> >                                                                         To 
> >              14/08/2004 04:35          "Apache AXIS C Developers List"     
> >                                        <axis-c-dev@ws.apache.org>        
 
> >                                                                         cc 
> >              Please respond to                                             
> >               "Apache AXIS C                                       Subject 
> >              Developers List"          Re: Test suite for Axis C++         
> >                                                                            
> >                                                                            
> >                                                                            
> >                                                                            
> >                                                                            
> >                                                                            
> > 
> > 
> > 
> > 
> > 
> > 
> > >
> > >
> > >
> > > Hi,
> > >
> > > Why has the automated test suite been placed into the linux subtree of
> > > $AXISCPP_HOME/tests/auto_build?
> > >
> > > I'm assuming you're not intending on creating a whole subtree for each
> > > test
> > > platform, as all the tests should be suitably platform independent with
> > > the
> > > environment being appropriately configured by the scripts in
> > > ..../testcases/platform/....
> > >
> > > I feel the current use of $AXISCPP_HOME/tests/auto_build/linux may cause
> > > confusion, is there any possibility the linux directory be dropped or
> > > renamed?
> > >
> > >
> > > Adrian
> > > _______________________________________
> > > Adrian Dick (adrian.dick@uk.ibm.com)
> > >
> > >
> > >
> > >
> > >              John
> > >              Hawkins/UK/IBM@IB
> > >              MGB
> > To
> > >                                        "Apache AXIS C Developers List"
> > >              10-08-04 10:08            <axis-c-dev@ws.apache.org>
> > >
> > cc
> > >
> > >              Please respond to
> > Subject
> > >               "Apache AXIS C           Re: Test suite for Axis C++
> > >              Developers List"
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > Oh, I see
> > I completely forgot windows.
> > Yes something has to be done.
> > auto-build/testcases should be fine.
> > I'll do that.
> > 
> > thanks
> > damitha
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > > fyi:
> > > This suite was created originally by Jean -Yves, and automated and
> > > enhanced
> > > by Andrew Perry. We've used it here for some time and it's quite stable.
> > >
> > >
> > > John Hawkins
> > >
> > >
> > >
> > >
> > >              damitha kumarage
> > >              <damitha@opensour
> > >              ce.lk>
> > To
> > >                                        axis-c-dev@ws.apache.org
> > >              10/08/2004 10:02
> > cc
> > >
> > >
> > Subject
> > >              Please respond to         Test suite for Axis C++
> > >               "Apache AXIS C
> > >              Developers List"
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > > I'm going to add a testsuite to $AXISCPP_HOME/tests/auto_build folder
> > >
> > > When run with a wsdl as parameter this will simple generate the client
> > > stubs for the wsdl and build with a pre-prepared file including the main
> > > method and execute it. It will compare the result with the correct
> > > result expected and prints the success status.
> > >
> > > We can put all the wsdls in the wsdl folder there and run all the
> > > tests for the wsdls in one run.
> > > For details please refer to the Readme file there.
> > >
> > > Special thanks go to Adrian Dick and John Howkins for providing Axis C++
> > > this invaluble test suite.
> > >
> > > thanks
> > > damitha
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > 
> > 
> > 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
> 



		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

Mime
View raw message