Shane,
This reminded me that I wanted to ask you about running the
TrAX API tests on XSTLC -- now that Morten and Todd are
just about done implementing the basic functionality.
The testing docs were still down the lasted time I checked, so
I hope you wouldn't mind giving me a little primer on how to
leverage the TrAX API tests you already have.
Tom
[EMAIL PROTECTED] wrote:
> curcuru 01/07/31 08:34:21
>
> Modified: test build.xml test.properties
> Log:
> Implement various xsltc targets; now works to compile xsltc
> testing classes and run at least -flavor trax.stream
>
> Revision Changes Path
> 1.4 +32 -10 xml-xalan/test/build.xml
>
> Index: build.xml
> ===================================================================
> RCS file: /home/cvs/xml-xalan/test/build.xml,v
> retrieving revision 1.3
> retrieving revision 1.4
> diff -u -r1.3 -r1.4
> --- build.xml 2001/07/30 20:10:37 1.3
> +++ build.xml 2001/07/31 15:34:21 1.4
> @@ -467,21 +467,26 @@
> <!-- This section will be updated as xsltc integrates more with xalan -->
> <!-- ================================================================== -->
> <path id="xsltc.class.path">
> - <pathelement path="${xalan.build.dir}/xsltc.jar" />
> - <pathelement path="${xalan.bin.dir}/BCEL.jar" />
> - <pathelement path="${xalan.bin.dir}/JLex.jar" />
> - <pathelement path="${xalan.bin.dir}/java_cup.jar" />
> - <pathelement path="${xalan.bin.dir}/runtime.jar" />
> - <pathelement path="${xalan.bin.dir}/xml.jar" />
> + <pathelement location="${xalan.build.dir}/xsltc.jar" />
> + <pathelement location="${xalan.bin.dir}/BCEL.jar" />
> + <pathelement location="${xalan.bin.dir}/JLex.jar" />
> + <pathelement location="${xalan.bin.dir}/java_cup.jar" />
> + <pathelement location="${xalan.bin.dir}/runtime.jar" />
> + <pathelement location="${testxsl.jar}" />
> <pathelement path="${java.class.path}" />
> + <pathelement location="${xerces.jar}" />
> + <pathelement location="${xalan.jar}" />
> + <!-- Note addition of . to the classpath to enable loading of translets
>-->
> + <pathelement location="." />
> </path>
> <target name="compile.xsltc.xslwrappers" depends="compile.xsl"
> description="Compile Xsltc*Wrapper xslwrappers only">
> <javac srcdir="${src.dir}"
> destdir="${build.dir}"
>
>includes="${test.root}xslwrapper/Xsltc*Wrapper.java,${test.root}xslwrapper/TraxWrapperUtils.java"
> - debug="${debug}"
> - classpathref="xsltc.class.path" />
> + debug="${debug}">
> + <classpath refid="xsltc.class.path" />
> + </javac>
> </target>
>
> <target name="compile.xsltc" depends="compile.xsltc.xslwrappers"
> @@ -489,8 +494,9 @@
> <javac srcdir="${src.dir}"
> destdir="${build.dir}"
> includes="${test.root}xsltc/*.java"
> - debug="${debug}"
> - classpathref="xsltc.class.path" />
> + debug="${debug}">
> + <classpath refid="xsltc.class.path" />
> + </javac>
> </target>
>
> <target name="jar.xsltc" depends="compile.xsltc"
> @@ -498,6 +504,22 @@
> <jar jarfile="${build.dir}/${testxsl.jar.name}"
> basedir="${build.dir}"
> includes="**/*.class,**/*.properties" />
> + </target>
> +
> + <target name="conf.xsltc" description="Run TestletDriver over the conf tree
>using xsltc">
> + <!-- Set the default conformance test driver, user may override -->
> + <property name="testClass"
>value="org.apache.qetest.xsl.StylesheetTestletDriver" />
> + <echo message="Executing Xalan-xsltc conf test: ${testClass}" />
> + <!-- Special: allow explicit test.properties overrides for inputDir, etc
>for xsltc -->
> + <property name="testType" value="conf.xsltc." />
> + <xalantest test="${testClass}"
> + testType="${testType}"
> + classpathref="xsltc.class.path"
> + fork="${fork-tests}"
> + failonerror="${fail-on-error}">
> + <!-- Explicitly set TransformerFactory property to use xsltc -->
> + <sysproperty key="javax.xml.transform.TransformerFactory"
>value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
> + </xalantest>
> </target>
>
> </project>
>
>
>
> 1.3 +6 -0 xml-xalan/test/test.properties
>
> Index: test.properties
> ===================================================================
> RCS file: /home/cvs/xml-xalan/test/test.properties,v
> retrieving revision 1.2
> retrieving revision 1.3
> diff -u -r1.2 -r1.3
> --- test.properties 2001/07/30 20:10:37 1.2
> +++ test.properties 2001/07/31 15:34:21 1.3
> @@ -117,4 +117,10 @@
> harness.threads.testlet=org.apache.qetest.xsl.ThreadedStylesheetTestlet
> harness.threads.fileList=threads.filelist
>
> +#---- Special: used in conf.xsltc target temporarily ----
> +conf.xsltc.inputDir=file:///e:/builds/xml-xalan/test/tests/conf
> +conf.xsltc.outputDir=results-conf
> +conf.xsltc.goldDir=tests/conf-gold
> +conf.xsltc.logFile=results-conf/results.xml
> +
> # End of File
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]