Skip to content

Commit

Permalink
ci: two run config
Browse files Browse the repository at this point in the history
  • Loading branch information
LogCreative committed Jan 16, 2024
1 parent c8070c7 commit 4acb20c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ sourcefiledir = "texmf/source/latex/" .. module

-- l3build check
-- Checking will copy the unpack files to the final directory.
testfiledir = "testfiles"
testsuppdir = testfiledir .. "/support"
installfiles = {"*.sty", "*.cls"}
extraunpackdir = "texmf/tex/latex/" .. module
function checkinit_hook()
Expand All @@ -25,8 +23,20 @@ function checkinit_hook()
return 0
end

-- main check config
checkruns = 1
testfiledir = "testfiles"
testsuppdir = testfiledir .. "/support"

-- extra check configs
checkconfigs = {
"build",
"testfiles/tworuns/config"
}

-- l3build doc
-- prepare the test pdf in the doc (should be done after 'l3build check')
-- only main folder check could be included
maindir = "."
builddir = maindir .. "/build"
testdir = builddir .. "/test"
Expand Down
2 changes: 2 additions & 0 deletions testfiles/tworuns/config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
checkruns = 2
testfiledir = "testfiles/tworuns"
12 changes: 12 additions & 0 deletions testfiles/tworuns/hyperref.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\input{regression-test}
\AtBeginDocument{\START}
\DocumentMetadata{}
\documentclass{presenter}
\usepackage{hyperref}
\begin{document}
\section{Test}
Test \textsf{hyperref} on Page \pageref{sec:target}.

\section{Target}\label{sec:target}
This is the target section.
\end{document}
5 changes: 5 additions & 0 deletions testfiles/tworuns/hyperref.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
[1
] [2
] (hyperref.aux)

0 comments on commit 4acb20c

Please sign in to comment.