blob: 49da1174f9b289562e8ccafdd01cdf7f93160ba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
#!/bin/sh -vx
# $Id$
# Public domain. Originally written by Hironori Kitagawa, 2019.
# This test is intended to be used in a suitable temporary directory
# after installing all engines. It should not be enabled in build stage.
cat <<'EOF' > stress.tex
\let\origdump=\dump\let\dump\relax
\batchmode
\input plain.tex
\let\dump\origdump
\count0=0
\def\A{\ifnum\count0<450000
\count1=1000000 \advance\count1\count0
\edef\N{QW\the\count1}
\expandafter\xdef\csname HOGE\N\endcsname{ABCDEFGHI}%
\advance\count0 by1\let\next=\A\else\let\next\relax
\fi\next}
\A
\let\N\undefined
\count0=0
\def\A{\ifnum\count0<199
\count1=1000000 \advance\count1\count0
\edef\N{\the\count1}
\font\S=cmr10 at \N sp\fontdimen39707\S=1sp
\advance\count0 by1\let\next=\A\else\let\next\relax
\fi\next}
\A
\dump
EOF
cat <<'EOF' > test0.tex
\font\a=cmss10 at 1000000sp
\a qwertyuiopasdfghjkl$\int^\infty_0 e^{-x^2}\,dx$\end
EOF
test0() {
ENGINE=$1
echo $ENGINE
rm -f stress-$ENGINE.fmt test0.dvi test0.xdv &>/dev/null
$ENGINE -ini -etex -progname=$ENGINE -jobname=stress-$ENGINE stress &>/dev/null
ls -l stress-$ENGINE.fmt
if [[ $ENGINE = "xetex" ]]; then
$ENGINE -fmt=./stress-$ENGINE.fmt -no-pdf test0.tex &>/dev/null
ls -l test0.xdv
else
$ENGINE -fmt=./stress-$ENGINE.fmt test0.tex &>/dev/null
ls -l test0.dvi
fi
}
test0 tex
test0 etex
test0 pdftex
test0 ptex
test0 eptex
test0 uptex
test0 euptex
test0 xetex
cat <<'EOF' > test1.tex
\documentclass{article}
\begin{document}
The \textit{quick} \textbf{brown} \textsc{fox} jumps over the lazy dog.
\[
\frac{\pi}{2} =
\left( \int_{0}^{\infty} \frac{\sin x}{\sqrt{x}} dx \right)^2 =
\sum_{k=0}^{\infty} \frac{(2k)!}{2^{2k}(k!)^2} \frac{1}{2k+1} =
\prod_{k=1}^{\infty} \frac{4k^2}{4k^2 - 1}
\]
\end{document}
EOF
test1() {
ENGINE=$1
echo $ENGINE
rm -f latex-$ENGINE.fmt test1.dvi test1.xdv &>/dev/null
$ENGINE -ini -etex -progname=latex-dev -jobname=latex-$ENGINE latex.ini &>/dev/null
ls -l latex-$ENGINE.fmt
if [[ $ENGINE = "xetex" ]]; then
$ENGINE -fmt=./latex-$ENGINE.fmt -no-pdf test1.tex &>/dev/null
ls -l test1.xdv
else
$ENGINE -fmt=./latex-$ENGINE.fmt test1.tex &>/dev/null
ls -l test1.dvi
fi
}
test1 etex
test1 pdftex
test1 eptex
test1 euptex
test1 xetex
|