[liblouis-liblouisxml] Re: New test framework for liblouisutdml Java bindings

  • From: "Michael Whapples" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "mwhapples@xxxxxxx" for DMARC)
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 15 Jul 2014 13:42:04 +0100


On 15/07/2014 13:24, Christian Egli wrote:
Hi

On 07/15/2014 12:09 PM, Michael Whapples (Redacted sender mwhapples@xxxxxxx for DMARC) wrote:
and also that file2brl is essentially a unix only tool (it cannot be
built with defacto compilers on Windows, IE. MSVC), thus the old test
framework does not meet with the goal of LibLouisUTDML being
cross-platform.

You've said this in the past and it is still false. The existing test framework is deliberately simple as to not to depend on too many things. It is just as cross-platform as liblouisutdml itself.

I am sorry, you have that wrong. I specified MSVC specifically as that is the compiler most windows users can get running (mingw32 is too complicated and picky to normally rely on getting working and cygwin relies on the cygwin runtime). File2brl uses gnulib, and gnulib only has build stuff for autotools and no clear indication how to even start going about using it for other build systems. Thus unless you can provide MSVC instructions for building file2brl I deem it not possible to build on Windows with defacto compilers.
* The translateFile tests are defined in the file
testdata/translateFileTests.xml. The root element of this file is tests
and it can contain translateFileTest elements....

The whole thing sounds very complicated. If there is one thing that I learned over the years then its the saying that simplicity always trumps complexity.

May be the explanation is complicated, its hardly complicated in practice. It is one just needs to state in the explanation things like where relative paths will be resolved relative to, and how best to describe an XML document structure? Similar stuff needs explaining whatever notation/syntax is used.
I wrote a very simple, proof-of-concept test harness for liblouis a while ago, using the Java bindings and Clojure. Maybe some ideas could be stolen from there: https://github.com/egli/louis-clj

I have taken a look at that. Not really sure what it gives over the approach I have taken. You would still need to explain where relative file paths are resolved relative to, the structure of the file, etc. Please give more detail how it simplifies things?
Hope that helps
Christian


For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: