Commit Graph

573 Commits

Author SHA1 Message Date
Kornel Benko
05fb3114d5 Cmake export tests: Expand summary messages
Summary log messages are now used also for xhtml exports
2019-01-27 13:25:29 +01:00
Günter Milde
67ed1ec03a ctests: fix system font setup for some CJK documents 2019-01-25 16:51:59 +01:00
Günter Milde
63807af2ca ctests: small correction of inverted tests. 2019-01-24 15:54:13 +01:00
Günter Milde
197735747e Support for documents in other scripts with parts in CJK scripts.
Fix CJK support for documents using input-encoding "utf8-cjk"
when the main language is not Chinese, Korean, or Japanese.
2019-01-24 00:40:51 +01:00
Kornel Benko
96196b681a Amend d31dc599: Remove intermediate dirs 2019-01-23 23:09:55 +01:00
Kornel Benko
d31dc599ff Cmake lyxxx export tests: Add summary of commands to log 2019-01-23 23:07:54 +01:00
Günter Milde
49583b7dd0 Fix encoding issue with lyx2lyx conversion of "Date" info-insets.
Remaining problem: the name of the day appears in English instead of the document language.
2019-01-23 11:06:04 +01:00
Günter Milde
e8c497e33e ctests: export tests for CJK in multilingual documents. 2019-01-23 00:57:20 +01:00
Günter Milde
d104005151 Add example for mulit-lingual Japanese document with CJKutf8. 2019-01-22 16:06:37 +01:00
Günter Milde
f82030d211 Farsi document with custom font encoding OT1 fails.
Set font encoding in examples to "auto" and add minimal test sample.
2019-01-22 12:02:57 +01:00
Scott Kostyshak
faac4944c4 ctests: invert acmart_lyx23 because of known issue
LyX expectedly gives the following warning:

  TextClass.cpp (1385): The layout does not provide a list command for
  the float `sidebar'. LyX will not be able to produce a float list.

This issue was reported to the maintainer. This commit is consistent
with 00f7a95f.
2019-01-21 13:12:57 -05:00
Scott Kostyshak
b6ac52bf3f ctests: invert also es modernCV 16 and 20 tests
Consistent with 9d7a3e21.
2019-01-21 13:00:32 -05:00
Günter Milde
31420c4ce4 ctest: Patterns in invertedTests must match the full test name. 2019-01-21 16:43:00 +01:00
Günter Milde
9d7a3e21ee ctests: Invert failing lyx2lyx tests for modernCV.
Exports to LyX < 2.1 fails.
2019-01-20 19:57:30 +01:00
Günter Milde
67c5ee439d ctests: Invert failing lyx2lyx tests for beamer.
Some exports to versions < 2.1 fail due to a warning about missing layout name.
2019-01-20 18:24:41 +01:00
Günter Milde
12c301d1ca update latex export tests, add test for bug #9871 2019-01-20 17:23:41 +01:00
Kornel Benko
5435b900e4 Cmake build: Add format V2.0 to export tests 2019-01-17 12:27:12 +01:00
Günter Milde
5d5bb53887 The acmart package requires pdflatex, XeTeX or LuaTeX.
The acmart package requires pdflatex (with 8-bit fonts)
or xe/luatex with non-TeX fonts to give the expected output.
2019-01-16 22:55:05 +01:00
Günter Milde
0594a4fe72 ctests: update test tagging/categorization and export test for accents on Cyrillic letters. 2019-01-14 12:21:34 +01:00
Scott Kostyshak
bf1f3f827a ctests: ignore latex8 LyX 2.2.x and 2.3.x tests
The cls is obsolete, so all PDF exports are disabled. We keep the
1.6.x and 2.1.x tests because those only check roundtrip
convergence, and do not export to PDF.
2019-01-13 14:21:16 -05:00
Scott Kostyshak
4b94d4b285 ctests: ignore minted 2.2.x tests
As explained by Enrico, backward compatibility is not guaranteed for
these cases (and indeed currently fails):

  https://www.mail-archive.com/search?l=mid&q=20190113085555.GA7928%40GIOVE
2019-01-13 13:04:26 -05:00
Scott Kostyshak
70689f8dc0 ctests: add comment about formats that won't work
This way we will not try to test those formats for this file in the
future.
2019-01-13 12:34:44 -05:00
Günter Milde
4848301758 ctests: update sorting and documentation of inverted and ignored tests. 2019-01-10 22:41:53 +01:00
Günter Milde
0f569e961d ctests: Update/clean up latex export tests after fix of #9681. 2019-01-10 17:21:01 +01:00
Scott Kostyshak
05e2621a17 ctests: uninvert two 008-greek-and-coptic tests
The following two exports now succeed, likely thanks to recent
commits:

  008-greek-and-coptic_(utf8|utf8x)_pdf2
2019-01-09 19:49:48 -05:00
Scott Kostyshak
1cac0fb91f ctests: move IEEEtran-Journal_lyx16 to inverted
It used to give an endless loop, so we "ignored" it (did not run the
test). Now it gives a lyx2lyx warning, which is reported at #11455,
so it is appropriate to invert the test.
2019-01-09 19:02:29 -05:00
Günter Milde
23f7431cfa ctests: Dedicated LaTeX export tests for problematic input encodings. 2019-01-09 14:10:40 +01:00
Scott Kostyshak
b9b9759776 ctests: ingore a utf8-cjk test instead of invert
The 001-4-latin_utf8x_pdf2 test passes and the
001-4-latin_utf8-cjk_pdf2 test fails, which means that there are
characters in the .lyx file that are only available with
utf8-extended encoding, so the utf8 test is never expected to pass
in the future.

Thanks to Kornel.
2019-01-08 17:07:08 -05:00
Scott Kostyshak
84bd059828 ctests: improve a regex
The "004" did not actually match anything, so there is no change in
functionality.

This commit amends c2a99965.
2019-01-07 18:19:26 -05:00
Günter Milde
81066e2894 ctests: utf8-plain now works with all export variants.
utf8-plain (Unicode (utf8 XeTeX)) is a power-user setting
for the input encoding with two use cases:

a) setup of system fonts or

b) setup of input encoding supportuser preamble

in the document class or user preamble.

The test file is an example for use case b.
2019-01-07 23:21:04 +01:00
Scott Kostyshak
c2a9996541 ctests: uninvert CJK exports that now succeed
These tests were likely fixed with d193cd05. There are still some
failing CJK tests, but many were fixed.
2019-01-07 14:49:38 -05:00
Scott Kostyshak
9238004c25 ctests: uninvert ko splash.lyx dvi, pdflatex tests
These exports now pass thanks to the recent CJK improvement at
d193cd05 and specifying "mj" as CJK font (0cfaf406).
2019-01-06 14:49:07 -05:00
Scott Kostyshak
372c83ebdb ctests: ignore Bibliography.lyx PDF export tests
Bibliography.lyx is not expected to be compiled on its own. See:

  https://www.mail-archive.com/search?l=mid&q=20190104195414.opgeuggeqakxl2fo%40barna
2019-01-06 02:19:06 -05:00
Scott Kostyshak
92630971bd ctests: invert ar UserGuide.lyx lyx22x and lyx23x
These tests are expected to fail since the default export is
expected to fail.
2019-01-05 18:51:23 -05:00
Scott Kostyshak
bf65c9fb38 ctests: invert ko splash lyx22x and lyx23x tests
The Korean splash.lyx is expected to fail with pdflatex. The lyx22x
and lyx23x tests were not failing before because they were exporting
to XeTeX with system fonts, which succeeds. After c9e62dec (which
corrects the export format to the default), the lyx22x and lyx23x
tests should be inverted.
2019-01-05 17:40:43 -05:00
Kornel Benko
c9e62dec53 Cmake lyx2lyx tests: Correct use of value for \use_non_tex_fonts
Amend eec3d1eb,7568571a
We are trying to check if the resulting file after lyx2lyx
is compilable, we have to ensure that copying the original file
to the test directory does not mangle use_non_tex_fonts-entry.
2019-01-05 08:34:00 +01:00
Scott Kostyshak
7f5e7c89b4 ctests: do not invert a test for 2.3.x format
The test 'export/lyx2lyx/lyx_2_3_test_lyx' is expected to fail for
formats before 2.3.x, but is expected to pass for 2.3.x.
2019-01-04 21:50:19 -05:00
Scott Kostyshak
07425a6215 ctests: extend a regex to cover 2.3.x export
The tests of "attic/aastex6_sample" are ignored for previous LyX
format exports, and should also be ignored for the newly extended
2.3.x tests.
2019-01-04 21:50:19 -05:00
Juergen Spitzmueller
c65b146d86 Revert "ctests: invert JSS-article lyx2lyx tests"
This reverts commit 5ad0395dca.
2019-01-04 16:37:57 +01:00
Kornel Benko
21254cd962 lyx2lyx tests: Add conversions to lyx23 2019-01-04 05:58:56 +01:00
Scott Kostyshak
5ad0395dca ctests: invert JSS-article lyx2lyx tests
The regression has been reported at #11448.
2019-01-03 23:32:41 -05:00
Kornel Benko
7568571a24 lyx2lyx tests: Use the temp-dir also for converted lyx files
Important if including data previously copied there.
Fixes test "export/doc/Additional_lyx22"
2019-01-04 05:21:07 +01:00
Kornel Benko
eec3d1eb20 lyx2lyx tests: Copy also original lyx files to temp dir
Necessary only if the lyx-file includes some data from
a relative path, nonetheless it happens in some of our tests.
2019-01-03 08:46:26 +01:00
Scott Kostyshak
8c266ee28d ctests: restore thesis.lyx lyx2lyx tests
These tests failed because of (multiple instances of) the following
warning:

  Warning: a buffer should not have two parents!

This warning is expected, because, for example, chapter-1 includes
Bibliography.lyx and chapter-2 includes Bibliography.lyx. thesis.lyx
includes both chapter-1 and chapter-2, so both are loaded (but
hidden), and Bibliography.lyx is loaded (but hidden), and LyX then
sees that more than one buffer includes Bibliography.lyx

The consequence of ignoring this warning is that we will not catch
any future regression that triggers this warning when it should not.
2019-01-02 14:12:17 -05:00
Kornel Benko
8d927de5ee Amend 12aaeb25, add Bibliography.lyx to the set of not tested subdocuments 2019-01-02 16:32:24 +01:00
Kornel Benko
d2ea9c44b2 findadv tests: Adapt one test for the new greedy behaviour 2018-11-26 16:00:27 +01:00
Kornel Benko
23e2ea358f findadv tests: Remaining test passes now too 2018-11-03 12:30:07 +01:00
Kornel Benko
47455ad65e Added test findadv-22
Related to https://www.lyx.org/trac/ticket/11241
(Find and replace doesn't find a wedge of two things in a subscript.)
2018-10-31 11:19:47 +01:00
Kornel Benko
f0d7432608 Findadv: Remaining findadv tests pass now
Exception: findadv-21, but it is not a regression,
because this one never passed.
The problem here is, that we cannot differentiate
between enumeration, itemize, description and labeling
environment here.
2018-10-29 13:17:54 +01:00
Kornel Benko
2d477c5e0a Changes to match math equations
Now tests findadv-01 ... findadv-20 pass too.

keytest.py: Expanded time for controll keys (like \[Return])
findadv*: expanded time for normal keys
lyxfind.cpp: Handle math equations
2018-10-28 19:40:14 +01:00