curcuru     00/12/18 12:02:04

  Added:       test     TestThreads.bat TestThreads.properties
  Log:
  Helper batch files to run TestThreads/TestMultiTypeThreads
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/TestThreads.bat
  
  Index: TestThreads.bat
  ===================================================================
  @echo off
  @goto start
  @REM  Name:   TestThreads.bat
  @REM  Author: [EMAIL PROTECTED]
  @REM    Simple wrapper for TestThreads and TestMultiTypeThreads
  
  :start
  if "%1" == "" set TEST_NAME=TestMultiTypeThreads
  if not "%1" == "" set TEST_NAME=%1
  set END_PKG=trax
  if not "%JAVA_OPTS%" == "" set JAVA_OPTS_SAVE=%JAVA_OPTS%
  @REM for this test, we want to test thread saftey, not performance, 
  @REM    so we might as well ask for a bunch of memory
  set JAVA_OPTS=-mx64M %JAVA_OPTS%
  @echo Wrapper using 'trax.%TEST_NAME% -load TestThreads.properties'
  call runtest.bat %TEST_NAME% -load TestThreads.properties %2 %3 %4 %5 %6 %7 
%8 %9
  set END_PKG=
  set TEST_NAME=
  set JAVA_OPTS=
  if not "%JAVA_OPTS_SAVE%" == "" set JAVA_OPTS=%JAVA_OPTS_SAVE%
  :end
  
  
  
  1.1                  xml-xalan/test/TestThreads.properties
  
  Index: TestThreads.properties
  ===================================================================
  # Use this properties file with TestThreads and TestMultiTypeThreads
  # Options are similar to but not the same as other tests
  
  #---- Choose locations: where to find files, where to log to
  # testDir is where root of test xml/xsl files are
  inputDir=tests\\api
  
  # goldDir is not currently used: manual validation only
  
  # outDir is where we put the actual output files and any logs or error dumps
  outputDir=results-threads
  
  # All test output will be saved in this file
  logFile=results-threads\\TestThreads.xml
  
  #---- Choose thread-testing-specific options
  # How many 'sets' of threads to run (3 threads per set)
  numRunners=3
  
  # How many times each thread should loop
  numRunnerCalls=50
  
  # Parameter name and String value used for some threads
  paramName=param1n
  paramVal=new-param1n-value
  
  # Input file basenames for each set of threads (not including .xsl/.xml 
extension)
  # We really should run this over a variety of different
  #   kinds of stylesheets, not just the Minitest
  setOneFile=Minitest
  setTwoFile=MinitestParam
  setThreeFile=Minitest
  
  
  

Reply via email to