Commit Graph

721 Commits

Author SHA1 Message Date
Kornel Benko
2952c78ea5 Cmake export tests: Adapt test filtering
1.) Ignore exports for docbook specific files
2.) Because of dvips problem invert test for some Foils-lyx-files
2020-08-02 19:40:55 +02:00
Kornel Benko
a913b5aa24 Cmake docbook tests: typos 2020-08-01 21:08:35 +02:00
Kornel Benko
decc775834 Cmake docbook export: Try to handle quotation marks in parameter values properly 2020-08-01 09:40:23 +02:00
Kornel Benko
b62c6e8961 Cmake export tests: Make the destination directory for test results unique
Exporting files with identical names (but in different directories)
could lead to conflicts in parallel executed tests.
2020-08-01 09:35:20 +02:00
Kornel Benko
0666e80ed9 Amend 4ec788ce: Remove temporary files after tests 2020-07-31 15:28:25 +02:00
Kornel Benko
4ec788ce3f Cmake export tests: Export to docbook5
The sax-parser is choking on tags like 'section*' or 'Braille (default)'.
Also setting parameters like 'height=12pt' are not valid.

The added filter tries to 'correct' the input for the sax parser.
E.g. 'Braille (default)' ==> 'Braille__default_', 'section*' ==> 'section_'
and 'height =12pt' ==> 'height="12pt"'
2020-07-31 15:24:48 +02:00
Kornel Benko
1dbc50a30d Cmake tests: Add check of the exported docbook file with xmllint 2020-07-20 16:55:28 +02:00
Kornel Benko
15947a7db4 Cmake tests: Add docbook5 exports to the tests 2020-07-20 10:42:34 +02:00
Thibaut Cuvelier
8a6e500570 Remove old example, as its mechanisms are now deprecated. 2020-07-02 15:27:20 +02:00
Kornel Benko
48d75d30b7 Cmake export tests: Adapt to new template
These tests are not working with lualatex and tex fonts
(American_Psychological_Association_%28APA_v\.7%29_(dvi3|pdf5)_texF)
2020-06-09 21:40:17 +02:00
Kornel Benko
92d248f712 Modify 2 tests to reflect actual GUI
bug-10636: The position of 'View->Code Preview Pane' in dialog changed
bug-export-latex: Add comment
2020-05-30 11:14:26 +02:00
Kornel Benko
9e3086fbfc FindAdv: Remaining tests working now again
All of these changes were due to
1.) Changed latex output (white space)
2.) changed reaction of dialog shortcut to return from
  find-adv settings to search tab
3.) debug-mode of libstdc++
4.) LASSERT in InsetMathGrid.cpp
2020-05-29 20:56:38 +02:00
Kornel Benko
158919e203 FindAdv: next 3 tests working 2020-05-29 20:18:45 +02:00
Kornel Benko
9da4390a9b FindAdv: Correct next test (keytest/findadv-16)
Provided that the LASSERT in src/mathed/InsetMathGrid.cpp:1824
is removed.
2020-05-29 20:04:57 +02:00
Kornel Benko
8028dce129 FindAdv: Correct some testcases 2020-05-29 14:22:34 +02:00
Günter Milde
c1357cbd01 ctest autotest for #11773 language nesting with lyx2lyx.
* invert failing lyx2lyx tests for ko/Welcome
* add dedicated test sample
* set language for English text part in ko/Welcome.

Also

* fix a lyx2lyx language test sample
* fix clause in unreliableTests
2020-03-05 00:24:08 +01:00
Kornel Benko
fe4ba565f6 Partially revert 43b81bec, export.cmake was not intended to change 2020-01-17 23:52:23 +01:00
Kornel Benko
43b81becc6 Cmake config: Rename some variables to match the ones used by automake
LYX_RELEASE_VERSION renamed to LYX_RELEASE_VERSION
and got the new value of
LYX_RELEASE_PATCH
from configure.ac too
2020-01-17 14:25:57 +01:00
Günter Milde
9486ef6ade ctests: ignore irrelevant export formats for some dedicated tests. 2020-01-01 16:09:36 +01:00
Günter Milde
8f9dfd2edf ctests: supported-languages Fix inputenc Error: Invalid UTF-8 byte "A0".
This happens with "inputenc: auto-legacy" if a language with default
encoding "utf8" (e.g. Turkmen or Mongolian) is used in a Quote
(or another environment).
2019-12-30 17:48:20 +01:00
Kornel Benko
86ba7409a4 Corrected comment (missed at a48eefad) 2019-12-16 12:12:19 +01:00
Kornel Benko
a48eefadc7 Cmake export tests: Suspend some Foils compilations with system fonts 2019-12-16 11:59:02 +01:00
Kornel Benko
7b44280da4 Cmake tests: Make foreach() command robust
Cmake's foreach command includes forms
  foreach(<loop_var> IN LISTS <lists>)
  foreach(<loop_var> IN ITEMS <items>)
  foreach(<loop_var> RANGE ...)
We get the lines to be parsed by
  file(STRINGS "${filepath}" lines)
If in the parsed lyx-file there is a line
containing only the single word 'IN',  or 'RANGE', then
the command
  foreach(_l ${lines})
can create a syntax error (at least with cmake1.16)

In fact, in file pl_Additional.lyx:12913 happens to have
such a beast.
2019-12-15 13:59:33 +01:00
Kornel Benko
6c291b262a ctest: Change the check-sequence for a test
Really ignore test of export/export/latex/lyxbugs/wrong_output_3059-rtl-tables-xetex_pdf4_texF
before allowing all other pdf4_texF tests
2019-12-13 14:58:24 +01:00
Günter Milde
70bdbd3a57 ctest update.
Debian stable ships now TL18, we don't need to care for older TL versions.

Make CJK-ko documentation more robust (failed with non-TeX fonts and XeTeX,
if LatinModern is not installed system-wide).

The test sample for LyX bug 3059 triggers an error only with
"fontencoding auto-legacy" and can be safely ignored with non-TeX fonts.
2019-11-18 22:24:55 +01:00
Kornel Benko
2f44d9b4fa ctests: update supported-languages tests.
polyglossia changes in TL19 makes some tests
	pass with lualatex again
2019-11-08 10:57:42 +01:00
Günter Milde
c138210672 ctests: update supported-languages tests.
Simplify user preamble.

Use common test document for Xe- and LuaTeX with polyglossia
and special one for languages only supported by XeTeX.

Update tagging patterns and comments.
2019-09-04 14:00:39 +02:00
Scott Kostyshak
80a675cd52 ctests: invert a test failing due to babel bug
This test fails with an updated TL, although it passes on some older
systems.
2019-09-02 20:55:38 -04:00
Günter Milde
d2370de461 ctests: update unreliableTests 2019-08-30 16:24:49 +02:00
Scott Kostyshak
983fa4d9d8 ctests: uninvert AA tests thanks to recent fixes
Thanks to 54fd0a70, all AA tests can be uninverted except for two
texF tests.
2019-08-30 07:53:30 -04:00
Günter Milde
3082d71ac5 Small ctest update. 2019-08-29 09:55:01 +02:00
Günter Milde
600376b96c ctest update: new and resolved failures after TL update, resoved lyxbug. 2019-08-25 12:27:25 +02:00
Günter Milde
487d5e24b1 ctests: make a comment more specific. 2019-08-21 08:59:35 +02:00
Günter Milde
f6e65dc508 ctest update: we now work around a problem with Czech or Slovak text in some tables. 2019-08-20 22:37:41 +02:00
Kornel Benko
54a5e3f37f Cmake tests: Really ignore wrong_output_3059-rtl-tables-xetex_pdf4_texF test 2019-08-18 18:07:42 +02:00
Günter Milde
c09a693d24 Update release notes, correct comment. 2019-07-12 20:30:22 +02:00
Kornel Benko
eec7c4b654 Simplify regexes for combinations XeTeX + TeX fonts 2019-07-12 13:16:53 +02:00
Günter Milde
130c744069 Drop support for XeTeX + TeX fonts + inputenc utf8.
LyX follows LaTeX in dropping support for this combination
(it only worked by tricking "inputenc.sty").
There is no known case where this combination is required or helpfull.

For power users with special needs, XeTeX + TeX fonts is still
available after setting the input encoding to "ascii" or "utf8-plain".

See also #10600.
2019-07-12 12:56:20 +02:00
Günter Milde
bab2316092 ctests Arabic: mark non-Arabic text parts as English, fix inversion pattern. 2019-06-03 16:58:10 +02:00
Günter Milde
b2cee3dcc5 Support more languages (file format change).
Format incremented to 576:
Support for the document languages azerbaijani, bengali,
churchslavonic, and oldrussian.
2019-06-03 16:58:10 +02:00
Günter Milde
8e06c2ffa9 Fix some problems with lyx2lyx_tools.revert_languages().
Amends 7bb30286.

Tested cases are now handled fine.

(There are still many cases where the language support emulation
is too complex for lyx2lyx and manual fixes are required after
lyx2lyx conversion.)
2019-06-03 16:58:10 +02:00
Günter Milde
fc99ef2ab3 ctest test documents for lyx2lyx.
Currently failing due to an error in revert_language().
2019-06-02 00:04:34 +02:00
Günter Milde
ad8a71a7b9 ctest tagging update. 2019-05-25 15:32:24 +02:00
Günter Milde
05877e0e60 ctests: sort dedicated test samples 2019-05-17 20:54:29 +02:00
Günter Milde
b505bcbab5 ctest update. 2019-05-14 15:31:41 +02:00
Günter Milde
a6c2ae4be8 Update documentation for Japanese with other languages. 2019-05-09 21:56:16 +02:00
Günter Milde
40240ef6a0 Improve error message and ctests for input encoding cp858.
Encoding cp858 supported by only some iconv variants.
Most users will want to change their "encoding" setting instead
of installing/recompiling "iconv" to support this legacy encoding.

ctests are likely will fail with either "vanilla" or "enhanced"
iconv and test a situation that is unlikely to change generally,
so we ignore this test now by default.
2019-05-09 09:28:37 +02:00
Günter Milde
cb3e79f9a0 Use utf8 as inputenc for documentation, examples, and templates. 2019-05-08 21:29:01 +02:00
Günter Milde
c34624e28b ctests: ignore mathmacro and tabletemplate tests with XeTeX and TeX-fonts.
Adding these tests rule to ignore this combination
(which is known to fail if inputenc = auto-legacy).
2019-05-08 12:15:14 +02:00
Günter Milde
df1f0d82a2 ctests: dedicated tests for languages supported by polyglossia/babel 2019-05-08 12:07:20 +02:00