You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2001/02/27 16:11:59 UTC

cvs commit: xml-xalan/test conf.bat conf.properties perf.bat perf.properties

curcuru     01/02/27 07:11:58

  Added:       test     conf.bat conf.properties perf.bat perf.properties
  Log:
  New helper batch files to run StylesheetTestletDriver tests;
  these will replace ConformanceTest.* and PerformanceTest.*
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/conf.bat
  
  Index: conf.bat
  ===================================================================
  @echo off
  @goto start
  @REM	Name:   conf.bat
  @REM	Author: Shane_Curcuru@lotus.com
  @REM Simple wrapper to run StylesheetTestletDriver over tests\conf
  
  :start
  @REM Pass along -crimson if it's the first arg
  if '%1' == '-crimson' set DASHCRIMSON=-crimson
  if '%1' == '-crimson' shift
  set END_PKG=xsl
  @echo Wrapper using '%DASHCRIMSON% xsl.StylesheetTestletDriver -load conf.properties %1 %2 %3 %4 %5 %6 %7 %8 %9'
  call runtest.bat %DASHCRIMSON% StylesheetTestletDriver -load conf.properties %1 %2 %3 %4 %5 %6 %7 %8 %9
  set END_PKG=
  
  @REM Automatically attempt to style the results into HTML
  call viewResults.bat %DASHCRIMSON% results-conf\results.xml results-conf\results.html -param summaryfile results-conf\results.txt
  
  :end
  set DASHCRIMSON=
  
  
  
  1.1                  xml-xalan/test/conf.properties
  
  Index: conf.properties
  ===================================================================
  # This properties file describes the common options useable with 
  #   org.apache.qetest.xsl.StylesheetTestDriver
  # And defines the defaults used to run all positive tests 
  #   in the tests\conf directory
  
  
  #---- Choose locations: where to find files, where to log to ----
  # Note that inputDir, outDir, goldDir are not used when fileList is used
  # inputDir is where root of test xml/xsl files are
  inputDir=tests\\conf
  
  # goldDir is where the 'gold' or reference files to check against live
  goldDir=tests\\conf-gold
  
  # outDir is where we put the actual output files
  outputDir=results-conf
  
  # The test results log will be saved in this file
  logFile=results-conf\\results.xml
  
  
  #---- Choose XSLT processor and test algorithim ----
  # ProcessorWrapper flavors supported: xalan|trax|trax.s2s|other
  flavor=trax
  
  # A Testlet class defines the actual algorithim used to 
  #   test each stylesheet found
  testlet=org.apache.qetest.xsl.StylesheetTestlet
  
  
  #---- Choose tests via filters (either/or) ----
  # Set category to run only the single named directory
  #category=Atrs
  
  # Set filter for dirs under inputDir
  #dirFilter=org.apache.qetest.xsl.ConformanceDirRules
  
  # Set filter for files within dirFilter-found directories
  #fileFilter=org.apache.qetest.xsl.ConformanceFileRules
  
  #---- Choose tests via a specific list (either/or) ----
  # Set fileList to specify a list of files yourself
  # Using a fileList means filtering above is not done
  #fileList=listOfFiles.txt
  
  
  #---- Choose other test filtering options ----
  # Specify files that have the xsl embedded in them.
  embedded=embed01.xml;embed02.xml;embed07.xml
  
  # Specify a file differ for the output files
  fileChecker=org.apache.qetest.xsl.XHTFileCheckService
  
  # Specify files to be skipped, and not tested at all
  #excludes=lre01.xsl;lre02.xsl
  
  
  #---- Choose output: How much/what kinds of info should we log ----
  # Choose output: How much logging info is saved: between 0 (very little) and 99 (lots)
  loggingLevel=99
  # Choose output: How much logging info is put to the console only
  ConsoleLogger.loggingLevel=30
  
  # If we should save performance-oriented info in the logfile
  perfLogging=true
  
  # Set debug for advanced debugging of the tests themselves
  #debug=true
  
  
  
  
  
  1.1                  xml-xalan/test/perf.bat
  
  Index: perf.bat
  ===================================================================
  @echo off
  @goto start
  @REM	Name:   perf.bat
  @REM	Author: Shane_Curcuru@lotus.com
  @REM Simple wrapper to run StylesheetTestletDriver over tests\perf
  
  :start
  @REM Pass along -crimson if it's the first arg
  if '%1' == '-crimson' set DASHCRIMSON=-crimson
  if '%1' == '-crimson' shift
  
  @echo Currently defaulting JAVA_OPTS to include -mx64m for performance measurements
  set SJAVA_OPTS=%JAVA_OPTS%
  set JAVA_OPTS=-mx64m %JAVA_OPTS%
  
  set END_PKG=xsl
  @echo Wrapper using '%DASHCRIMSON% xsl.StylesheetTestletDriver -load perf.properties %1 %2 %3 %4 %5 %6 %7 %8 %9'
  call runtest.bat %DASHCRIMSON% StylesheetTestletDriver -load perf.properties %1 %2 %3 %4 %5 %6 %7 %8 %9
  set END_PKG=
  
  @REM Automatically attempt to style the results into HTML
  call viewResults.bat %DASHCRIMSON% results-perf\results.xml results-perf\results.html -param summaryfile results-perf\results.txt
  
  :end
  set DASHCRIMSON=
  set JAVA_OPTS=%SJAVA_OPTS%
  
  
  
  1.1                  xml-xalan/test/perf.properties
  
  Index: perf.properties
  ===================================================================
  # This properties file describes the common options useable with 
  #   org.apache.qetest.xsl.StylesheetTestletDriver when used 
  #   with org.apache.qetest.xsl.PerformanceTestlet
  # And defines the defaults used to run all positive tests 
  #   in the tests\perf directory
  
  
  #---- Choose locations: where to find files, where to log to ----
  # Note that inputDir, outDir, goldDir are not used when fileList is used
  # inputDir is where root of test xml/xsl files are
  inputDir=tests\\perf
  
  # goldDir is where the 'gold' or reference files to check against live
  goldDir=tests\\perf-gold
  
  # outDir is where we put the actual output files
  outputDir=results-perf
  
  # The test results log will be saved in this file
  logFile=results-perf\\results.xml
  
  
  #---- Choose XSLT processor and test algorithim ----
  # ProcessorWrapper flavors supported: xalan|trax|trax.s2s|other
  flavor=trax
  
  # A Testlet class defines the actual algorithim used to 
  #   test each stylesheet found
  testlet=org.apache.qetest.xsl.PerformanceTestlet
  # Alternate testlet that preprocesses stylesheets first
  #testlet=org.apache.qetest.xsl.PerfPreloadTestlet
  
  
  #---- Choose Performance-specific options ----
  # Whether or not we should run a single preloading process 
  # first, to 'prime the pump', load classes, etc.
  preload=true
  
  # How many times to iterate after that
  iterations=5
  
  
  #---- Choose tests via filters (either/or) ----
  # Set category to run only the single named directory
  #category=Atrs
  
  # Set filter for dirs under inputDir
  #dirFilter=org.apache.qetest.xsl.ConformanceDirRules
  
  # Set filter for files within dirFilter-found directories
  #fileFilter=org.apache.qetest.xsl.ConformanceFileRules
  
  #---- Choose tests via a specific list (either/or) ----
  # Set fileList to specify a list of files yourself
  # Using a fileList means filtering above is not done
  #fileList=listOfFiles.txt
  
  
  #---- Choose other test filtering options ----
  # Specify files that have the xsl embedded in them.
  embedded=embed01.xml;embed02.xml;embed07.xml
  
  # Specify a file differ for the output files
  fileChecker=org.apache.qetest.xsl.XHTFileCheckService
  
  # Specify files to be skipped, and not tested at all
  #excludes=lre01.xsl;lre02.xsl
  
  
  #---- Choose output: How much/what kinds of info should we log ----
  # Choose output: How much logging info is saved: between 0 (very little) and 99 (lots)
  loggingLevel=99
  # Choose output: How much logging info is put to the console only
  ConsoleLogger.loggingLevel=30
  
  # If we should save performance-oriented info in the logfile
  perfLogging=true
  
  # Set debug for advanced debugging of the tests themselves
  #debug=true