Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using lualatex-dev format for regression tests #215

Closed
gusbrs opened this issue Nov 26, 2021 · 2 comments
Closed

Using lualatex-dev format for regression tests #215

gusbrs opened this issue Nov 26, 2021 · 2 comments

Comments

@gusbrs
Copy link

gusbrs commented Nov 26, 2021

From https://tex.stackexchange.com/q/611424

When trying to setup l3build tests to use dev formats alongside the current ones, for some reason, the check for lualatex-dev fails immediately after saving it. Since I don't understand well what's going on, it might be my fault somehow, in which case feel free to just close this. But, as far as I can tell, this is unexpected behavior.

A MWE to reproduce the issue:

File ./build.lua:

bundle = ""
module = "mypackage"
checkruns = 2
checkengines =
  {
    "pdftex" ,
    "xetex" ,
    "luatex" ,
    "pdftexdev" ,
    "luatexdev" ,
    "xetexdev"
  }
specialformats = {}
specialformats.latex =
  {
    pdftexdev = { binary = "pdflatex-dev" , format = "" },
    xetexdev  = { binary = "xelatex-dev"  , format = "" },
    luatexdev = { binary = "lualatex-dev" , format = "" },
  }

File ./testfiles/test01.lvt:

\documentclass{article}

\input{regression-test}

\usepackage{hyperref}

\begin{document}

\section{Section 1}
\label{sec:section-1}

\START

\setbox0=\hbox{\ref{sec:section-1}}
\showbox0

\OMIT

\end{document}

Save results for all six formats:

l3build save -e pdftex test01
l3build save -e luatex test01
l3build save -e xetex test01
l3build save -e pdftexdev test01
l3build save -e luatexdev test01
l3build save -e xetexdev test01

And check:

$ l3build check
Running checks on
  test01 (1/1)
          --> failed


  Check failed with difference files
  - ./build/test/test01.luatexdev.diff

./build/test/test01.luatexdev.diff is:

*** ./build/test/test01.luatexdev.tlg	2021-11-26 16:07:10.713204348 -0300
--- ./build/test/test01.luatexdev.log	2021-11-26 16:07:10.713204348 -0300
***************
*** 1,9 ****
  This is a generated file for the l3build validation system.
  Don't change this file in any respect.
  > \box...=
! \hbox(6.44444+0.0)x5.00002
  .\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{section.1}
! .\OT1/cmr/m/n/10 1
  .\pdfendlink
  ! OK.
  l. ...\showbox0
--- 1,9 ----
  This is a generated file for the l3build validation system.
  Don't change this file in any respect.
  > \box...=
! \hbox(6.66+0.0)x5.0
  .\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{section.1}
! .\TU/lmr/m/n/10 1
  .\pdfendlink
  ! OK.
  l. ...\showbox0
@zauguin
Copy link
Member

zauguin commented Nov 26, 2021

It's not your fault, there was a bug in some code which detected luatex specific tlg files. It's fixed in the development sources and will be fixed in the next release.

@gusbrs
Copy link
Author

gusbrs commented Nov 26, 2021

@zauguin Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants