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/01/19 22:11:01 UTC

cvs commit: xml-xalan/test compatconftest.bat compattest.bat CompatTest.properties runtest.bat

curcuru     01/01/19 13:11:01

  Modified:    test     runtest.bat
  Added:       test     compatconftest.bat compattest.bat
                        CompatTest.properties
  Log:
  Updates to run 2.x backwards compatibility tests;
  new helper batch files to run common 1.x tests on 2.x compat.jar
  
  Revision  Changes    Path
  1.6       +5 -3      xml-xalan/test/runtest.bat
  
  Index: runtest.bat
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/runtest.bat,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- runtest.bat	2000/12/27 21:10:45	1.5
  +++ runtest.bat	2001/01/19 21:11:01	1.6
  @@ -8,7 +8,7 @@
   @echo Notes/prerequisites: 
   @echo   Assumes you're in xml-xalan/test
   @echo   JAVA_OPTS Will be passed to java.exe or jview.exe
  -@echo   EXTRA_CP Will be appended to the classpath
  +@echo   EXTRA_CP Will be prepended to the classpath (changed Jan-01)
   @echo   END_PKG Will be the subpackage name after org.apache.qetest
   @echo   Special: first arg= -jview: Run Microsoft's jview instead of java
   @echo   Special: first arg= -crimson: Use crimson.jar instead of xerces.jar
  @@ -71,8 +71,10 @@
   @REM If JARDIR set, put those references first then default classpath
   if not "%JARDIR%" == "" set TEST_CP=%JARDIR%\testxsl.jar;%JARDIR%\%PARSER_JAR%;%JARDIR%\xalan.jar;%JARDIR%\bsf.jar;%JARDIR%\js.jar;%CLASSPATH%
   
  -@REM Wrappers use EXTRA_CP to add items to our classpath; if set, append
  -if not "%EXTRA_CP%" == "" set TEST_CP=%TEST_CP%;%EXTRA_CP%
  +@REM Wrappers use EXTRA_CP to add items to our classpath; if set, prepend
  +@REM 19-Jan-01 sc change to prepend to make Xalan-J 2.x compatibility
  +@REM  testing easier, since compat.jar gets added at head of classpath
  +if not "%EXTRA_CP%" == "" set TEST_CP=%EXTRA_CP%;%TEST_CP%
   
   @REM Wrappers use END_PKG to switch around the end of the 
   @REM    packagename; if not set, default it to most common package
  
  
  
  1.1                  xml-xalan/test/compatconftest.bat
  
  Index: compatconftest.bat
  ===================================================================
  @echo off
  @goto start
  @REM	Name:   compatconftest.bat
  @REM	Author: Shane_Curcuru@lotus.com
  @REM Simple wrapper to run the ConformanceTest using
  @REM    the Xalan-J 2.x backwards 1.x compatibility layer
  @REM Forces use of -flavor xalan, obviously
  
  :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
  @REM EXTRA_CP is used to add xalanj1compat.jar to the start of cp
  if "%JARDIR%" == "" set EXTRA_CP=..\java\build\xalanj1compat.jar
  if not "%JARDIR%" == "" set EXTRA_CP=%JARDIR%\xalanj1compat.jar
  @echo Wrapper using '%DASHCRIMSON% xsl.ConformanceTest -load ConformanceTest.properties -flavor xalan'
  call runtest.bat %DASHCRIMSON% ConformanceTest -load ConformanceTest.properties -flavor xalan %1 %2 %3 %4 %5 %6 %7 %8 %9
  set EXTRA_CP=
  set END_PKG=
  @REM Automatically attempt to style the results into HTML
  @REM Note: this is optional, but frequent enough to just try it here
  @REM Call with no args to get default processing; note that if 
  @REM  you've overridden logFile, this may not work
  call viewResults.bat %DASHCRIMSON% results-conf\ConformanceTest.xml results-conf\ConformanceTest.html
  
  set DASHCRIMSON=
  :end
  
  
  
  1.1                  xml-xalan/test/compattest.bat
  
  Index: compattest.bat
  ===================================================================
  @echo off
  @goto start
  @REM	Name:   compattest.bat
  @REM	Author: Shane_Curcuru@lotus.com
  @REM Simple wrapper for runtest.bat to run various Xalan-J 2.x 
  @REM    backwards 1.x compatibility layer tests, found in 
  @REM    the Xalan-J 1.x dir: org\apache\qetest\xalanj1
  
  :start
  @REM Pass along -crimson if it's the first arg
  if '%1' == '-crimson' set DASHCRIMSON=-crimson
  if '%1' == '-crimson' shift
  set END_PKG=xalanj1
  @REM EXTRA_CP is used to add xalanj1compat.jar to the start of cp
  if "%JARDIR%" == "" set EXTRA_CP=..\java\build\xalanj1compat.jar
  if not "%JARDIR%" == "" set EXTRA_CP=%JARDIR%\xalanj1compat.jar
  @echo Wrapper using '%DASHCRIMSON% xalanj1.%1 -load CompatTest.properties'
  call runtest.bat %DASHCRIMSON% %1 -load CompatTest.properties %2 %3 %4 %5 %6 %7 %8 %9
  set EXTRA_CP=
  set END_PKG=
  @REM Automatically attempt to style the results into HTML
  @REM Note: this is optional, but frequent enough to just try it here
  @REM Call with no args to get default processing; note that if 
  @REM  you've overridden logFile, this may not work
  call viewResults.bat %DASHCRIMSON% results-compat\CompatTest.xml results-compat\CompatTest.html
  
  set DASHCRIMSON=
  :end
  
  
  
  1.1                  xml-xalan/test/CompatTest.properties
  
  Index: CompatTest.properties
  ===================================================================
  # Xalan-J 1.x and 2.x backwards compatibility tests can 
  # use this properties file
  
  #---- 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 where the 'gold' files to check against live
  goldDir=tests\\api-gold
  
  # outDir is where we put the actual output files and any logs or error dumps
  outputDir=results-compat
  
  # All test output will be saved in this file
  logFile=results-compat\\CompatTest.xml
  
  #---- Choose processor: flavors supported: xalan|trax|other...
  # Note that the xalan flavor (XalanWrapper.java) works with either 
  #   the normal Xalan-J 1.x processor or the backwards compatibility
  #   processor found in Xalan-J 2.x's xalanj1compat.jar
  flavor=xalan
  
  #---- Choose tests: Filter to only run specific sets of tests
  # Set category to run only the single named directory
  #category=Atrs
  
  # Set excludes to exclude specific tests: foo.xsl;bar.xsl;goo.xsl
  #excludes=lre01.xsl;lre02.xsl
  
  # Run a specific list of files in the named file (see XLDirectoryIterator.java)
  #fileList=myListOfFiles.txt
  
  # Uncomment noErrTest to skip running any ./err subdir tests
  #noErrTest=true
  
  #---- 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
  
  # If we should save performance-oriented info in the logfile
  perfLogging=true
  
  # Set debug for advanced debugging of the tests themselves
  #debug=true
  
  #---- Choose a liaison: only valid with flavor=xalan
  # XDTM  Xalan-J 1.x/Xerces DTM -default- (uses xerces.jar)
  #liaison=org.apache.xalan.xpath.dtm.DTMLiaison
  # XDOM  Xalan-J 1.x/Xerces DOM (uses xerces.jar)
  #liaison=org.apache.xalan.xpath.xdom.XercesLiaison