Commit Graph

4576 Commits

Author SHA1 Message Date
Scott Kostyshak
6cc9638dc2 Initial commit of lyx-tester
These scripts help with building and testing LyX, mostly with the
ctest framework.

"lyxbuild" is a build script that has different options (e.g., to
compile with Clang/GCC, Qt 5/6, CMake/autotools). The build script
also has an option to cherry-pick compiler fixes which make it
easier to build older commits on newer compiler versions (useful
when performing a "git bisect"). See "lyxbuild --help" for more
information.

The previous home of lyx-tester was:

  https://gitlab.com/scottkosty/lyx-tester
2024-11-18 16:20:40 +01:00
Scott Kostyshak
25cc10a04c ctests: uninvert some three systemF tests
These Astronomy_%26_Astrophysics tests now succeed:

  export/examples/Articles/Astronomy_%26_Astrophysics_dvi3_systemF
  export/examples/Articles/Astronomy_%26_Astrophysics_pdf4_systemF
  export/examples/Articles/Astronomy_%26_Astrophysics_pdf5_systemF
2024-11-09 15:13:19 +01:00
Kornel Benko
695b2f485c Cmake tests: Add test for possible wrong used constants in our ui-files 2024-11-07 14:16:03 +01:00
Scott Kostyshak
0bd1951184 ctests: update log 2024-11-04 13:43:35 +01:00
Scott Kostyshak
1ef2f135d2 ctests: update log 2024-11-04 10:40:53 +01:00
Kornel Benko
7d8c1fcf64 Cmake url tests: try to check also some modified urls
If the url contains 'ctan', try to determine the correct url depending
of the components to deside if using 'https://www.ctan.org' or rather
https://mirrors.ctan.org.
Without 'ctan' try to check https:// instead of ftp:// or http://
2024-10-30 11:15:47 +01:00
Thibaut Cuvelier
7feffb89e9 MathML: let the user change the MathML version.
Discussed in https://www.lyx.org/trac/ticket/13058.
2024-10-29 01:58:56 +01:00
Kornel Benko
cd3d3957c5 Amend 09684899d6 for cmake build: 2024-10-24 14:36:40 +02:00
Kornel Benko
6c46cc66c9 Amend 02beaa0a7b for cmake build 2024-10-24 14:19:16 +02:00
Kornel Benko
112208ddd9 Amend c916bd15 for cmake build: Require C++17 2024-10-24 11:36:09 +02:00
Kornel Benko
5d91fb81f9 URL Tests: add some only manually accessible urls 2024-10-19 14:42:44 +02:00
Kornel Benko
36bde673db Cmake url tests: For each http url check (and mark) also the https
variant
2024-10-18 18:28:13 +02:00
Scott Kostyshak
b9c8f2c3e2 ctests: uninvert xhtml test thanks to fix
Thanks to the fix at 18657384, this test is fixed.
2024-10-16 19:03:40 +02:00
Kornel Benko
dfd84f6b8f Cmake url tests: Expand list of invalid urls
These urls will not be tested
2024-10-15 10:50:27 +02:00
Kornel Benko
fdd314e25e Cmake tests urls: Changed log-output for easier parsing 2024-10-15 10:48:26 +02:00
Kornel Benko
7abdcb613d Cosmetics 2024-10-15 10:47:26 +02:00
Kornel Benko
5598946335 Amend(10) of c0ee28a7
Hopefully the last one
2024-10-10 20:34:50 +02:00
Kornel Benko
271d4397bb Cosmetics in writing and parsing log-file after test
'check_accessible_urls'
2024-10-09 19:17:16 +02:00
Kornel Benko
4063951ded Amend 341410a5: Change log-output to better parse urls 2024-10-08 11:38:35 +02:00
Scott Kostyshak
46edbaca77 ctests: invert an xhtml test
From Jürgen:

  ampersands in the bibliography (as in "Hartley & Marks" here)
  need to be transferred to & in DocBook.
2024-10-08 09:44:35 +02:00
Kornel Benko
341410a512 Small modifications
Continued changes for commit 3f48486a
2024-10-07 12:35:10 +02:00
Kornel Benko
3f48486a5c Cmake build tests: check urls optimized
The original test took about ~50 minutes. Making the checks in parallel,
now it takes about 150 seconds.
2024-10-06 18:04:00 +02:00
Pavel Sanda
9ccda98e6e Remove strfwd.h.
Will break cygwin due to trivstring header.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg223056.html
2024-10-04 20:49:33 +02:00
Kornel Benko
fe19855116 Amend 3add2204:
Missed 1 default export case
2024-09-26 11:58:22 +02:00
Scott Kostyshak
72de15eb77 ctests: invert more Astronomy_%26_Astrophysics
These have been failing since before.
2024-09-25 17:18:02 +02:00
Kornel Benko
3add2204d4 Cmake tests: Amend 6e05409d
Use with a slightly better thought out selection of possible exports to tex-source.
2024-09-22 11:40:28 +02:00
Scott Kostyshak
6e05409d13 ctests: invert chess lyx2lyx tests
In export.cmake, if the detected output format is pdf3, we try to
export to "platex", which usually makes sense, but for this file we
would need to export to "latex". This file is very particular, and
also old, so I do not know if it is worth the time to handle this
case.

This commit inverts the following tests:

  export/examples/Articles/Chess/Game_1_lyx16 (Failed)
  export/examples/Articles/Chess/Game_1_lyx20 (Failed)
  export/examples/Articles/Chess/Game_1_lyx21 (Failed)
  export/examples/Articles/Chess/Game_1_lyx22 (Failed)
  export/examples/Articles/Chess/Game_1_lyx23 (Failed)
2024-09-21 13:10:20 +02:00
Scott Kostyshak
92c7c33d9e ctests: invert lyx2lyx tests that fail TeX export
These fail when exporting to TeX, but since they have to do with old
formats, it's not clear it's worth the time to investigate.

These started failing once we check the exit code of LyX's TeX
export (at c7be9780).
2024-09-19 22:38:49 +02:00
Scott Kostyshak
c7be978098 ctests: exit with error if export to .tex fails
Now that we detect and export to the correct TeX format (instead of
assuming pdflatex), we can make the check more strict by giving an
error if LyX exits with error from the export.
2024-09-19 22:34:37 +02:00
Scott Kostyshak
03f0392849 ctests: default for Japanese + systemF is pdf4
This fixes the following tests:

  export/examples/ja/Modules/Rnw_%28knitr%29_lyx22
  export/examples/ja/Modules/Rnw_%28knitr%29_lyx23
  export/examples/ja/Modules/Sweave_lyx22
  export/examples/ja/Modules/Sweave_lyx23
2024-09-19 22:01:38 +02:00
Scott Kostyshak
8edc2aeb3e ctests: comment the inverted ja Math systemF tests
Comments from Jürgen about why it is complicated to fix the exports.
2024-09-18 14:20:16 +02:00
Scott Kostyshak
2cce445862 Amend e72ca6a5 2024-09-17 21:41:48 +02:00
Kornel Benko
e72ca6a586 Cmake lyx2lyx export tests: Try to use output format from the lyx-source 2024-09-17 18:42:46 +02:00
Scott Kostyshak
e3d26bcb5f Uninvert ja UserGuide systemF tests
These exports pass thanks to Jürgen's recent fixes, including
working around a language nesting issue.
2024-09-17 11:12:10 +02:00
Scott Kostyshak
bdc6df14ed Uninvert the ja Additional systemF tests
These exports now succeed thanks to Jürgen's recent fixes.
2024-09-16 17:54:17 +02:00
Jean-Marc Lasgouttes
951cb62f47 Fixup 716e20ae: revert useless part 2024-09-11 13:37:32 +02:00
Jean-Marc Lasgouttes
716e20ae1b Limit the number of iterations for some tabular features in math
Try to please Coverity scan.
2024-09-11 13:29:20 +02:00
Jean-Marc Lasgouttes
2ea95fa71b Improve coverity modeling
This tells coverity that these functions terminate the program.
2024-09-09 17:50:01 +02:00
Kornel Benko
8c14748e78 Amend 18c310a8 for cmake build: Get rid of QPA_XCB define 2024-08-30 14:08:05 +02:00
Kornel Benko
f1fddd86ef Cmake build: Add defines for HAVE_XCB_XCB_H and HAVE_LIBXCB 2024-08-29 14:08:39 +02:00
Juergen Spitzmueller
b625138be6 Add support for the following languages
Polyglossia:
Chinese (Simplified), Chinese (Traditional), Japanese, Kurdish (Sorani),
Latin (Classic), Latin (Ecclesiastic), Latin (Medieval), N'ko, Odia,
Punjabi, and Uyghur

Babel:
Amharic, Armenian, Asturian, Bengali, Church Slavonic, Coptic, Divehi,
Kannada, Kazakh, Khmer, Kurdish (Sorani), Lao, Latin (Classic),
Latin (Ecclesiastic), Latin (Medieval), Malayalam, Marathi, N'ko,
Occitan, Odia, Punjabi, Russian (Petrine orthography), Sanskrit, Syriac,
Tamil, Telugu, Tibetan, Urdu, and Uyghur
2024-08-25 13:22:07 +02:00
Juergen Spitzmueller
7e49ae7b13 Add support for language options (#8034)
File format change.

Note that this cannot be properly reverted to LyX 2.4, so any options
will simply vanish on reversion or roundtrip
2024-08-23 15:52:34 +02:00
Juergen Spitzmueller
33869b62bf Add GUI support for nomencl options 2024-08-22 08:11:18 +02:00
Juergen Spitzmueller
13ee0bc8cd Add support for the nomentbl nomenclature option
file format change
2024-08-21 17:39:36 +02:00
Juergen Spitzmueller
a5841b3312 Transform InsetNomenclature to a collapsible
Fixes: #10460, #12595, #6353
2024-08-12 12:33:16 +02:00
Juergen Spitzmueller
ae1e1cb069 Add possibility to manually specify longest label in nomenclature
File format change
2024-07-21 17:59:34 +02:00
Scott Kostyshak
4d15427935 ctests: invert a failing xhtml test
Explanation from Jürgen:

the author-specific keys now can have a trailing &
(after the key as in "abbrvciteauthor&" or at the start of the type
subtag, as in "abbrvnames:&author" (see 5c2652fa12). This indicates
that we want "&" rather than "and" (in APA context).

See: https://www.mail-archive.com/search?l=mid&q=ildx4xd4o7ybeqroh3blxgnxqnsqnte256utip2fbmcwi4zolz%40wsh7ez36kkhl
2024-07-14 00:16:19 -04:00
Juergen Spitzmueller
8941b05774 Add support for biblatex-chicago (#12240)
File format change
2024-07-09 15:18:06 +02:00
Enrico Forestieri
1dd0bf3253 Update format in lyxrc.dist 2024-07-03 12:32:18 +02:00
Stephan Witt
740d863f61 Add runpath verification of deployed binaries and plugins 2024-06-24 08:24:45 +02:00