Commit Graph

432 Commits

Author SHA1 Message Date
Tommaso Cucinotta
9824926b4c findadv: using \w instead of [[:word:]] makes test-case std::regex compatible; also, fixed UI shortcuts changes that made test fail. 2017-04-17 00:15:26 +02:00
Tommaso Cucinotta
664798128a findadv: almost all test cases, including \regex[{}, back to working with std::regex. 2017-04-17 00:15:26 +02:00
Tommaso Cucinotta
a1024781bc autotests: skip overly long export-in.sh test by default. 2017-04-16 11:26:29 +02:00
Tommaso Cucinotta
a8bb3171f1 Recovered working autotests for findadv on Linux/Ubuntu (after a long no-use time).
- from specific dependency on wish8.5, to just wish
- from checking the 2nd line of /proc/*/status, to grep-ing on sleeping (old system was failing on newer kernels)
- mode debugging and python output during tests
2017-04-15 23:38:41 +02:00
Günter Milde
ddacfc0581 ctests: test unicodesymbols also with utf8.
The the default input encoding (utf8) whas somehow dropped from
the list. Restore it with explicit naming.
2017-04-12 12:42:26 +02:00
Kornel Benko
c99e2f1fad Add label 'defaultoutput' to export tests using document default output format 2017-03-10 14:35:11 +01:00
Kornel Benko
ef05496ce9 Cmake tests: Add visual indication if a test is ignoring some latex error messages 2017-03-02 15:53:34 +01:00
Kornel Benko
513bb5dad0 Remove regex which does mot mach any test 2017-03-01 18:49:22 +01:00
Günter Milde
42e9c448b0 ctests: Fix some "unreliable" patterns. 2017-03-01 18:31:44 +01:00
Kornel Benko
b8710d8e16 Amend 34d2f3c.
Regexes in *Tests have to be specified for the whole test-names.
2017-03-01 10:04:29 +01:00
Scott Kostyshak
34d2f3cf06 Ignore missing glyphs in a test after TL update
After a TL 2016 update, a test started to fail due to missing
glyphs. For more information, see the ML thread here:

  https://www.mail-archive.com/search?l=mid&q=20170225203955.nas2qopy4l4ukyqq%40steph
2017-02-28 18:31:02 -05:00
Scott Kostyshak
2298ae05f2 Invert a pdf4 test failing because of iconv
This is consistent with other tests failing for the same reason.
For more information, see #9871 and the discussion at

  https://www.mail-archive.com/search?l=mid&q=20170228190738.cgs3tl3ny2bxiegk%40steph
2017-02-28 18:21:23 -05:00
Günter Milde
443eb7bf79 ctests: invert failing Spanish docs, tag unreliable examples.
Babel-Spanish uses utf8-autostrings if it detects Xe/LuaTeX.
This leads to wrong output and/or failures with
8bit TeX-fonts and 8-bit input encoding.
2017-02-27 23:26:08 +01:00
Günter Milde
d319976566 ctests: sort inverted unreliable tests.
We don't invert unreliable tests for the same reason they are
inverted but, e.g., a nonstandard test that fails for some reason even with the
additional requirements installed or a test that shows wrong output
but also an error.
2017-02-26 19:37:15 +01:00
Scott Kostyshak
0d33c78963 Add references for the inverted linguistics tests 2017-02-22 11:59:20 -05:00
Kornel Benko
b01dd12c72 ctests: linguistic files and spanish UserGuide now compile
Thanks to Jürgen's \texpipa changes for linguistic.
2017-02-22 11:48:51 +01:00
Kornel Benko
b04893be44 Cmake tests: Scheherezade font misses glyph '*'
Added "export/export/latex/arabic_simple_pdf4_systemF"
and "export/doc/ar/Intro_pdf4_systemF"
to the list of tests which ignore "missing glyph" error.

Thanks to Jürgen Spitzmüller.
2017-02-22 11:33:01 +01:00
Scott Kostyshak
9fbc73c4d2 ctests: it_Customization_pdf5_systemF now compiles
An update in TeX Live causes the test to pass (also for Kornel), so
now we uninvert the test.

I looked at the output file, and it seems fine to me (although it is
long, and I just checked briefly).
2017-02-19 16:53:39 -05:00
Günter Milde
b863fb0723 ctests: update inversion patterns.
The new TeXLive uses font encoding TU for Unicode fonts with Xe- and LuaTeX.
The command \textquotedbl for straight quotes is no longer supported,
\textipa no longer supported with LuaTeX.
Problems with Spanish Babel and Xe/LuaTeX with 8-bit fonts lead to new errors
in some cases.
2017-02-14 22:31:12 +01:00
Tommaso Cucinotta
7eb64211b0 Revert "Long time no use of the autotests machinery, needs an update."
Pushed by mistake ... not finished yet ... apologies.

This reverts commit be79d2cda8.
2017-01-25 03:13:14 +01:00
Tommaso Cucinotta
be79d2cda8 Long time no use of the autotests machinery, needs an update. 2017-01-25 03:10:56 +01:00
Kornel Benko
40e6035d94 Cmake tests: Use correct 'if' statement to handle language strings 2017-01-14 12:54:08 +01:00
Kornel Benko
b487e2b050 Cmake tests: Allow ignoring some latex error messages
New file: ignoreLatexErrorsTests
The sublabels in this list of export-testnames specify which error
messages should be ignored.
For each sublabel (for example "xxx") the lyx-command line is expanded with
  "--ignore-error-message xxx"
2017-01-11 10:15:13 +01:00
Kornel Benko
0da3824cf6 Cmake tests: Remove use of 'UNRELIABLE' label
Using this label in invertedTests expands the testname unnecessary, so that
we get e.g. labels like:
  SUSPENDED.UNRELIABLE.WRONG_OUTPUT.UNRELIABLE_export/doc/de/EmbeddedObjects_pdf4_texF
OTOH, if using label 'unreliable', we get a warning about label-names clash.
The best is to reset any previous label setting.
2016-12-20 16:26:07 +01:00
Scott Kostyshak
920f4eb50d ctests: invert two unreliable tests
Invert the following two tests:

  UNRELIABLE.WRONG_OUTPUT_export/doc/es/Math_dvi3_texF (Failed)
  UNRELIABLE.WRONG_OUTPUT_export/doc/es/Math_pdf5_texF (Failed)

For discussion, see:

https://www.mail-archive.com/search?l=mid&q=1482080739.2685.14.camel%40lyx.org
2016-12-18 12:43:20 -05:00
Günter Milde
418016bf79 Remove unsupported encoding "pt254".
This encoding (modified Mac Cyrillic for Asian languages) is rarely used and not supported by Gnu iconv.

Update comments in lib/encodings.

Update ctests: Gnu iconv only supports cp858, if configured with "--enable-extra-encodings".
2016-12-06 14:04:50 +01:00
Scott Kostyshak
67094dd6e6 ctests: require up-to-date TeX Live for reliable
The unreliable sublabel varying_versions is now defined to be about
versions other than TeX Live, because we require a full and
up-to-date TeX Live installation for reliable tests.

For discussion, see:
https://www.mail-archive.com/search?l=mid&q=o1ovd9%24479%241%40blaine.gmane.org
2016-12-03 00:39:01 -05:00
Scott Kostyshak
e8844b87ee ctests: invert ar/Tutorial_pdf4_texF
ar/Tutorial.lyx was recently added at f0bc4d43.

Inverting this test is consistent with ar/{Intro,Shortcuts}.
2016-12-01 23:49:05 -05:00
Scott Kostyshak
2d7fd45b90 ctests: uninvert mathmacro tests
These tests now pass (uninverted), likely due to b14e9d52 and
e8f480e7.
2016-12-01 23:37:36 -05:00
Günter Milde
a0ebae829c ctests: univert aas_sample with LuaTeX test.
The missing character problem is fixed upstream.

Also fix the scaling of the \sun-symbol-index by wrapping the symbol in \text.
(wasysym's \sun is valid in text and math mode. LyX  currently adds a spurious \ensuremath.)
2016-12-01 11:47:12 +01:00
Scott Kostyshak
795fa586a9 Invert failing unreliable tests
These tests are "unreliable" and thus their export status contains
less information than reliable tests. However, it contains some
information and could still be used to find regressions. This commit
helps keep the output of a vanilla "ctest" command clean.

See discussion here:
https://www.mail-archive.com/search?l=mid&q=20161127205800.epvjxkeri5yoeqwj%40steph
2016-11-30 09:45:11 -05:00
Kornel Benko
f09cc78a9c Cmake tests: make unreliable tests independent of inverted tests 2016-11-30 00:53:31 +01:00
Günter Milde
ffe4471700 ctests: update invertedTests. 2016-11-25 18:23:12 +01:00
Scott Kostyshak
7cbbf00eaf Improve ctesting of Arabic documents
- invert the currently failing tests
- add a new test document that shows LyX's support of pdf2

For more details, see the discussion here:
https://www.mail-archive.com/search?l=mid&q=20161114035123.s5lt4ib4x4obtptp%40steph
2016-11-24 23:10:16 -05:00
Günter Milde
5fba6aed21 ctests: correct inversion pattern for utf8-cjk tests. 2016-11-24 11:53:18 +01:00
Günter Milde
f174988b7f ctests: correct encoding tests
* Do not test encodings not supported by iconv (see #10502).
* uninvert export test that work.
2016-11-23 17:43:31 +01:00
Günter Milde
a5b5141c30 ctests: uninvert exports that work. 2016-11-22 11:47:12 +01:00
Günter Milde
15fd79201e lib/unicodesymbols tests and fixes.
Test unicodesymbols for most supported input encodings with Kornel's addition to ctests.

Add required "forces" to unicodesymbols:
* utf8x does not support all characters supported by LyX
* several 8-bit encodings map characters to math-mode commands - force replacement in text-mode so that LyX can wrap them in \\ensuremath.

Fix a misalignment (wrong replacements) in the Cyrillic Unicode block.

Use \\mathscr for Mathematical Script characters in Mathematical Alphanumeric Characters (in line with the characters in other unicode blocks.
2016-11-15 23:50:41 +01:00
Günter Milde
1ff4aeaf1f Complete the renaming of a ctest sample directory.
Rename the directory for test samples  "export/latex/Unicode-characters" to "export/latex/unicodesymbols". This matches the purpose to test the lib/unicodesymbols file.
2016-11-14 14:32:46 +01:00
Scott Kostyshak
b765d86692 ctests: mark 4 LuaTeX + poly tests as TeX issues
These tests were broken from the fix at 3374b854.

The bug was reported upstream:
https://github.com/reutenauer/polyglossia/issues/163

For more details, see ML discussion:
https://www.mail-archive.com/search?l=mid&q=1478004223.2367.5.camel%40lyx.org
2016-11-13 22:08:19 -05:00
Kornel Benko
3ade00683c Cmake export tests: Check exports also for different possible input encodigs
Affected are all lyx files in "autotests/export/latex/Unicode-characters" directory.
This completes the commit 6674a91573

Thanks Günter.
2016-11-10 00:56:49 +01:00
Günter Milde
6674a91573 lib/unicodesymbols test update and fixes.
First run of Kornels patch for tests with all input encodings in lib/encodings.

Remove redundant sample files - keep only one sample and change the input encoding in the test script.

Put remaining failing test in "unreliableTests" for later sorting...
2016-11-09 21:15:14 +01:00
Günter Milde
120e84af3a ctests: explore export failure of Math.lyx with Unicode fonts. 2016-10-17 10:36:45 +02:00
Kornel Benko
90adb4f314 Cmake export tests: Introduce 'LYX_DEBUG_LATEX' environment variable.
Setting this variable to '1' will include also latex messages in
ctest log file LastTest.log.
2016-10-12 14:35:23 +02:00
Günter Milde
971025b80d custom ctest sample: Accented Cyrillic characters fail if the input encoding is ASCII. 2016-10-11 00:38:17 +02:00
Günter Milde
16c26f909c seminar ctest fixes
* custom non-tex fonts with all required characters
* use 2.2 fileformat (easier backporting)
* test all export formats

Also, fix pattern for "mixing_inTitle_layouts" in unreliableTests.
2016-10-10 14:14:33 +02:00
Günter Milde
e9fcff1261 ctests: uninvert solved problems and make samples robust
Specify non-TeX fonts that work in the source for documents that
fail with "missing characters" if compiling with "non-TeX fonts"=true.
(This does not interfere with the default output in any way.)
2016-09-29 10:42:03 +02:00
Günter Milde
08f5fb1b2d ctests: move test cases with permanent problems to "ignored".
Also sort ignoredTests (even if the sublabels will normally not be shown).
2016-09-26 22:57:41 +02:00
Günter Milde
63f41711cb Fix #10394 Do not error on missing characters in "nullfont".
Add an exception to the conversion of "missing character" warnings into errors.

The PGF package deliberately uses the dummy font "nullfont" to suppress output.
Therefore, warnings about missing characters in "nullfont" are really only warnings.

Also updated the comment: "Missing character" warnigns are especially widespread
in XeTeX/LuaTeX but can also happen with "classical" 8-bit TeX.

Feel free to port this to branch.
2016-09-23 09:04:03 +02:00
Günter Milde
11a036b871 ctests: found reason for "seminar" failure. 2016-09-22 23:54:18 +02:00