Debian Codegraph @

texk/web2c/triptrap/mftrap.diffs

raw
1 #! /bin/sh -vx
2 # $Id: mftraptest.test 53154 2019-12-17 19:06:20Z karl $
3 # Copyright 2017-2021 Karl Berry <[email protected]>
4 # Copyright 2009-2014 Peter Breitenlohner <[email protected]>
5 # You may freely use, modify and/or distribute this file.
6
7 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
8 + LC_ALL=C
9 + export LC_ALL
10 + LANGUAGE=C
11 + export LANGUAGE
12
13 testdir=$abs_srcdir/triptrap
14 + testdir=SRCDIR/triptrap
15 TEXMFCNF=$testdir; export TEXMFCNF
16 + TEXMFCNF=SRCDIR/triptrap
17 + export TEXMFCNF
18
19 rm -rf trapdir
20 + rm -rf trapdir
21 mkdir trapdir
22 + mkdir trapdir
23 cd trapdir
24 + cd trapdir
25 mkdir a b
26 + mkdir a b
27
28 # See triptrap/README for explanation of why we believe these diffs are ok,
29 # notably including the capsule numbers.
30
31 # TeX Live generic
32 cat >filter <<-\_EOF
33 s,^\*\*(trap\.mf,** \&trap trap \
34 (trap.mf,
35 s/ (TeX Live 20[^)]*)//
36 s/base=trap [^)][^)]*)/base=trap)/
37 s/) [0-9A-Z: ]*$/)/
38 s/usage [1-9][0-9&]* ([1-9][0-9&]* still/usage XX\&XX (YYY\&YYYYY still/
39 s/[1-9][0-9]* strings of total length [1-9][0-9]*/XXXX strings of total length YYYYY/
40 s/[1-9][0-9]* strings out of [1-9].*/XX strings out of YYY/
41 s/[1-9][0-9]* string characters out of [1-9].*/XXXX string characters out of YYYYY/
42 s/tokens out of [1-9][0-9]*/tokens out of YYYY/
43 s/out of [1-9][0-9]*i,[0-9nrpb,]*/out of YYi,YYYn,YYYr,YYYp,YYYb/
44 s/out of [1-9][0-9]*w,[0-9hdilkep,]*)/out of YYYw,YYh,YYd,YYi,YYYYl,YYYk,YYYe,YYp)/
45 s/METAFONT output ....\...\...:.../METAFONT output YYYY.MM.DD:hhmm/
46 _EOF
47 + cat
48
49 # Capsule numbers
50 cat >>filter <<-\_EOF
51 s/ %CA$/ %/
52 s/^PSULE1675/CAPSULE1172/
53 s/%CAPSULE[1-9][0-9]*/%CAPSULEnnnn/g
54 _EOF
55 + cat
56
57 echo ">>> Running TRAP test for Metafont." >&2
58 + echo '>>> Running TRAP test for Metafont.'
59 >>> Running TRAP test for Metafont.
60 echo ">>> See $testdir/mftrap.diffs for example of acceptable diffs." >&2
61 + echo '>>> See SRCDIR/triptrap/mftrap.diffs for example of acceptable diffs.'
62 >>> See SRCDIR/triptrap/mftrap.diffs for example of acceptable diffs.
63
64 is_OK=:
65 + is_OK=:
66
67 set -x
68 + set -x
69
70 # get same filename in log
71 rm -f trap.mf
72 + rm -f trap.mf
73 $LN_S $testdir/trap.mf . || exit 1
74 + ln -s SRCDIR/triptrap/trap.mf .
75
76 rm -f trap.base
77 + rm -f trap.base
78 ./mf --progname=inimf <$testdir/mftrap1.in >mftrapin.fot
79 + ./mf --progname=inimf
80 if test ! -s trap.base; then
81 echo "*** trap.base not created by mftrap1.in, investigate!" >&2
82 exit 1
83 fi
84 + test '!' -s trap.base
85 mv trap.log mftrapin.log || exit 1
86 + mv trap.log mftrapin.log
87 diff $testdir/mftrapin.log mftrapin.log
88 + diff SRCDIR/triptrap/mftrapin.log mftrapin.log
89 1c1
90 < This is METAFONT, Version 2.71828182 (INIMF) 4 JUL 1776 12:00
91 ---
92 > This is METAFONT, Version 2.71828182 (INIMF) 27 JAN 2021 18:03
93 150c150
94 < String usage 26&83 (892&11481 still untouched)
95 ---
96 > String usage 30&98 (6386&79447 still untouched)
97 176,177c176,177
98 < (preloaded base=trap 1776.7.4)
99 < 1116 strings of total length 20570
100 ---
101 > (preloaded base=trap 2021.1.27)
102 > 1123 strings of total length 20614
103
104 ./mf --progname=inimf <$testdir/mftrap2.in >mftrap.fot
105 + ./mf --progname=inimf
106 mv trap.log mftrap.log || exit 1
107 + mv trap.log mftrap.log
108 mv trap.tfm mftrap.tfm || exit 1
109 + mv trap.tfm mftrap.tfm
110 diff $testdir/mftrap.fot mftrap.fot
111 + diff SRCDIR/triptrap/mftrap.fot mftrap.fot
112 1,3c1,2
113 < This is METAFONT, Version 2.71828182 (INIMF)
114 < ** &trap trap
115 < (trap.mf
116 ---
117 > This is METAFONT, Version 2.71828182 (TeX Live 2021/dev) (INIMF)
118 > **(trap.mf
119 39c38
120 < String usage 41&161 (816&7678 still untouched)
121 ---
122 > String usage 50&202 (6300&75593 still untouched)
123 diff $testdir/mftrap.log mftrap.log
124 + diff SRCDIR/triptrap/mftrap.log mftrap.log
125 1c1
126 < This is METAFONT, Version 2.71828182 (preloaded base=trap 1776.7.4) 4 JUL 1776 12:00
127 ---
128 > This is METAFONT, Version 2.71828182 (preloaded base=trap 2021.1.27) 27 JAN 2021 18:03
129 1825c1825
130 < String usage 24&92 (859&11353 still untouched)
131 ---
132 > String usage 30&119 (6346&79261 still untouched)
133 4235c4235
134 < String usage 41&161 (816&7678 still untouched)
135 ---
136 > String usage 50&202 (6300&75593 still untouched)
137 4251,4252c4251,4252
138 < 68 strings out of 884
139 < 3752 string characters out of 11430
140 ---
141 > 77 strings out of 6377
142 > 3793 string characters out of 79386
143 4254,4255c4254,4255
144 < 289 symbolic tokens out of 2100
145 < 8i,43n,14r,8p,167b stack positions out of 30i,100n,300r,150p,500b
146 ---
147 > 289 symbolic tokens out of 9500
148 > 8i,43n,14r,8p,167b stack positions out of 300i,300n,1000r,150p,500b
149 4263c4263
150 < out of 256w,16h,16d,64i,5000l,500k,256e,50p)
151 ---
152 > out of 256w,16h,16d,64i,15000l,2500k,256e,60p)
153
154 ./tftopl ./mftrap.tfm mftrap.pl || exit 1
155 + ./tftopl ./mftrap.tfm mftrap.pl
156 diff $testdir/mftrap.pl mftrap.pl || is_OK=false
157 + diff SRCDIR/triptrap/mftrap.pl mftrap.pl
158
159 ./gftype -m -i ./trap.72270gf >trap.typ || exit 1
160 + ./gftype -m -i ./trap.72270gf
161 diff $testdir/trap.typ trap.typ
162 + diff SRCDIR/triptrap/trap.typ trap.typ
163 1c1
164 < This is GFtype, Version 3.1
165 ---
166 > This is GFtype, Version 3.1 (TeX Live 2021/dev)
167 3c3
168 < ' METAFONT output 2014.01.07:1811'
169 ---
170 > ' METAFONT output 2021.01.27:1803'
171
172 for f in mftrapin.log mftrap.fot mftrap.log trap.typ; do
173 sed $testdir/$f -f filter >a/$f
174 sed $f -f filter >b/$f
175 diff a/$f b/$f || is_OK=false
176 done
177 + for f in mftrapin.log mftrap.fot mftrap.log trap.typ
178 + sed SRCDIR/triptrap/mftrapin.log -f filter
179 + sed mftrapin.log -f filter
180 + diff a/mftrapin.log b/mftrapin.log
181 + for f in mftrapin.log mftrap.fot mftrap.log trap.typ
182 + sed SRCDIR/triptrap/mftrap.fot -f filter
183 + sed mftrap.fot -f filter
184 + diff a/mftrap.fot b/mftrap.fot
185 + for f in mftrapin.log mftrap.fot mftrap.log trap.typ
186 + sed SRCDIR/triptrap/mftrap.log -f filter
187 + sed mftrap.log -f filter
188 + diff a/mftrap.log b/mftrap.log
189 + for f in mftrapin.log mftrap.fot mftrap.log trap.typ
190 + sed SRCDIR/triptrap/trap.typ -f filter
191 + sed trap.typ -f filter
192 + diff a/trap.typ b/trap.typ
193
194 $is_OK && {
195 echo ">>> All differences are acceptable." >&2
196 } || {
197 echo "*** Error(s) found in mf trap test, investigate!" >&2
198 exit 1
199 }
200 + :
201 + echo '>>> All differences are acceptable.'
202 >>> All differences are acceptable.
203 PASS mftraptest.test (exit status: 0)
204 PASS: mftraptest.test