Commit Graph

32 Commits

Author SHA1 Message Date
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
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
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
Kornel Benko
a9a45344b8 Cmake build: Add format V2.2 to export tests 2016-08-29 18:14:37 +02:00
Kornel Benko
4162424762 Cmake xhtml export tests: Use command xmllint to test the export result 2016-05-30 09:50:22 +02:00
Kornel Benko
315b9fcb2a Cmake tests: Simplify test logic for exporting to formats lyx[0-9][0-9]x
Since the stop condition is that the last two consecutive created
files are identical, we do not need to check the last file.
Also checking for load of the created files is not needed, because
exporting the previous file implicitly loads too.
2015-12-29 13:23:08 +01:00
Kornel Benko
e17fdd1506 Thinko in commit a10b671317 2015-12-28 08:37:58 +01:00
Kornel Benko
a10b671317 Cmake lyx2lyx tests: Use a loop to execute roundtrips
Exporting to some previous lyx format:
Inside the loop
  Stop at export with errors/warnings
  Stop if exported file not loadable
  Stop if exported file identical to previous exported file (OK case)
    This is done through creating MD5SUM
2015-12-28 06:00:10 +01:00
Kornel Benko
8d1d46743b Cmake lyx2lyx tests: Add roundtrip to exported lyx-files
Until now we exported e.g. to lyx16x ans tested if the result is loadable.
Now we also test if export of the exported is loadable.
2015-12-27 20:05:37 +01:00
Kornel Benko
d0d45d4043 Cmake export tests: Add structue test for exported lyx files
We test here, if any \end_{somethig} matches \begin_{something}.
Exeptions are \end_index and \end_branch ATM, they should
match \index and \branch respectively.

Also added new testfile.
2015-12-27 14:33:11 +01:00
Kornel Benko
ec32831cb0 Cmake export tests: Handle some lyx2lyx warnings 2015-12-25 19:02:06 +01:00
Kornel Benko
e3cd6db4a7 Cmake export tests: Check if exported lyx files are loadable
Also added tests for export to lyx21 format.
2015-12-25 10:28:40 +01:00
Kornel Benko
548a7ac364 Cmake tests: Rename label 'reverted' to 'inverted'. 2015-12-03 00:23:07 +01:00
Kornel Benko
af18890ed6 Cmake export tests: Use build dir as source for _all_ latex output formats 2015-11-29 16:11:10 +01:00
Kornel Benko
6dd98a8245 Cmake export tests: Try to use language dependent inputencoding.
This enables some more pdf5_texF und dvi3_texF tests to succeed.
2015-11-10 19:42:43 +01:00
Kornel Benko
cc3dd7753e Cmake tests: make parallel export tests safer.
Use different temporary directory for each test.
2015-03-28 21:21:16 +01:00
Kornel Benko
efb8584ba1 Cmake export tests: Use unique file names for exported files
This should prevent possible errors for tests running in parallel.
We now also check for created export file.
  complainer/feature requester: Scott Kostyshak
2014-09-09 19:02:20 +02:00
Kornel Benko
10ffbd787a Cmake build: White space + simplification 2014-01-05 10:02:29 +01:00
Kornel Benko
997035fe66 Cmake tests: Expand export tests for luatex and xetex
Citing Scott:
In our current set up, we are currently testing XeTeX and LuaTeX
either with system fonts or with TeX fonts but never both. We should
test with both in my opinion. We will have to ignore/invert many tests
but it still seems useful. For example Günter fixed babel-greek so
that it works now with TeX fonts; and Jürgen found some errors in LyX
that were causing some of the English docs to fail with system fonts.
Currently we only test greek documents with system fonts and we only
test English documents with TeX fonts.

This change adds the missing test-cases.
2013-12-16 11:36:36 +01:00
Scott Kostyshak
0a4bb51a26 ctests: add dviluatex as a format that needs fonts
Documents in certain languages will only work with dviluatex
if fonts that support those languages are used.

This commit continues e690cfc4.
2013-11-27 07:57:31 -05:00
Kornel Benko
e690cfc47c make test environment. Exports with luatex and xetex.
In successful cooperation with Scott Kostyshak.
We provide many lyx-documents which are not compilable with luatex or xetex.
But some of them compile, if we change the font use to non_tex_fonts.
Since this would change the appropriate source, we have to convert
it first into a save location. To make it there compilable,
we have to convert also all file references.
languages     used font
he|el|ru|uk  'FreeSans'
fa           'FreeFarsi'
zh_CN        'WenQuanYi Micro Hei'
The whole job is done with a perl script.
2013-11-17 23:17:27 +01:00
Kornel Benko
788e2b1ac8 Cmake build tests: Unify use of userdir
While some test runns lyx-exe, we need userdir be
different from default. All relevant tests should use the same directory.
2013-08-25 11:41:10 +02:00
Kornel Benko
48e8f93d9a Cmake build tests: be more verbose in displaying running commands 2013-08-23 00:50:42 +02:00
Kornel Benko
fc33092fd8 Cmake build: modify some tests
a) test export/templates/ectaart_pdf5 removed, because
    of incompatibility between ectart.cls and luatex.sty
b) renamed some tests to reflect their purpose
    tex2lyx2lyx/roundtrip/ => tex2lyx/cmplyx/
          # the tests are comparing files written by lyx (not by tex2lyx)
    autotests/ => keytest/
          # we are testing reactions of lyx to some key strokes
c) add tests for lyx2lyx. This is rather rudimental, in that it only
    checks for created output, error codes and error output.
d) use correct environment variable to set up the userdir for testing
2013-08-21 13:34:26 +02:00
Kornel Benko
8ac070afb0 Cmake export tests
Some export test are known to fail. Checking them every time is cumbersome.
Now, the tests marked in file revertedTests will invert the success condition
and mark the test as INVERTED_SEE-README.ctest.

If some of the tests in revertedTests fails, this is good, and the testname
can be removed from it.
2013-08-04 14:31:47 +02:00
Kornel Benko
33f23ae8e5 Export tests in cmake build: Do not use the default userdir while
running lyx.
2013-07-23 21:42:44 +02:00
Scott Kostyshak
6c15b944b1 Remove keytest.py code from export.cmake
Export tests do not need keytest.py.
2013-03-01 07:15:37 -05:00
Scott Kostyshak
d31aef689a CMake export tests now correctly check return code 2013-01-22 03:10:48 -05:00
Kornel Benko
1f93b0805e Cmake build autotests:
Split export test to test on each format and each input file
One can still check all exports with one commend
        ctest -R "export.*"
2012-12-13 12:38:38 +01:00
Kornel Benko
4182205ca8 Cmake build: autotests
Make the export test available to all, since it is independent of X11
2012-12-12 18:23:25 +01:00
Kornel Benko
57ca9ee073 Cmake build: autotests
1.) Filenames for export changed
2.) Usage of wmctrl
3.) More temporary file to remove
2012-12-11 18:59:05 +01:00
Kornel Benko
57b04ac7f4 Cmake build: First try to use autotests.
Many test are not running, but if changed the '-dbg xxx' to '-dbg any'
then all of sudden they pass ...
(The buffered output of lyx is often disrupted too early with 'kill -9',
so the expected data are not available for the appropriate test)
2012-12-11 15:17:04 +01:00