efa8fc1f25
clean check'. Right now there are tests to ensure that typing certain sequences of keys in the Extended Wylie keyboard gives the expected Extended Wylie back when "Tools/Convert Tibetan to Wylie" is invoked. The syntactically illegal d.wa now converts to Tibetan and then back to d.wa (not dwa, as it did); likewise with the illegal g.wa. wa doesn't take any prefixes, but I prefer clean end-to-end behavior. (jeskd doesn't go end-to-end, though.) Note that you cannot successfully run the DuffPane tests on a Linux box unless your DISPLAY variable is set correctly. Thus, my nightly builds will fail with an Error (as opposed to a Failure).
65 lines
2.7 KiB
XML
65 lines
2.7 KiB
XML
<!-- @author David Chandler, dchandler@users.sourceforge.net
|
|
|
|
We have a document,
|
|
http://thdltools.sourceforge.net/BuildSystems.html, that you
|
|
probably should read.
|
|
-->
|
|
|
|
<project name="THDLTools-junit" default="fail-nicely" basedir=".">
|
|
|
|
<description>
|
|
This Jakarta Ant buildfile is used to do the low-level work of
|
|
unit testing our system. This is separate from build.xml because
|
|
to use this build file, you must have installed JUnit and the
|
|
JUnit Ant tasks (i.e., $ANT_HOME/lib/junit.jar and
|
|
$ANT_HOME/lib/optional.jar). Thus, this buildfile contains only
|
|
targets that must interact with JUnit.
|
|
|
|
Read the comments of this buildfile to learn more, or see
|
|
'http://thdltools.sourceforge.net/BuildSystems.html'.
|
|
</description>
|
|
|
|
<taskdef name="junit"
|
|
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
|
|
|
|
<taskdef name="junitreport"
|
|
classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator"/>
|
|
|
|
<target name="fail-nicely"
|
|
description="Tells the user to use build.xml, not this subbuildfile.">
|
|
<fail message="Do not use this file directly; use build.xml instead, which then uses this file."/>
|
|
</target>
|
|
|
|
|
|
<!-- This creates output files TEST* in the Jskad/ directory. -->
|
|
<target name="run-all-junit-tests"
|
|
description="Assuming that compilation of appropriate classes has been done, this target runs all the JUnit tests in the project.">
|
|
<junit fork="no" printsummary="yes" haltonfailure="yes" haltonerror="no">
|
|
<classpath>
|
|
<pathelement location="${junitbin}"/>
|
|
<path refid="entire.class.path"/>
|
|
</classpath>
|
|
<formatter type="xml"/><!-- If not XML, then 'ant -buildfile
|
|
build.xml check-report' will fail. -->
|
|
<test name="org.thdl.tib.input.DuffPaneTest"/>
|
|
<test name="org.thdl.util.ThdlLazyExceptionTest"/>
|
|
<test name="org.thdl.util.TrieTest"/>
|
|
<test name="org.thdl.tib.text.tshegbar.UnicodeUtilsTest"/>
|
|
<test name="org.thdl.tib.text.tshegbar.LegalTshegBarTest"/>
|
|
<test name="org.thdl.tib.text.tshegbar.UnicodeGraphemeClusterTest"/>
|
|
<test name="org.thdl.tib.text.tshegbar.UnicodeCodepointToThdlWylieTest"/>
|
|
</junit>
|
|
</target>
|
|
|
|
<!-- Note the odd dependencies. -->
|
|
<target name="make-nightly-report"
|
|
description="Creates an HTML report about the status of the tests; is dependent (via build.xml) on target `run-all-junit-tests'.">
|
|
<junitreport todir="${dist}">
|
|
<fileset dir=".">
|
|
<include name="TEST-*.xml"/>
|
|
</fileset>
|
|
<report format="noframes" todir="${dist}"/>
|
|
</junitreport>
|
|
<delete file="${dist}/TESTS-TestSuites.xml"/>
|
|
</target>
|
|
</project>
|