web2c: Triptrap
2.4 Trip, trap, and mptrap: Torture tests
=========================================
To validate your TeX, Metafont, and MetaPost executables, run 'make
triptrap'. This runs the trip, trap, and mptrap "torture tests". See
the files 'triptrap/tripman.tex', 'triptrap/trapman.tex', and
'triptrap/mptrap.readme' for detailed information and background on the
tests.
The differences between your executables' behavior and the standard
values will show up on your terminal. The usual differences (these are
all acceptable) are:
* string usage and table sizes;
* glue set ratios;
* 'down4', 'right4', and 'y4' commands in DVItype output;
* dates and times.
Any other differences are trouble. The most common culprit in the past
has been compiler bugs, especially when optimizing. ⇒TeX or
Metafont failing (kpathsea)TeX or Metafont failing.
The files 'trip.diffs', 'mftrap.diffs', and 'mptrap.diffs' in the
'triptrap' directory show the standard diffs against the original
output. If you diff your diffs against these files, you should come up
clean. For example
make trip >&mytrip.diffs
diff triptrap/trip.diffs mytrip.diffs
To run the tests separately, use the targets 'trip', 'trap', and
'mptrap'.
To run simple tests for all the programs as well as the torture
tests, run 'make check'. You can compare the output to the distributed
file 'tests/check.log' if you like.