From: Scott Kostyshak Date: Fri, 20 Sep 2024 09:04:16 +0000 (+0200) Subject: ctests: invert chess lyx2lyx tests X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6e05409d135581d75ecc5bf15b8336ebdd98d6f2;p=lyx.git 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) --- 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