curcuru 01/06/15 10:49:10 Added: test threads.bat threads.filelist threads.properties Log: New Threaded testing model based on Testlet/StylesheetTestletDriver Revision Changes Path 1.1 xml-xalan/test/threads.bat Index: threads.bat =================================================================== @echo off @goto start @REM Name: threads.bat @REM Author: [EMAIL PROTECTED] @REM Simple wrapper to run ThreadedTestletDriver with @REM threads.properties and threads.filelist :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.ThreadedTestletDriver -load threads.properties %1 %2 %3 %4 %5 %6 %7 %8 %9' call runtest.bat %DASHCRIMSON% ThreadedTestletDriver -load threads.properties %1 %2 %3 %4 %5 %6 %7 %8 %9 set END_PKG= @REM (Optional) Automatically attempt to style the results into HTML call viewResults.bat %DASHCRIMSON% results-threads\results.xml results-threads\results.html -param summaryfile results.txt :end set DASHCRIMSON= 1.1 xml-xalan/test/threads.filelist Index: threads.filelist =================================================================== # See also threads.properties # Feel free to edit to run different files; note we do *not* use inputDir, etc. # First file is compiled into common Templates object # all remaining files are then spun off onto a thread each # Lines must be qualified path/filenames whitespace separated like: # path/inputName path/xmlName path/outputName path/goldName flavor [optional options] # This file is used as a Templates across all threads tests/api/trax/identity.xsl tests/api/trax/identity.xml results-threads/identity-shared.out tests/api-gold/trax/identity.out trax # These files are each processed in their own thread tests/api/Minitest.xsl tests/api/Minitest.xml results-threads/Minitest1.out tests/api-gold/Minitest-xalanj2.out trax iterations 5 tests/api/trax/dom/DOMImpIncl.xsl tests/api/trax/dom/DOMImpIncl.xml results-threads/DOMImpIncl.out tests/api-gold/trax/dom/DOMImpIncl.out trax.dom tests/conf/copy/copy01.xsl tests/conf/copy/copy01.xml results-threads/copy01.out tests/conf-gold/copy/copy01.out trax.dom 1.1 xml-xalan/test/threads.properties Index: threads.properties =================================================================== # This properties file describes the options useable with # org.apache.qetest.xsl.ThreadedTestletDriver # And defines the default used to run a selection of tests # with ThreadedStylesheetTestlets # see also threads.filelist # Note also not all options are actually set from here! #---- 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\\api # goldDir is where the 'gold' or reference files to check against live goldDir=tests\\api-gold # outDir is where we put the actual output files outputDir=results-threads # The test results log will be saved in this file logFile=results-threads\\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.ThreadedStylesheetTestlet #---- Choose tests via a specific list ---- # Set fileList to specify a list of files yourself # Using a fileList means filtering above is not done fileList=threads.filelist #---- 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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
