beta-0.89.2
[luatex.git] / source / texk / web2c / triptrap / mptrap.readme
blobc759e4f9107734086471bc850e999ba18c6b2f5d
1 The `trap' test for MetaPost is analogous to the similarly named test for
2 METAFONT. 
4 The trap test uses mtrap.mp trap.mp, trap.mpx, and trapf.tfm.  These four files
5 should be in the current directory when running the trap test; the other files in
6 this directory should be saved for comparison purposes.  Be sure that trap.mpx
7 is written more recently than trap.mp so that MetaPost does not try to
8 regenerate trap.mpx.
10 Run the special inimp on mtrap.mp.  It should generate mtrap.log, mtrap.0,
11 mtrap.1, writeo, and writeo.2.  They should almost match the corresponding files
12 in this directory except that mtrap.log can have the `allowable differences'
13 listed below.  (The other output files can only differ in their `%%CreationDate'
14 lines.)
16 Run the special inimp and give it the contents of trap1.in as terminal input.
17 This should produce lots of error messages and write a binary file `trap.mem'.
18 The resulting trap.log should almost match the trapin.log in this directory.
20 Now run the special inimp again and give it the contents of trap2.in as terminal
21 input.  The terminal output should almost match trap.fot and the other files
22 written should almost match the versions in this directory.  Run the binary
23 output file trap.tfm through tftopl and compare the resulting trap.pl with the
24 one in this directory.
26                             Allowable differences
27 1. trap.log, trap.ps, and the output files with numeric extensions all contain
28    lines that give the time and date.
30 2. The capacity values printed out at the end depend on the parameters buf_size,
31    stack_size, etc.
33 3. The strings `now untouched' statistics may differ due to changes in the
34    number of characters in the date on the first line of the log file.  All the
35    string statistics will change if you alter ../mp.w in a way that changes the
36    internal string pool.
38 4. If integer division with negative numbers does not truncate toward zero in
39    your implementation, numeric results will be rounded differently.