Kornel Benko wrote:

> The provided tex-file
> "test-insets.tex"
> is not compilable with pdflatex. (Texlive 2012)

Yes. Some time ago I started to make it compilable and added a bunch of 
packages, but ran out of time. Some other test files are not compilable 
either. This ism not nice, but since these tests are tex2lyx tests and not 
LyX tests, it is not very important IMHO.

> Using tex2lyx to convert to a lyx-file lead to a file
> which is loaded by lyx without problem, but again, no export possible.
> Moreover, the testscript "runtests.py" does not detect the output of lyx:
> ...
> Running: "/usr/BUILD/BuildLyxGit/bin/lyx" -f main -e pdflatex
> "/usr/BUILD/BuildLyxGit/src/tex2lyx/test/test-insets.lyx" output_latex.cpp
> (1039): Error in latexParagraphs: You should not mix title layouts with
> normal ones. ...

The testscript does not care for the output on purpose. It uses the return 
value instead. If LyX retuns successfully, but the export died not work, 
then this is a bug in LyX. This error is in fact no error, LyX exports the 
.tex just fine. The normal layout LyX is complaining about is just a 
comment, therefore it does not produce any error in the output. Ideally 
tex2lyx should never produce output with mixed title and standard layouts, 
but this is not so easy to fix while still maintaining identical output, 
otherwise I would have done that already.

> (The expected pdf even does not exist)

The pdf generation is not tested. The test is successful if the exported 
.tex matches the stored reference. If you want to test whether LyX outputs 
compilably LaTeX then this would be a LyX test, and has nothing to do with 
tex2lyx.

> And so the test is marked OK while it should not.

Incidentally it is marked as not OK with autotools because of a non-zero 
return code of LyX (as well as CJK.lyx which is broken because of bug 8431). 
If you see an OK with cmake then you have a bug.


Georg


Reply via email to