Skip to content

Commit 2f4de08

Browse files
committed
update test files
1 parent fdffa78 commit 2f4de08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+920
-45
lines changed

build.lua

+10-7
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ sourcefiles = {"codehigh.sty", "codehigh.lua"}
77
-- will be moved from build/unpacked folder to build/test folder
88
installfiles = {"*.sty", "*.lua"}
99

10-
checkengines = {"pdftex","luatex"}
11-
checkruns = 2
10+
-- all files that match checksuppfiles in the supportdir are moved to build/test folder
11+
supportdir = "./testfiles"
12+
checksuppfiles = {"regression-test.cfg"}
1213

13-
lvtext = ".tex"
14+
-- we need to check test files with different regression-test.cfg files
15+
checkconfigs = {"build", "config-pdftex", "config-xetex"}
16+
17+
checkengines = {"luatex"}
18+
--checkruns = 2
1419

15-
kpse.set_program_name ("kpsewhich")
16-
if not release_date then
17-
dofile ( kpse.lookup ("l3build.lua"))
18-
end
20+
lvtext = ".tex"
21+
tlgext = ".nlog"

config-pdftex.lua

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
testfiledir = "./testfiles-pdftex"
3+
checkengines = {"pdftex"}

config-xetex.lua

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
testfiledir = "./testfiles-xetex"
3+
checkengines = {"xetex"}
4+
5+
-- l3build always passes "-no-pdf" option to xetex
6+
function runtest_tasks(name, run)
7+
return "xdvipdfmx " .. name
8+
end

testfiles-pdftex/code-001-1.md5

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
abdea7c7164fcc567586bb8be4317ce1

testfiles-pdftex/code-001-1.png

203 KB
Loading

testfiles-pdftex/code-001-2.md5

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b916670967c073b09199442585d37ff1

testfiles-pdftex/code-001-2.png

33.1 KB
Loading

testfiles/code-001.luatex.tlg testfiles-pdftex/code-001.nlog

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ Don't change this file in any respect.
33
============================================================
44
TEST 1: codehigh: language=latex
55
============================================================
6-
LaTeX Font Info: External font `cmex10' loaded for size
7-
(Font) <7> on input line ....
8-
LaTeX Font Info: External font `cmex10' loaded for size
9-
(Font) <5> on input line ....
106
============================================================
117
============================================================
128
TEST 2: codehigh: language=latex/latex2

testfiles-pdftex/code-001.tex

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
\documentclass{article}
2+
\input{regression-test}
3+
\begin{document}
4+
5+
\START
6+
\hrule\bigskip
7+
8+
\BEGINTEST{codehigh: language=latex}
9+
\begin{codehigh}
10+
% -*- coding: utf-8 -*-
11+
\documentclass{article}
12+
\usepackage[a4paper,margin=2cm]{geometry}
13+
\usepackage{codehigh}
14+
\usepackage{hyperref}
15+
\newcommand*{\myversion}{2021C}
16+
\newcommand*{\mydate}{Version \myversion\ (\the\year-\mylpad\month-\mylpad\day)}
17+
\newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi}
18+
\setlength{\abc}{1}
19+
\begin{document}
20+
% some comment
21+
\section{Section Name}
22+
\subsection*{Suction Name}
23+
Math $a+b$.
24+
\end{document}
25+
\end{codehigh}
26+
\ENDTEST
27+
28+
\bigskip\hrule\bigskip
29+
30+
\BEGINTEST{codehigh: language=latex/latex2}
31+
\begin{codehigh}[language=latex/latex2]
32+
\def\abcd#1#2{
33+
% some comment
34+
\unskip
35+
\setlength{\parindent}{0pt}%
36+
\setlength{\parskip}{0pt}%
37+
\setcounter{choice}{0}%
38+
\let\item=\my@item@temp
39+
\settowidth{\my@item@len}{\vbox{\halign{##1\hfil\cr\BODY\crcr}}}%
40+
\setcounter{choice}{0}%
41+
}
42+
\end{codehigh}
43+
\ENDTEST
44+
45+
\bigskip\hrule\bigskip
46+
47+
\BEGINTEST{codehigh: language=latex/latex3}
48+
\begin{codehigh}[language=latex/latex3]
49+
\cs_new_protected:Npn \__codehigh_typeset_demo:
50+
{
51+
\__codehigh_build_code:
52+
\__codehigh_build_demo:
53+
\dim_set:Nn \l_tmpa_dim { \box_wd:N \g__codehigh_code_box }
54+
\dim_set:Nn \l_tmpb_dim { \box_wd:N \g__codehigh_demo_box }
55+
\par\addvspace{0.5em}\noindent
56+
% more code
57+
}
58+
\end{codehigh}
59+
\ENDTEST
60+
61+
\bigskip\hrule\bigskip
62+
63+
\BEGINTEST{codehigh: language=latex/math}
64+
\begin{codehigh}[language=latex/math]
65+
\begin{align}
66+
\pi\left[\frac13z^3\right]\sin(2x+1)_0^4 = \frac{64}{3}\pi
67+
\end{align}
68+
\end{codehigh}
69+
\ENDTEST
70+
71+
\bigskip\hrule\bigskip
72+
73+
\BEGINTEST{codehigh: language=latex/table}
74+
\begin{codehigh}[language=latex/table]
75+
\begin{tabular}[b]{|lc|r|}
76+
\hline
77+
One & Two & Three \\
78+
%\hline
79+
Four & Five & Six \\
80+
\hline%\hline\hline
81+
Seven & Eight & Nine \\
82+
\hline
83+
\end{tabular}
84+
\end{codehigh}
85+
\ENDTEST
86+
87+
\end{document}

testfiles-pdftex/code-002.md5

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
011b59237b2b91192319fe773fd8b24f

testfiles-pdftex/code-002.nlog

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
This is a generated file for the l3build validation system.
2+
Don't change this file in any respect.
3+
============================================================
4+
TEST 1: codehigh: utf8
5+
============================================================
6+
============================================================
7+
============================================================
8+
TEST 2: codehigh*: visible space
9+
============================================================
10+
============================================================
11+
[1
12+
] (code-002.aux)

testfiles-pdftex/code-002.png

40.9 KB
Loading

testfiles-pdftex/code-002.tex

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
\documentclass{article}
2+
\input{regression-test}
3+
\ExplSyntaxOn
4+
\sys_if_engine_pdftex:T{\usepackage[T1]{fontenc}}
5+
\ExplSyntaxOff
6+
\begin{document}
7+
8+
\START
9+
\hrule\bigskip
10+
11+
\BEGINTEST{codehigh: utf8}
12+
\begin{codehigh}
13+
áçčćžšŽ \TeX áçčćžšŽ \LaTeX áçčćžšŽ.
14+
\end{codehigh}
15+
\ENDTEST
16+
17+
\bigskip\hrule\bigskip
18+
19+
\BEGINTEST{codehigh*: visible space}
20+
\begin{codehigh*}[language=latex/table]
21+
\begin{tabular}[b]{|lc|r|}
22+
\hline
23+
One & Two & Three \\
24+
%\hline
25+
Four & Five & Six \\
26+
\hline%\hline\hline
27+
Seven & Eight & Nine \\
28+
\hline
29+
\end{tabular}
30+
\end{codehigh*}
31+
\ENDTEST
32+
33+
\end{document}

testfiles-pdftex/demo-001.md5

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
599cbe6696816eae36ade1f33b06e18d
File renamed without changes.

testfiles-pdftex/demo-001.png

152 KB
Loading

testfiles-pdftex/demo-001.tex

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
\documentclass{article}
2+
\input{regression-test}
3+
\usepackage{amsmath}
4+
\begin{document}
5+
6+
\START
7+
\hrule\bigskip
8+
9+
\BEGINTEST{demohigh: language=latex}
10+
\begin{demohigh}
11+
% -*- coding: utf-8 -*-
12+
\newcommand*{\myversion}{2021C}
13+
\newcommand*{\mydate}{Version \myversion\ (\the\year-\mylpad\month-\mylpad\day)}
14+
\newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi}
15+
\setlength{\arraycolsep}{6pt}
16+
% some comment
17+
\section{Section Name}
18+
\subsection*{Subsection Name}
19+
Math $a+b$.
20+
\end{demohigh}
21+
\ENDTEST
22+
23+
\bigskip\hrule\bigskip
24+
25+
\BEGINTEST{demohigh: language=latex/latex2}
26+
\begin{demohigh}[language=latex/latex2]
27+
\def\abcd#1#2{%
28+
% some comment
29+
\newcounter{#1}%
30+
\setcounter{#1}{#2}%
31+
\thechoice
32+
}
33+
\abcd{choice}{1}
34+
\end{demohigh}
35+
\ENDTEST
36+
37+
%\bigskip\hrule\bigskip
38+
%
39+
%\BEGINTEST{demohigh: language=latex/latex3}
40+
%\begin{demohigh}[language=latex/latex3]
41+
%\ExplSyntaxOn
42+
%\cs_new_protected:Npn \__my_dimen_demo:Nn #1 #2
43+
% {
44+
% \dim_set:Nn #1 { \textwidth }
45+
% \dim_add:Nn #1 { #2 }
46+
% \dim_use:N #1
47+
% % more code
48+
% }
49+
%\__my_dimen_demo:Nn \l_tmpa_dim {2em}
50+
%\ExplSyntaxOff
51+
%\end{demohigh}
52+
%\ENDTEST
53+
54+
\bigskip\hrule\bigskip
55+
56+
\BEGINTEST{demohigh: language=latex/math}
57+
\begin{demohigh}[language=latex/math]
58+
\begin{align}
59+
\pi\left[\frac13z^3\right]\sin(2x+1)_0^4 = \frac{64}{3}\pi
60+
\end{align}
61+
\end{demohigh}
62+
\ENDTEST
63+
64+
\bigskip\hrule\bigskip
65+
66+
\BEGINTEST{demohigh: language=latex/table}
67+
\begin{demohigh}[language=latex/table]
68+
\begin{tabular}[b]{|lc|r|}
69+
\hline
70+
One & Two & Three \\
71+
%\hline
72+
Four & Five & Six \\
73+
\hline%\hline\hline
74+
Seven & Eight & Nine \\
75+
\hline
76+
\end{tabular}
77+
\end{demohigh}
78+
\ENDTEST
79+
80+
\end{document}

testfiles-pdftex/demo-002.md5

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ee0825ae37e5000d95a95467ed14a757

testfiles-pdftex/demo-002.nlog

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
This is a generated file for the l3build validation system.
2+
Don't change this file in any respect.
3+
============================================================
4+
TEST 1: demohigh: utf8
5+
============================================================
6+
============================================================
7+
============================================================
8+
TEST 2: demohigh*: visible space
9+
============================================================
10+
============================================================
11+
[1
12+
] (demo-002.aux)

testfiles-pdftex/demo-002.png

55.2 KB
Loading

testfiles-pdftex/demo-002.tex

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
\documentclass{article}
2+
\input{regression-test}
3+
\ExplSyntaxOn
4+
\sys_if_engine_pdftex:T{\usepackage[T1]{fontenc}}
5+
\ExplSyntaxOff
6+
\begin{document}
7+
8+
\START
9+
\hrule\bigskip
10+
11+
\BEGINTEST{demohigh: utf8}
12+
\begin{demohigh}
13+
áçčćžšŽ \TeX áçčćžšŽ \LaTeX áçčćžšŽ.
14+
\end{demohigh}
15+
\ENDTEST
16+
17+
\bigskip\hrule\bigskip
18+
19+
\BEGINTEST{demohigh*: visible space}
20+
\begin{demohigh*}[language=latex/table,visiblespace]
21+
\begin{tabular}[b]{|lc|r|}
22+
\hline
23+
One & Two & Three \\
24+
%\hline
25+
Four & Five & Six \\
26+
\hline%\hline\hline
27+
Seven & Eight & Nine \\
28+
\hline
29+
\end{tabular}
30+
\end{demohigh*}
31+
\ENDTEST
32+
33+
\end{document}

testfiles-pdftex/fake-001.md5

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4a3e3bc40e12cc25c2575df0d510c879

testfiles/fake-001.pdftex.tlg testfiles-pdftex/fake-001.nlog

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ TEST 5: \fakeverb : nesting inside commands
2323
============================================================
2424
TEST 6: \fakeverb : nesting inside tabularray tables
2525
============================================================
26-
LaTeX Font Info: External font `cmex10' loaded for size
27-
(Font) <7> on input line ....
28-
LaTeX Font Info: External font `cmex10' loaded for size
29-
(Font) <5> on input line ....
3026
============================================================
3127
[1
3228
] (fake-001.aux)

testfiles-pdftex/fake-001.png

36.4 KB
Loading

testfiles-pdftex/fake-001.tex

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
\documentclass{article}
2+
\input{regression-test}
3+
\ExplSyntaxOn
4+
\sys_if_engine_pdftex:T{\usepackage[T1]{fontenc}}
5+
\ExplSyntaxOff
6+
\usepackage{tabularray}
7+
\SetTblrTracing{none}
8+
\begin{document}
9+
10+
\START
11+
\hrule\bigskip
12+
13+
\BEGINTEST{\fakeverb: unescaped characters}
14+
Hello\fakeverb{\abc{}$&#^_ uvw123}Verb!
15+
\ENDTEST
16+
17+
\bigskip\hrule\bigskip
18+
19+
\BEGINTEST{\fakeverb: escaped characters}
20+
Hello\fakeverb{\\\{\}\#\^\ \%}Verb!
21+
\ENDTEST
22+
23+
\bigskip\hrule\bigskip
24+
25+
\BEGINTEST{\fakeverb: more characters} % see issue #17
26+
Hello\fakeverb{a--b---c<|>d``e''f?`g!`h}Verb!
27+
\ENDTEST
28+
29+
\bigskip\hrule\bigskip
30+
31+
32+
\BEGINTEST{\fakeverb: control sequences}
33+
Hello\fakeverb{\textbf{abc}\ttfamily \ttfamily\ \ttfamily\ \ \!abc\! uvw}Verb!
34+
\ENDTEST
35+
36+
\bigskip\hrule\bigskip
37+
38+
\BEGINTEST{\fakeverb: nesting inside commands}
39+
Hello\fbox{\fakeverb{\\\{\}\#\^\ \%}}Verb!
40+
\ENDTEST
41+
42+
\bigskip\hrule\bigskip
43+
44+
\BEGINTEST{\fakeverb: nesting inside tabularray tables}
45+
\begin{tblr}{colspec=|l|l|}
46+
Hello & Hello\fakeverb{#&$\#\%{^_^}}Hello
47+
\end{tblr}
48+
\ENDTEST
49+
50+
\end{document}

testfiles-pdftex/fake-002.md5

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
60d7a87eb6b142b231226d128e83bbb7

0 commit comments

Comments
 (0)