summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/triptrap/mptrap.readme
blob: c759e4f9107734086471bc850e999ba18c6b2f5d (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
The `trap' test for MetaPost is analogous to the similarly named test for
METAFONT. 

The trap test uses mtrap.mp trap.mp, trap.mpx, and trapf.tfm.  These four files
should be in the current directory when running the trap test; the other files in
this directory should be saved for comparison purposes.  Be sure that trap.mpx
is written more recently than trap.mp so that MetaPost does not try to
regenerate trap.mpx.

Run the special inimp on mtrap.mp.  It should generate mtrap.log, mtrap.0,
mtrap.1, writeo, and writeo.2.  They should almost match the corresponding files
in this directory except that mtrap.log can have the `allowable differences'
listed below.  (The other output files can only differ in their `%%CreationDate'
lines.)

Run the special inimp and give it the contents of trap1.in as terminal input.
This should produce lots of error messages and write a binary file `trap.mem'.
The resulting trap.log should almost match the trapin.log in this directory.

Now run the special inimp again and give it the contents of trap2.in as terminal
input.  The terminal output should almost match trap.fot and the other files
written should almost match the versions in this directory.  Run the binary
output file trap.tfm through tftopl and compare the resulting trap.pl with the
one in this directory.

                            Allowable differences
1. trap.log, trap.ps, and the output files with numeric extensions all contain
   lines that give the time and date.

2. The capacity values printed out at the end depend on the parameters buf_size,
   stack_size, etc.

3. The strings `now untouched' statistics may differ due to changes in the
   number of characters in the date on the first line of the log file.  All the
   string statistics will change if you alter ../mp.w in a way that changes the
   internal string pool.

4. If integer division with negative numbers does not truncate toward zero in
   your implementation, numeric results will be rounded differently.