[LyX/master] ctests: invert chess lyx2lyx tests
Scott Kostyshak
skostysh at lyx.org
Sat Sep 21 18:57:36 UTC 2024
commit 6e05409d135581d75ecc5bf15b8336ebdd98d6f2
Author: Scott Kostyshak <skostysh at lyx.org>
Date: Fri Sep 20 11:04:16 2024 +0200
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)
---
development/autotests/export.cmake | 3 +++
development/autotests/invertedTests | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/development/autotests/export.cmake b/development/autotests/export.cmake
index 3d071105ce..40bc0f0cb5 100755
--- a/development/autotests/export.cmake
+++ b/development/autotests/export.cmake
@@ -235,6 +235,9 @@ if (extension MATCHES "\\.lyx$")
if (${_export_format} MATCHES "pdf2")
set(_texformat "pdflatex")
elseif(${_export_format} MATCHES "pdf3")
+ # Ideally we would set to "platex" if Japanese, and "latex" if not Japanese.
+ # For example, currently we invert export/examples/Articles/Chess/Game_1_lyx because
+ # it should be exported to "latex" instead of "platex".
set(_texformat "platex")
elseif(${_export_format} MATCHES "pdf4")
set(_texformat "xetex")
diff --git a/development/autotests/invertedTests b/development/autotests/invertedTests
index 8b314b64c7..88afdc0cbd 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -57,6 +57,10 @@ export/export/lyx2lyx/lyx_2_3_test2_lyx(16|20)
# clear it is worth the time to try to fix the issue.
export/doc/ja/UserGuide_lyx(16|20)
export/examples/ja/Modules/LilyPond_Book_lyx(16|20)
+# in export.cmake, if output format is pdf3, we try to export to "platex" which
+# makes sense for all other tests except this one (which should be exported to
+# "latex" instead).
+export/examples/Articles/Chess/Game_1_lyx.*
# nonstandard tests failing for unknown reason:
export/templates/Articles/R_Journal_(dvi3|pdf[45])_systemF
More information about the lyx-cvs
mailing list