Debian Codegraph @

texk/web2c/triptrap/mptrap.diffs

raw
1 #! /bin/sh -vx
2 # Public domain.
3
4 testdir=$abs_srcdir/triptrap
5 + testdir=SRCDIR/triptrap
6
7 TEXMFCNF=$testdir; export TEXMFCNF
8 + TEXMFCNF=SRCDIR/triptrap
9 + export TEXMFCNF
10
11 rm -rf mptrapdir
12 + rm -rf mptrapdir
13 mkdir mptrapdir
14 + mkdir mptrapdir
15 cd mptrapdir
16 + cd mptrapdir
17
18 dvitype_args="-output-level=2 -dpi=72.27 -page-start='*.*.*.*.*.*.*.*.*.*'"
19 + dvitype_args='-output-level=2 -dpi=72.27 -page-start='\''*.*.*.*.*.*.*.*.*.*'\'''
20
21 echo ">>> Running MPTRAP test for MetaPost." >&2
22 + echo '>>> Running MPTRAP test for MetaPost.'
23 >>> Running MPTRAP test for MetaPost.
24 echo ">>> See $testdir/mptrap.diffs for example of acceptable diffs." >&2
25 + echo '>>> See SRCDIR/triptrap/mptrap.diffs for example of acceptable diffs.'
26 >>> See SRCDIR/triptrap/mptrap.diffs for example of acceptable diffs.
27
28 set -x
29 + set -x
30
31 ./pltotf $testdir/trapf.pl trapf.tfm
32 + ./pltotf SRCDIR/triptrap/trapf.pl trapf.tfm
33
34 # get same filename in log
35 $LN_S $testdir/mtrap.mp . || exit 1
36 + ln -s SRCDIR/triptrap/mtrap.mp .
37
38 ./mpost --ini mtrap
39 + ./mpost --ini mtrap
40 This is MetaPost, version 2.00 (TeX Live 2021/dev) (kpathsea version 6.3.3/dev)
41 (./mtrap.mp
42 diff $testdir/mtrap.log mtrap.log
43 + diff SRCDIR/triptrap/mtrap.log mtrap.log
44 1c1
45 < This is MetaPost, version 1.203 (kpathsea version 3.5.7dev) (INIMP) 25 MAY 2009 12:47
46 ---
47 > This is MetaPost, version 2.00 (TeX Live 2021/dev) (kpathsea version 6.3.3/dev) 27 JAN 2021 18:03
48 4,5c4,5
49 < Memory usage 19&13 (3972 still untouched)
50 < String usage 3&12 (101&7774 now untouched)
51 ---
52 > Memory usage 2048
53 > String usage 1&10
54 299,306c299,306
55 < Memory usage 19&13 (3867 still untouched)
56 < String usage 7&20 (97&7766 now untouched)
57 < Memory usage 111&13 (3867 still untouched)
58 < String usage 9&30 (95&7756 now untouched)
59 < Memory usage 118&13 (3867 still untouched)
60 < String usage 10&33 (94&7753 now untouched)
61 < Memory usage 141&56 (3867 still untouched)
62 < String usage 13&39 (91&7747 now untouched)
63 ---
64 > Memory usage 11664
65 > String usage 3&19
66 > Memory usage 12600
67 > String usage 3&19
68 > Memory usage 12600
69 > String usage 3&19
70 > Memory usage 12600
71 > String usage 3&19
72 316,317c316,317
73 < Memory usage 154&59 (3867 still untouched)
74 < String usage 13&39 (91&7747 now untouched)
75 ---
76 > Memory usage 12784
77 > String usage 3&19
78 338,339c338,339
79 < Memory usage 230&59 (3867 still untouched)
80 < String usage 13&39 (91&7747 now untouched)
81 ---
82 > Memory usage 13792
83 > String usage 3&19
84 355,356c355,356
85 < Memory usage 258&59 (3867 still untouched)
86 < String usage 13&39 (91&7747 now untouched)
87 ---
88 > Memory usage 13928
89 > String usage 3&19
90 371,372c371,372
91 < Memory usage 312&72 (3867 still untouched)
92 < String usage 13&39 (91&7747 now untouched)
93 ---
94 > Memory usage 14696
95 > String usage 3&19
96 398,399c398,399
97 < Memory usage 339&59 (3867 still untouched)
98 < String usage 13&39 (91&7747 now untouched)
99 ---
100 > Memory usage 14880
101 > String usage 3&19
102 433,434c433,434
103 < Memory usage 367&59 (3867 still untouched)
104 < String usage 13&39 (91&7747 now untouched)
105 ---
106 > Memory usage 15064
107 > String usage 3&19
108 468,469c468,469
109 < Memory usage 367&59 (3867 still untouched)
110 < String usage 13&39 (91&7747 now untouched)
111 ---
112 > Memory usage 15064
113 > String usage 3&19
114 484,485c484,485
115 < Memory usage 373&70 (3867 still untouched)
116 < String usage 13&39 (91&7747 now untouched)
117 ---
118 > Memory usage 15112
119 > String usage 3&19
120 522,523c522,523
121 < Memory usage 398&59 (3867 still untouched)
122 < String usage 13&39 (91&7747 now untouched)
123 ---
124 > Memory usage 15264
125 > String usage 3&19
126 535,536c535,536
127 < Memory usage 386&64 (3867 still untouched)
128 < String usage 15&47 (89&7739 now untouched)
129 ---
130 > Memory usage 15384
131 > String usage 5&27
132 576,577c576,577
133 < Memory usage 399&59 (3867 still untouched)
134 < String usage 14&42 (90&7744 now untouched)
135 ---
136 > Memory usage 15912
137 > String usage 5&27
138 592,593c592,593
139 < Memory usage 427&73 (3867 still untouched)
140 < String usage 14&42 (90&7744 now untouched)
141 ---
142 > Memory usage 15904
143 > String usage 5&27
144 638,639c638,639
145 < Memory usage 452&59 (3867 still untouched)
146 < String usage 14&42 (90&7744 now untouched)
147 ---
148 > Memory usage 16088
149 > String usage 5&27
150 647,650c647,650
151 < Memory usage 452&59 (3867 still untouched)
152 < String usage 15&53 (89&7733 now untouched)
153 < Memory usage 342&13 (3867 still untouched)
154 < String usage 14&42 (90&7744 now untouched)
155 ---
156 > Memory usage 16088
157 > String usage 6&38
158 > Memory usage 15480
159 > String usage 6&38
160 697,698c697,698
161 < Memory usage 342&13 (3867 still untouched)
162 < String usage 14&42 (90&7744 now untouched)
163 ---
164 > Memory usage 15480
165 > String usage 6&38
166 700,701c700,701
167 < Memory usage 637&13 (3867 still untouched)
168 < String usage 14&42 (90&7744 now untouched)
169 ---
170 > Memory usage 16624
171 > String usage 6&38
172 787,788c787,788
173 < Memory usage 853&13 (3867 still untouched)
174 < String usage 14&42 (90&7744 now untouched)
175 ---
176 > Memory usage 17528
177 > String usage 6&38
178 817,818c817,818
179 < Memory usage 1149&85 (2867 still untouched)
180 < String usage 14&42 (90&7744 now untouched)
181 ---
182 > Memory usage 18672
183 > String usage 6&38
184 842,843c842,843
185 < Memory usage 996&85 (2867 still untouched)
186 < String usage 14&42 (90&7744 now untouched)
187 ---
188 > Memory usage 18008
189 > String usage 6&38
190 867,868c867,868
191 < Memory usage 898&85 (2867 still untouched)
192 < String usage 14&42 (90&7744 now untouched)
193 ---
194 > Memory usage 17864
195 > String usage 6&38
196 889,890c889,890
197 < Memory usage 882&85 (2867 still untouched)
198 < String usage 15&47 (89&7739 now untouched)
199 ---
200 > Memory usage 17984
201 > String usage 6&38
202 912,913c912,913
203 < Memory usage 900&85 (2867 still untouched)
204 < String usage 15&47 (89&7739 now untouched)
205 ---
206 > Memory usage 17896
207 > String usage 6&38
208 919,920c919,920
209 < Memory usage 353&13 (2867 still untouched)
210 < String usage 15&47 (89&7739 now untouched)
211 ---
212 > Memory usage 15664
213 > String usage 7&41
214 924,925c924,925
215 < Memory usage 359&13 (2867 still untouched)
216 < String usage 16&50 (84&7716 now untouched)
217 ---
218 > Memory usage 15664
219 > String usage 9&45
220 929c929
221 < >> "%%Creator: MetaPost 1.203"
222 ---
223 > >> "%%Creator: MetaPost 2.00"
224 931c931
225 < >> "%*Font: trapf 9.9628 9.96265 35:c008"
226 ---
227 > >> "%*Font: trapf 9.96266 9.96265 35:c008"
228 955,956c955,956
229 < >> "gsave [0.86601 0.5 -0.5 0.86601 2 3 ] concat 0 0 moveto"
230 < >> "(A56) trapf 9.9628 fshow grestore"
231 ---
232 > >> "gsave [0.86601 0.49998 -0.49998 0.86601 2 3 ] concat 0 0 moveto"
233 > >> "(A56) trapf 9.96266 fshow grestore"
234 959c959
235 < >> "0.00064 1 scale stroke grestore"
236 ---
237 > >> "1.00067 1 scale stroke grestore"
238 962,963c962,963
239 < Memory usage 359&13 (2867 still untouched)
240 < String usage 16&50 (46&6607 now untouched)
241 ---
242 > Memory usage 15664
243 > String usage 70&1483
244 966,968c966,968
245 < >> 42
246 < Memory usage 359&13 (2867 still untouched)
247 < String usage 16&50 (5&5366 now untouched)
248 ---
249 > >> 41
250 > Memory usage 15664
251 > String usage 90&2138
252 973,976c973,976
253 < Memory usage 359&13 (2867 still untouched)
254 < String usage 17&84 (1&5292 now untouched)
255 < Memory usage 359&13 (2867 still untouched)
256 < String usage 30&97 (43&7558 now untouched)
257 ---
258 > Memory usage 15664
259 > String usage 91&2146
260 > Memory usage 15664
261 > String usage 152&2400
262 978c978
263 < >> "%%CreationDate: 2009.05.25:1247"
264 ---
265 > >> "%%CreationDate: 2021.01.27:1803"
266 982,984c982,984
267 < >> "%*Font: trapf 9.9628 9.96265 35:c008"
268 < Memory usage 359&13 (2867 still untouched)
269 < String usage 30&88 (41&7527 now untouched)
270 ---
271 > >> "%*Font: trapf 9.96266 9.96265 35:c008"
272 > Memory usage 15664
273 > String usage 152&2400
274 987,988c987,988
275 < Memory usage 359&13 (2867 still untouched)
276 < String usage 30&88 (61&6618 now untouched)
277 ---
278 > Memory usage 16432
279 > String usage 172&2908
280 999,1001c999,1001
281 < The equation I just processed has given some variable
282 < a value of 4096 or more. Continue and I'll try to cope
283 < with that big value; but it might be dangerous.
284 ---
285 > The equation I just processed has given some variable a
286 > value outside of the safetyp range. Continue and I'll try
287 > to cope with that big value; but it might be dangerous.
288 1012,1013c1012,1013
289 < Memory usage 359&13 (2867 still untouched)
290 < String usage 30&88 (61&6618 now untouched)
291 ---
292 > Memory usage 16432
293 > String usage 172&2908
294 1022,1023c1022,1023
295 < Memory usage 361&13 (2867 still untouched)
296 < String usage 31&96 (60&6610 now untouched)
297 ---
298 > Memory usage 16432
299 > String usage 172&2908
300 1071,1072c1071,1072
301 < Memory usage 361&13 (2867 still untouched)
302 < String usage 31&96 (59&6602 now untouched)
303 ---
304 > Memory usage 16432
305 > String usage 173&2916
306 1076,1081c1076,1079
307 < 37 strings out of 104
308 < 508 string characters out of 7786
309 < 2134 words of memory out of 5000
310 < 265 symbolic tokens out of 16384
311 < 5i,42n,6p,99b,2f stack positions out of 300i,84n,1500p,200b,25f
312 < 8 string compactions (moved 2756 characters, 222 strings)
313 ---
314 > 173 strings using 2916 characters
315 > 18856 bytes of node memory
316 > 320 symbolic tokens
317 > 6i,49n,6p,99b,2f stack positions out of 16i,98n,7p,200b,4f
318 1082a1081
319 >
320 diff $testdir/mtrap.0 mtrap.0
321 + diff SRCDIR/triptrap/mtrap.0 mtrap.0
322 4,5c4,5
323 < %%Creator: MetaPost 1.203
324 < %%CreationDate: 2009.05.25:1247
325 ---
326 > %%Creator: MetaPost 2.00
327 > %%CreationDate: 2021.01.27:1803
328 7c7
329 < %*Font: trapf 9.9628 9.96265 35:c008
330 ---
331 > %*Font: trapf 9.96266 9.96265 35:c008
332 31,32c31,32
333 < gsave [0.86601 0.5 -0.5 0.86601 2 3 ] concat 0 0 moveto
334 < (A56) trapf 9.9628 fshow grestore
335 ---
336 > gsave [0.86601 0.49998 -0.49998 0.86601 2 3 ] concat 0 0 moveto
337 > (A56) trapf 9.96266 fshow grestore
338 35c35
339 < 0.00064 1 scale stroke grestore
340 ---
341 > 1.00067 1 scale stroke grestore
342 diff $testdir/mtrap.1 mtrap.1
343 + diff SRCDIR/triptrap/mtrap.1 mtrap.1
344 4,5c4,5
345 < %%Creator: MetaPost 1.203
346 < %%CreationDate: 2009.05.25:1247
347 ---
348 > %%Creator: MetaPost 2.00
349 > %%CreationDate: 2021.01.27:1803
350 23,25c23,24
351 < 0 0 0 setrgbcolor 1
352 < 0 dtransform exch truncate exch idtransform pop setlinewidth [] 0 setdash
353 < 0 setlinecap 0 setlinejoin 1 setmiterlimit
354 ---
355 > 0 0 0 setrgbcolor 1 0 dtransform exch truncate exch idtransform pop setlinewidth
356 > [] 0 setdash 0 setlinecap 0 setlinejoin 1 setmiterlimit
357 35,36c34,35
358 < gsave [-0.5 0.86601 -0.86601 -0.5 -3 2 ] concat 0 0 moveto
359 < (A56) trapf 9.9628 fshow grestore
360 ---
361 > gsave [-0.49998 0.86601 -0.86601 -0.49998 -3 2 ] concat 0 0 moveto
362 > (A56) trapf 9.96266 fshow grestore
363 39c38
364 < [0 -0.00064 -1 0 0 0] concat stroke grestore
365 ---
366 > [0 -1.00067 -1 0 0 0] concat stroke grestore
367 diff $testdir/writeo writeo
368 + diff SRCDIR/triptrap/writeo writeo
369 diff $testdir/writeo.2 writeo.2
370 + diff SRCDIR/triptrap/writeo.2 writeo.2
371
372 $LN_S $testdir/trap.mp . || exit 1
373 + ln -s SRCDIR/triptrap/trap.mp .
374 $LN_S $testdir/trap.mpx . || exit 1
375 + ln -s SRCDIR/triptrap/trap.mpx .
376
377 ## Why is --jobname required? And why --ini?
378 ./mpost --ini --jobname=trap <$testdir/mptrap1.in >mptrapin.fot
379 + ./mpost --ini --jobname=trap
380 mv trap.log mptrapin.log || exit 1
381 + mv trap.log mptrapin.log
382 diff $testdir/mptrapin.log mptrapin.log
383 + diff SRCDIR/triptrap/mptrapin.log mptrapin.log
384 1c1
385 < This is MetaPost, version 1.203 (kpathsea version 3.5.7dev) (INIMP) 25 MAY 2009 12:47
386 ---
387 > This is MetaPost, version 2.00 (TeX Live 2021/dev) (kpathsea version 6.3.3/dev) 27 JAN 2021 18:03
388 40,60c40,47
389 < ! Missing `:' has been inserted.
390 < <to be read again>
391 < ;
392 < l.8 ...acingcommands:=if not cycle "":1.1 forever;
393 < fi;
394 < The next thing in this loop should have been a `:'.
395 < So I'll pretend that a colon was present;
396 < everything from here to `endfor' will be iterated.
397 <
398 < {fi}
399 < {exitif}
400 < {[repeat the loop]}
401 < {false}
402 < {fi}
403 < {exitif}
404 < {[repeat the loop]}
405 < {(2.1)>(2)}
406 < {true}
407 < {tracingcommands:=2.1}
408 < {showtoken}
409 < > |=:|>=|=:|>
410 ---
411 > ! Extra `endfor'.
412 > l.17 ...or n=tracingspecs step 1 until $:fi endfor
413 > showstats;
414 > I'm not currently working on a for loop,
415 > so I had better not try to end anything.
416 >
417 > Memory usage 14128
418 > String usage 6&49
419 62c49
420 < l.9 ... tracingcommands>2 endfor; showtoken |=:|>;
421 ---
422 > l.17 ...gspecs step 1 until $:fi endfor showstats;
423 65,98c52,54
424 < ! Arithmetic overflow.
425 < l.10 tracinglostchars:=1/.00001
426 < ; tracingequations:=$+1; p~=tracinglostchar...
427 < Uh, oh. A little while ago one of the quantities that I was
428 < computing got too large, so I'm afraid your answers will be
429 < somewhat askew. You'll probably have to adopt different
430 < tactics next time. But I shall try to carry on anyway.
431 <
432 < {tracinglostchars:=32767.99998}
433 < {(0)+(1)}
434 < {tracingequations:=1}
435 < {(32767.99998)+(0.00002)}
436 < ! Arithmetic overflow.
437 < l.10 ...quations:=$+1; p~=tracinglostchars+.00001;
438 <
439 < Uh, oh. A little while ago one of the quantities that I was
440 < computing got too large, so I'm afraid your answers will be
441 < somewhat askew. You'll probably have to adopt different
442 < tactics next time. But I shall try to carry on anyway.
443 <
444 < {(p~)=(32767.99998)}
445 < ## p~=32767.99998
446 < {interim}
447 < {tracingmacros:=1}
448 < {tracingoutput:=1}
449 < {warningcheck:=1}
450 < {tracingstats:=1}
451 < {tracingchoices:=1}
452 < {tracingspecs:=1}
453 < {ASCII("")}
454 < {$:=-1}
455 < {$:=x}
456 < >> x
457 < ! Internal quantity `$' must receive a known numeric or string.
458 ---
459 > >> unknown path p~
460 > >> (0
461 > ! Equation cannot be performed (unknown path=numeric).
462 100,148c56,60
463 < ;
464 < l.12 ...utput:=tracingmacros:=1; $:=ASCII""; $:=x;
465 < p~:=p~;
466 < I can't set an internal quantity to anything but a known string
467 < or known numeric value, so I'll have to ignore this assignment.
468 <
469 < {p~:=32767.99998}
470 < ## p~=32767.99998
471 < ! Value is too large (32767.99998).
472 < l.12 ...racingmacros:=1; $:=ASCII""; $:=x; p~:=p~;
473 <
474 < The equation I just processed has given some variable
475 < a value of 4096 or more. Continue and I'll try to cope
476 < with that big value; but it might be dangerous.
477 < (Set warningcheck:=0 to suppress this message.)
478 <
479 < {delimiters}
480 < {delimiters}
481 < {vardef}
482 < {def}
483 <
484 < foo(TEXT2)->begingroup(TEXT2)endgroup
485 < (SUFFIX0)<-
486 < (SUFFIX1)<-foo
487 < (TEXT2)<-interim.tracinglostchars:=(0.5;show.urcorner("flubo"infont"trapf"),2+2
488 < {begingroup}
489 < {interim}
490 < ! Missing `)' has been inserted.
491 < <to be read again>
492 < ;
493 < <argument> interim.tracinglostchars:=(0.5;
494 < show.urcorner("flubo"infont"trapf"...
495 <
496 < foo->begingroup(TEXT2)
497 < endgroup
498 < l.17 ),2+2endtext
499 < ; for n=tracingspecs step 1 until $:fi endfor showstats;
500 < I found no right delimiter to match a left one. So I've
501 < put one in, behind the scenes; this may fix the problem.
502 <
503 < {tracinglostchars:=0.5}
504 < {show}
505 < {("flubo")infont("trapf")}
506 < Missing character: There is no f in font trapf!
507 < Missing character: There is no l in font trapf!
508 < Missing character: There is no o in font trapf!
509 < {urcorner(picture)}
510 < >> (2.9888,7.97011)
511 < {(2)+(2)}
512 ---
513 > ,
514 > l.18 let!!=skipto; path p~; p~=(0,
515 > 0)..controls (15,4) and (-15,-12)..(4,0);
516 > I'm sorry, but I don't know how to make such things equal.
517 > (See the two expressions just above the error message.)
518 150,151c62
519 < >> 4
520 < ! OK.
521 ---
522 > ! Extra tokens will be flushed.
523 153,165c64,73
524 < endgroup
525 < l.17 ),2+2endtext
526 < ; for n=tracingspecs step 1 until $:fi endfor showstats;
527 <
528 < {restoring tracinglostchars=32767.99998}
529 < {endgroup}
530 < {for}
531 < {showstats}
532 < Memory usage 283&42 (3927 still untouched)
533 < String usage 25&72 (78&7709 now untouched)
534 < ! OK.
535 < l.17 ...gspecs step 1 until $:fi endfor showstats;
536 <
537 ---
538 > ,
539 > l.18 let!!=skipto; path p~; p~=(0,
540 > 0)..controls (15,4) and (-15,-12)..(4,0);
541 > I've just read as much of that statement as I could fathom,
542 > so a semicolon should have been next. It's very puzzling...
543 > but I'll try to get myself back together, by ignoring
544 > everything up to the next `;'. Please insert a semicolon
545 > now in front of anything that you don't want me to delete.
546 > (See Chapter 27 of The METAFONTbook for an example.)
547 >
548 167,191d74
549 < {let}
550 < {path}
551 < {-(15)}
552 < {-(12)}
553 < Path at line 18, before choices:
554 < (0,0)..controls (15,4) and (-15,-12)
555 < ..(4,0)
556 <
557 < Path at line 18, after choices:
558 < (0,0)..controls (15,4) and (-15,-12)
559 < ..(4,0)
560 <
561 < {(unknown path p~)=(path)}
562 < {everyjob}
563 < {vardef}
564 < {let}
565 < {vardef}
566 < {def}
567 < {begingroup}
568 < {errorstopmode}
569 <
570 < {endgroup}
571 < {elseif}
572 < {endinput}
573 < {\}
574 194,198c77
575 < Beginning to dump on file trap.mem
576 < (mem=trap 2009.05.25)
577 < at most 553 strings of total length 2302
578 < 391 memory locations dumped; current usage is 311&68
579 < 308 symbolic tokens
580 ---
581 >
582
583 exit 0
584 + exit 0
585 PASS mplibdir/mptraptest.test (exit status: 0)
586 PASS: mplibdir/mptraptest.test