]> git.lyx.org Git - lyx.git/commitdiff
ctests: invert chess lyx2lyx tests
authorScott Kostyshak <skostysh@lyx.org>
Fri, 20 Sep 2024 09:04:16 +0000 (11:04 +0200)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 21 Sep 2024 11:10:20 +0000 (13:10 +0200)
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
development/autotests/invertedTests

index 3d071105ce9c125c21b499325503fdf3b72d24ae..40bc0f0cb5a787fc6b543364a522908630ef466e 100755 (executable)
@@ -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")
index 8b314b64c7ddc7bc4cc9d0dfe37f04fbd7853716..88afdc0cbd038cb96cf16769c5eb98f2ad55572e 100644 (file)
@@ -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