Andrew Ford wrote:
> Dave Cross wrote:
>   
>> Andrew Ford wrote:
>>
>>   
>>     
>>>  * fixed some of the tests that were failing if the dvitype program was 
>>> not installed (now just skips those tests)
>>>     
>>>       
>> This fix doesn't seem to be working on Linux. There's something strange 
>> about your TAP output - multiple plans from one test file.
>>
>> Let me know if there's anything I can do to help you fix this. I'd like 
>> to start using it.
>>   
>>     
> I'll revisit those test scripts.  What was happening was that some 
> platforms seem to have TeX installed but do not have the dvitype program 
> installed (or at least not in a directory on $ENV{PATH}).  The test 
> scripts use dvitype to extract text from the DVI files for comparison.  
> I didn't want to fail on platforms without dvitype so I checked for the 
> presence of the program in the test scripts and issued a "plan skip_all" 
> (using Test::More).  Looks like I can just invoke the skip_all() 
> function from Template::Test.
>
> I'll put out an updated release this evening.
>
>   
And indeed I have.  Version 3.02 should skip tests gracefully if dvitype 
is not installed (although "make test" will report "skipped: (no reason 
given)" due to an incompatibility between Template::Test and TAP, as 
reported on this list earlier this evening). 

A bit of background: the test scripts use dvitype to extract text from 
the generated (binary) dvi files and compare that with expected text.  I 
understand that Fedora includes dvitype in the texlive-dviutils package, 
which may not be installed on some tester platforms that do have 
texlive.  TeX itself includes very rigorous tests to ensure that a given 
input will always produce the expected typeset output, so if the other 
tests indicate that LaTeX::Driver is generating the expected output 
files, and the full test suite is running successfully on platforms that 
do have dvitype, then I am quite confident that those platforms without 
dvitype will behave the same as those with.

Andrew

-- 
Andrew Ford,  Director    Pauntley Prints / Ford & Mason Ltd            
[email protected]   South Wing Compton House                      
pauntley-prints.co.uk     Compton Green, Redmarley  Tel: +44 1531 829900
ford-mason.co.uk          Gloucester GL19 3JB       Fax: +44 1531 829901
refcards.com cronolog.org Great Britain          Mobile: +44 7785 258278



_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to