[liblouis-liblouisxml] AW: Re: proposal for a test harness

  • From: "Bijewitz, Volker" <v.bijewitz@xxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Tue, 28 Feb 2012 08:12:23 +0100

Hello John,

You are right that under Linux, maybe also under MacOsX both are installed.
Under windows they are not. There are installer packets availiable for both. 

I like the idea to have a all-in-one package that do not require external
tools to be installed. For python I know that it is possible to have
precompiled packages. Maybe this is a argument that points for python.

Thanks,

Volker

-----Ursprüngliche Nachricht-----
Von: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] Im Auftrag von John J.
Boyer
Gesendet: Montag, 27. Februar 2012 18:25
An: liblouis-liblouisxml@xxxxxxxxxxxxx
Betreff: [liblouis-liblouisxml] Re: proposal for a test harness

This all sounds very good to me. We need test suites for liblouisutdml also,
but that can come later.

For my instruction, what is the advantage of perl over Python. Both are
usually installed.

Thanks,
John

On Mon, Feb 27, 2012 at 10:23:57AM +0000, Mesar Hameed wrote:
> Hi Christian,
> On Mon 27/02/12,10:32, Christian Egli wrote:
> > Hi Mesar
> > 
> > Mesar Hameed <mesar.hameed@xxxxxxxxx> writes:
> > 
> > > Yes, attached, not sure if it is as flexible as we want it to be, but
it did the job for me.
> > 
> > I looked at your test harness and it looks very interesting. It is 
> > very similar in spirit to what I tried to do with corpus based 
> > tests[1]. The corpus based tests let you specify a file where each 
> > line is a test case. The first column is the expected input and the 
> > second column is the expected output. There is a test in svn and it 
> > is run when you type make check. However the test is very basic and 
> > nobody seems to have picked up on it or ever used it. Have a look at 
> > the README in tests/table_test_corpuses.
> 
> Aah, I did not spot this, and I dont think it was documented in the user
facing liblouis.texi.
> Yes I agree that the original version is similar to what you have.
> Please look at the updated version, which is the more interesting and more
useful with regard to debugging cursor problems.
> Change one of the tests and look at the error report.
> 
> > Two points about your test harness:
> > 
> > 1. Implemented in Python: Don't get me wrong, I like Python. But
> >    implementing the test harness in Python means that a user needs to
> >    have it installed and also needs to have the Python bindings
> >    installed before she can run the tests.
> 
> True regarding requiring python, but i think most recent posix systems come
with it these days.
> regarding installing the python bindings, I think there should be a way of
relative import rather than requiring them to be installed.
> 
> > We can decide that these are no big problems and a user can be 
> > expected to install Python and the Python bindings before running 
> > the test harness.
> 
> I don't think the harness forces any table developer to install 
> python, they can continue creating/debugging tables as before if they so
wish.
> 
> > On the other hand the corpus based tests are implemented in Perl and 
> > use the standard lou_translate, i.e. no need to install Python and 
> > they can be run from within the liblouis src directory without any 
> > installation. I think I could easily extend the Perl script to cover 
> > your use case (just split the line on tabs instead on any white space).
> 
> I am not sure if lou_translate give us the cursor position, which is what
the updated harness uses.
> 
> > Let me translate your example into a (what I called) corpus based 
> > test and we could then possibly merge the two efforts.
> 
> Yes if we can then this would be great.
> I dont mind perl or python, whatever works and gives us the required 
> flexibility. :)
> 
> Thanks.
> Mesar
> For a description of the software, to download it and links to project 
> pages go to http://www.abilitiessoft.com

--
My websites:
GodTouches Digital Ministry, Inc. http://www.godtouches.org Abilitiessoft,
Inc. http://www.abilitiessoft.com
Location: Madison, Wisconsin, USA
For a description of the software, to download it and links to project pages
go to http://www.abilitiessoft.com


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

Other related posts:

  • » [liblouis-liblouisxml] AW: Re: proposal for a test harness - Bijewitz, Volker