You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2001/01/07 01:19:32 UTC

cvs commit: jakarta-tomcat/src/tests/share run-test.sh

costin      01/01/06 16:19:32

  Added:       src/tests/share run-test.sh
  Log:
  Added a small script to run the sanity-test.
  
  You need to build it first ( ant sanity-test ), set TOMCAT_HOME and then you
  can run the script.
  
  I have a much better solution for running the tests, but it still need a bit of tunning
  ( Ant is very different from what I used to know, and amazingly difficult to
  use it programatically )
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat/src/tests/share/run-test.sh
  
  Index: run-test.sh
  ===================================================================
  #!/bin/sh
  #
  
  # Shell script to run sanity test suite
   
  if [ "$TOMCAT_HOME" = "" ] ; then
      echo You need to set TOMCAT_HOME
  fi
  
  cp=$CLASSPATH
  
  CLASSPATH=${TOMCAT_HOME}/lib/ant.jar:$CLASSPATH
  CLASSPATH=${TOMCAT_HOME}/webapps/test/WEB-INF/classes:$CLASSPATH
  
  if [ "$cp" != "" ] ; then
      CLASSPATH=${CLASSPATH}:${cp}
  fi
  
  export CLASSPATH
  
  echo Using classpath: ${CLASSPATH}
  echo
  
  ant -Dgdir=${TOMCAT_HOME}/webapps/test/Golden -f ${TOMCAT_HOME}/webapps/test/WEB-INF/test-tomcat.xml $*
  
  exit 0