| 1 |
#! /bin/sh -vx |
| 2 |
# Copyright 2017 Karl Berry <[email protected]> |
| 3 |
# Copyright 2015 Peter Breitenlohner <[email protected]> |
| 4 |
# You may freely use, modify and/or distribute this file. |
| 5 |
|
| 6 |
testdir=$abs_srcdir/triptrap |
| 7 |
+ testdir=SRCDIR/triptrap |
| 8 |
ltestdir=$abs_srcdir/mfluadir/mfluatrap |
| 9 |
+ ltestdir=SRCDIR/mfluadir/mfluatrap |
| 10 |
jtestdir=$abs_srcdir/mfluajitdir/mfluajittrap |
| 11 |
+ jtestdir=SRCDIR/mfluajitdir/mfluajittrap |
| 12 |
|
| 13 |
TEXMFCNF=$ltestdir |
| 14 |
+ TEXMFCNF=SRCDIR/mfluadir/mfluatrap |
| 15 |
LUAINPUTS=$ltestdir |
| 16 |
+ LUAINPUTS=SRCDIR/mfluadir/mfluatrap |
| 17 |
export TEXMFCNF LUAINPUTS |
| 18 |
+ export TEXMFCNF LUAINPUTS |
| 19 |
|
| 20 |
rm -rf mfluajittrapdir |
| 21 |
+ rm -rf mfluajittrapdir |
| 22 |
mkdir mfluajittrapdir |
| 23 |
+ mkdir mfluajittrapdir |
| 24 |
cd mfluajittrapdir |
| 25 |
+ cd mfluajittrapdir |
| 26 |
|
| 27 |
echo ">>> Running TRAP test for MFLuaJIT." >&2 |
| 28 |
+ echo '>>> Running TRAP test for MFLuaJIT.' |
| 29 |
>>> Running TRAP test for MFLuaJIT. |
| 30 |
echo ">>> See $jtestdir/mfluajittrap.diffs for example of acceptable diffs." >&2 |
| 31 |
+ echo '>>> See SRCDIR/mfluajitdir/mfluajittrap/mfluajittrap.diffs for example of acceptable diffs.' |
| 32 |
>>> See SRCDIR/mfluajitdir/mfluajittrap/mfluajittrap.diffs for example of acceptable diffs. |
| 33 |
|
| 34 |
is_OK=: |
| 35 |
+ is_OK=: |
| 36 |
|
| 37 |
set -x |
| 38 |
+ set -x |
| 39 |
|
| 40 |
# get same filename in log |
| 41 |
$LN_S $testdir/trap.mf . |
| 42 |
+ ln -s SRCDIR/triptrap/trap.mf . |
| 43 |
|
| 44 |
./mfluajit --progname=inimfluajit <$testdir/mftrap1.in >mftrapin.fot |
| 45 |
+ ./mfluajit --progname=inimfluajit |
| 46 |
if test ! -s trap.base; then |
| 47 |
echo "*** trap.base not created by mftrap1.in, investigate!" >&2 |
| 48 |
exit 1 |
| 49 |
fi |
| 50 |
+ test '!' -s trap.base |
| 51 |
mv trap.log mftrapin.log || exit 1 |
| 52 |
+ mv trap.log mftrapin.log |
| 53 |
diff $testdir/mftrapin.log mftrapin.log |
| 54 |
+ diff SRCDIR/triptrap/mftrapin.log mftrapin.log |
| 55 |
1c1 |
| 56 |
< This is METAFONT, Version 2.71828182 (INIMF) 4 JUL 1776 12:00 |
| 57 |
--- |
| 58 |
> This is MFLuaJIT, Version 2.71828182-1.0.0-alpha (INIMF) 27 JAN 2021 18:03 |
| 59 |
150c150 |
| 60 |
< String usage 26&83 (892&11481 still untouched) |
| 61 |
--- |
| 62 |
> String usage 30&98 (1047458&9979376 still untouched) |
| 63 |
176,177c176,177 |
| 64 |
< (preloaded base=trap 1776.7.4) |
| 65 |
< 1116 strings of total length 20570 |
| 66 |
--- |
| 67 |
> (preloaded base=trap 2021.1.27) |
| 68 |
> 1125 strings of total length 20685 |
| 69 |
179c179 |
| 70 |
< 265 symbolic tokens |
| 71 |
--- |
| 72 |
> 266 symbolic tokens |
| 73 |
|
| 74 |
./mfluajit --progname=inimfluajit <$testdir/mftrap2.in >mftrap.fot |
| 75 |
+ ./mfluajit --progname=inimfluajit |
| 76 |
mv trap.log mftrap.log || exit 1 |
| 77 |
+ mv trap.log mftrap.log |
| 78 |
mv trap.tfm mftrap.tfm || exit 1 |
| 79 |
+ mv trap.tfm mftrap.tfm |
| 80 |
diff $testdir/mftrap.fot mftrap.fot |
| 81 |
+ diff SRCDIR/triptrap/mftrap.fot mftrap.fot |
| 82 |
1,3c1,4 |
| 83 |
< This is METAFONT, Version 2.71828182 (INIMF) |
| 84 |
< ** &trap trap |
| 85 |
< (trap.mf |
| 86 |
--- |
| 87 |
> MFLua version: 1.0.0-alpha |
| 88 |
> MFLua banner: This is MFLua, Version 2.71828182-1.0.0-alpha |
| 89 |
> This is MFLuaJIT, Version 2.71828182-1.0.0-alpha (TeX Live 2021/dev) (INIMF) |
| 90 |
> **(trap.mf |
| 91 |
22a24,99 |
| 92 |
> |
| 93 |
> Warning: print_scale called with nil argument. |
| 94 |
> |
| 95 |
> Warning: print_scale called with nil argument. |
| 96 |
> |
| 97 |
> Warning: print_scale called with nil argument. |
| 98 |
> |
| 99 |
> Warning: print_scale called with nil argument. |
| 100 |
> |
| 101 |
> Warning: print_scale called with nil argument. |
| 102 |
> |
| 103 |
> Warning: print_scale called with nil argument. |
| 104 |
> |
| 105 |
> Warning: print_scale called with nil argument. |
| 106 |
> |
| 107 |
> Warning: print_scale called with nil argument. |
| 108 |
> |
| 109 |
> Warning: print_scale called with nil argument. |
| 110 |
> |
| 111 |
> Warning: print_scale called with nil argument. |
| 112 |
> |
| 113 |
> Warning: print_scale called with nil argument. |
| 114 |
> |
| 115 |
> Warning: print_scale called with nil argument. |
| 116 |
> |
| 117 |
> Warning: print_scale called with nil argument. |
| 118 |
> |
| 119 |
> Warning: print_scale called with nil argument. |
| 120 |
> |
| 121 |
> Warning: print_scale called with nil argument. |
| 122 |
> |
| 123 |
> Warning: print_scale called with nil argument. |
| 124 |
> |
| 125 |
> Warning: print_scale called with nil argument. |
| 126 |
> |
| 127 |
> Warning: print_scale called with nil argument. |
| 128 |
> |
| 129 |
> Warning: print_scale called with nil argument. |
| 130 |
> |
| 131 |
> Warning: print_scale called with nil argument. |
| 132 |
> |
| 133 |
> Warning: print_scale called with nil argument. |
| 134 |
> |
| 135 |
> Warning: print_scale called with nil argument. |
| 136 |
> |
| 137 |
> Warning: print_scale called with nil argument. |
| 138 |
> |
| 139 |
> Warning: print_scale called with nil argument. |
| 140 |
> |
| 141 |
> Warning: print_scale called with nil argument. |
| 142 |
> |
| 143 |
> Warning: print_scale called with nil argument. |
| 144 |
> |
| 145 |
> Warning: print_scale called with nil argument. |
| 146 |
> |
| 147 |
> Warning: print_scale called with nil argument. |
| 148 |
> |
| 149 |
> Warning: print_scale called with nil argument. |
| 150 |
> |
| 151 |
> Warning: print_scale called with nil argument. |
| 152 |
> |
| 153 |
> Warning: print_scale called with nil argument. |
| 154 |
> |
| 155 |
> Warning: print_scale called with nil argument. |
| 156 |
> |
| 157 |
> Warning: print_scale called with nil argument. |
| 158 |
> |
| 159 |
> Warning: print_scale called with nil argument. |
| 160 |
> |
| 161 |
> Warning: print_scale called with nil argument. |
| 162 |
> |
| 163 |
> Warning: print_scale called with nil argument. |
| 164 |
> |
| 165 |
> Warning: print_scale called with nil argument. |
| 166 |
> |
| 167 |
> Warning: print_scale called with nil argument. |
| 168 |
27a105,136 |
| 169 |
> Warning: print_scale called with nil argument. |
| 170 |
> |
| 171 |
> Warning: print_scale called with nil argument. |
| 172 |
> |
| 173 |
> Warning: print_scale called with nil argument. |
| 174 |
> |
| 175 |
> Warning: print_scale called with nil argument. |
| 176 |
> |
| 177 |
> Warning: print_scale called with nil argument. |
| 178 |
> |
| 179 |
> Warning: print_scale called with nil argument. |
| 180 |
> |
| 181 |
> Warning: print_scale called with nil argument. |
| 182 |
> |
| 183 |
> Warning: print_scale called with nil argument. |
| 184 |
> |
| 185 |
> Warning: print_scale called with nil argument. |
| 186 |
> |
| 187 |
> Warning: print_scale called with nil argument. |
| 188 |
> |
| 189 |
> Warning: print_scale called with nil argument. |
| 190 |
> |
| 191 |
> Warning: print_scale called with nil argument. |
| 192 |
> |
| 193 |
> Warning: print_scale called with nil argument. |
| 194 |
> |
| 195 |
> Warning: print_scale called with nil argument. |
| 196 |
> |
| 197 |
> Warning: print_scale called with nil argument. |
| 198 |
> |
| 199 |
> Warning: print_scale called with nil argument. |
| 200 |
> |
| 201 |
39c148 |
| 202 |
< String usage 41&161 (816&7678 still untouched) |
| 203 |
--- |
| 204 |
> String usage 50&202 (1047372&9975522 still untouched) |
| 205 |
59a169 |
| 206 |
> Warning: end_program.lua not found |
| 207 |
diff $testdir/mftrap.log mftrap.log |
| 208 |
+ diff SRCDIR/triptrap/mftrap.log mftrap.log |
| 209 |
1c1 |
| 210 |
< This is METAFONT, Version 2.71828182 (preloaded base=trap 1776.7.4) 4 JUL 1776 12:00 |
| 211 |
--- |
| 212 |
> This is MFLuaJIT, Version 2.71828182-1.0.0-alpha (preloaded base=trap 2021.1.27) 27 JAN 2021 18:03 |
| 213 |
133,134c133,134 |
| 214 |
< <scantokens> pair |
| 215 |
< p[],';^^ff |
| 216 |
--- |
| 217 |
> <scantokens> or <runscript> pair |
| 218 |
> p[],';^^ff |
| 219 |
145,146c145,146 |
| 220 |
< <scantokens> pair |
| 221 |
< p[],';^^ff |
| 222 |
--- |
| 223 |
> <scantokens> or <runscript> pair |
| 224 |
> p[],';^^ff |
| 225 |
158,159c158,159 |
| 226 |
< <scantokens> pair |
| 227 |
< p[],';^^ff |
| 228 |
--- |
| 229 |
> <scantokens> or <runscript> pair |
| 230 |
> p[],';^^ff |
| 231 |
169,170c169,170 |
| 232 |
< <scantokens> pair p[],';^^ff |
| 233 |
< |
| 234 |
--- |
| 235 |
> <scantokens> or <runscript> ...f |
| 236 |
> |
| 237 |
1825c1825 |
| 238 |
< String usage 24&92 (859&11353 still untouched) |
| 239 |
--- |
| 240 |
> String usage 30&119 (1047418&9979190 still untouched) |
| 241 |
4235c4235 |
| 242 |
< String usage 41&161 (816&7678 still untouched) |
| 243 |
--- |
| 244 |
> String usage 50&202 (1047372&9975522 still untouched) |
| 245 |
4251,4252c4251,4252 |
| 246 |
< 68 strings out of 884 |
| 247 |
< 3752 string characters out of 11430 |
| 248 |
--- |
| 249 |
> 77 strings out of 1047449 |
| 250 |
> 3793 string characters out of 9979315 |
| 251 |
4254,4255c4254,4255 |
| 252 |
< 289 symbolic tokens out of 2100 |
| 253 |
< 8i,43n,14r,8p,167b stack positions out of 30i,100n,300r,150p,500b |
| 254 |
--- |
| 255 |
> 290 symbolic tokens out of 9500 |
| 256 |
> 8i,43n,14r,8p,167b stack positions out of 300i,300n,1000r,150p,3000b |
| 257 |
4263c4263 |
| 258 |
< out of 256w,16h,16d,64i,5000l,500k,256e,50p) |
| 259 |
--- |
| 260 |
> out of 256w,16h,16d,64i,15000l,2500k,256e,60p) |
| 261 |
|
| 262 |
./tftopl ./mftrap.tfm mftrap.pl || exit 1 |
| 263 |
+ ./tftopl ./mftrap.tfm mftrap.pl |
| 264 |
diff $testdir/mftrap.pl mftrap.pl || is_OK=false |
| 265 |
+ diff SRCDIR/triptrap/mftrap.pl mftrap.pl |
| 266 |
|
| 267 |
./gftype -m -i ./trap.72270gf >trap.typ || exit 1 |
| 268 |
+ ./gftype -m -i ./trap.72270gf |
| 269 |
diff $testdir/trap.typ trap.typ |
| 270 |
+ diff SRCDIR/triptrap/trap.typ trap.typ |
| 271 |
1c1 |
| 272 |
< This is GFtype, Version 3.1 |
| 273 |
--- |
| 274 |
> This is GFtype, Version 3.1 (TeX Live 2021/dev) |
| 275 |
3c3 |
| 276 |
< ' METAFONT output 2014.01.07:1811' |
| 277 |
--- |
| 278 |
> ' METAFONT output 2021.01.27:1803' |
| 279 |
|
| 280 |
$is_OK || { |
| 281 |
echo ">>> There were some errors." >&2 |
| 282 |
exit 1 |
| 283 |
} |
| 284 |
+ : |
| 285 |
|
| 286 |
PASS mfluajitdir/mfluajittraptest.test (exit status: 0) |
| 287 |
PASS: mfluajitdir/mfluajittraptest.test |