tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/tests/bin runtest.bat runtest.sh
Date Fri, 15 Oct 1999 21:37:46 GMT
costin      99/10/15 14:37:46

  Added:       src/tests/bin runtest.bat runtest.sh
  Removed:     src/shell runtest.bat runtest.sh
  Log:
  Moved runtest.[sh,bat] in tests/bin ( to simplify build.xml and clean up)
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat/src/tests/bin/runtest.bat
  
  Index: runtest.bat
  ===================================================================
  @echo off
  rem $Id: runtest.bat,v 1.1 1999/10/15 21:37:44 costin Exp $
  rem Startup batch file for servlet runner.
  
  rem This batch file written and tested under Windows NT
  rem Improvements to this file are welcome
  
  set host=localhost
  set port=8080
  set test=testlist.txt
  
  set topDir=..\..\..
  set tomcatBuildDir=%topDir%\build\tomcat
  set toolsDir=%topDir%\jakarta-tools
  
  set jsdkJars=%tomcatBuildDir%\webserver.jar;%tomcatBuildDir%\lib\servlet.jar
  set jspJars=%tomcatBuildDir%\lib\jasper.jar
  set beanJars=
  set miscJars=%toolsDir%\projectx-tr2.jar;%toolsDir%\moo.jar
  set appJars=%jsdkJars%;%jspJars%;%miscJars%
  set sysJars=%JAVA_HOME%\lib\tools.jar
  
  set appClassPath=.\classes;%appJars%
  set cp=%CLASSPATH%
  
  set CLASSPATH=%appClassPath%;%sysJars%
  
  if "%cp%" == "" goto next
  
  rem else
  set CLASSPATH=%CLASSPATH%;%cp%
  
  :next
  echo Using classpath: %CLASSPATH%
  
  start java org.apache.tomcat.shell.Startup %1 %2 %3 %4 %5 %6 %7 %8 %9
  rem java org.apache.tomcat.shell.Startup %1 %2 %3 %4 %5 %6 %7 %8 %9
  sleep 5
  java -Dtest.hostName=%host% -Dtest.port=%port% org.apache.tools.moo.Main \
      -testfile %test%
  java org.apache.tomcat.shell.Shutdown %1 %2 %3 %4 %5 %6 %7 %8 %9
  
  rem clean up
  
  set CLASSPATH=%cp%
  set port=
  set host=
  set test=
  set jsdkJars=
  set jspJars=
  set beanJars=
  set miscJars=
  set appJars=
  set appClassPath=
  set cp=
  
  rem pause
  
  
  
  1.1                  jakarta-tomcat/src/tests/bin/runtest.sh
  
  Index: runtest.sh
  ===================================================================
  #! /bin/sh
  #
  # $Id: runtest.sh,v 1.1 1999/10/15 21:37:45 costin Exp $
  
  # Shell script to run test harness
   
  host=localhost
  port=8080
  test=testlist.txt
  
  baseDir=../../..
  tomcatBuildDir=$baseDir/build/tomcat
  toolsDir=$baseDir/jakarta-tools
  
  jsdkJars=${tomcatBuildDir}/webserver.jar:${tomcatBuildDir}/lib/servlet.jar
  jspJars=${tomcatBuildDir}/lib/jasper.jar
  beanJars=
  miscJars=${toolsDir}/projectx-tr2.jar:${toolsDir}/moo.jar
  appJars=${jsdkJars}:${jspJars}:${miscJars}:${tomcatBuildDir}/classes
  sysJars=${JAVA_HOME}/lib/tools.jar
  
  appClassPath=./classes:${appJars}
  cp=$CLASSPATH
  
  CLASSPATH=${appClassPath}:${sysJars}
  export CLASSPATH
  
  if [ "$cp" != "" ]; then
      CLASSPATH=${CLASSPATH}:${cp}
      export CLASSPATH
  fi
  
  echo Using classpath: ${CLASSPATH}
  echo
  
  java org.apache.tomcat.shell.Startup "$@" &
  sleep 5
  java -Dtest.hostname=$host -Dtest.port=$port org.apache.tools.moo.Main \
      -testfile $test -debug
  java org.apache.tomcat.shell.Shutdown "$@"
  
  if [ "$cp" != "" ]; then
      CLASSPATH=${cp}
      export CLASSPATH
  else
      unset CLASSPATH
  fi
  
  
  

Mime
View raw message