Update of /cvsroot/doxquery/doxquery
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861
Modified Files:
build.xml
Log Message:
Fixed bug #1196090, an issue with the lexer and comments in certain
positions. Added a functional regression test suits for the parser, which
compares query AST output to the expected results.
The tests can be built using the ant target "compile_test", and run using
the target "test".
Index: build.xml
===================================================================
RCS file: /cvsroot/doxquery/doxquery/build.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** build.xml 30 Mar 2005 01:07:37 -0000 1.12
--- build.xml 6 May 2005 01:18:51 -0000 1.13
***************
*** 30,33 ****
--- 30,37 ----
<property name="dist" location="dist"/>
+ <property name="test" location="test"/>
+ <property name="test.src" location="${test}/src"/>
+ <property name="test.build" location="${test}/build"/>
+
<target name="init">
<!-- Create the time stamp -->
***************
*** 60,63 ****
--- 64,87 ----
</target>
+ <target name="compile_test" depends="compile" description="compiles the tests">
+ <!-- Create the build directory structure used by compile -->
+ <mkdir dir="${test.build}"/>
+ <!-- Compile the java code from ${test.src} into ${test.build} -->
+ <depend srcdir="${test.src}" destdir="${test.build}"/>
+ <javac srcdir="${test.src}" destdir="${test.build}" source="1.5" debug="on" classpath="${build}">
+ <compilerarg value="-Xlint:unchecked"/>
+ </javac>
+ </target>
+
+ <target name="test" depends="compile_test" description="compiles and runs the tests">
+ <java classname="com.doxological.doxquery.test.ParserTester">
+ <arg value="${test}/parser_tests"/>
+ <classpath>
+ <pathelement path="${test.build}"/>
+ <pathelement path="${build}"/>
+ </classpath>
+ </java>
+ </target>
+
<target name="jar" depends="init, compile"
description="generates the jar file" >
|