diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-05-11 16:52:51 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-05-11 16:52:51 +0000 |
commit | 93266897611e8f360807b1af71d8969972f62937 (patch) | |
tree | f056642bd12b8ddd09a1d571a128d64c0a8aa471 /Build/source/texk/web2c/trip.test | |
parent | 8022375314708f9d9e9c04cb0415b70f12371d30 (diff) |
build system: add trip test
git-svn-id: svn://tug.org/texlive/trunk@13046 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/trip.test')
-rwxr-xr-x | Build/source/texk/web2c/trip.test | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/trip.test b/Build/source/texk/web2c/trip.test new file mode 100755 index 00000000000..dd79d9f4813 --- /dev/null +++ b/Build/source/texk/web2c/trip.test @@ -0,0 +1,48 @@ +#! /bin/sh + +testdir=$srcdir/triptrap + +TEXMFCNF=$testdir; export TEXMFCNF + +dvitype_args="-output-level=2 -dpi=72.27 -page-start='*.*.*.*.*.*.*.*.*.*'" + +echo ">>> Running TRIP test for TeX." >&2 +echo ">>> See $testdir/trip.diffs for example of acceptable diffs." >&2 + +rm -f trip.tfm trip.pl trip.tex trip.fmt tripin.fot tripin.log \ + trip.fot trip.log trip.dvi trip.typ tripos.tex 8terminal.tex +rm -rf tfm + +is_OK=: + +set -x + +./pltotf $testdir/trip.pl trip.tfm || exit 1 + +./tftopl ./trip.tfm trip.pl || exit 1 + +diff $testdir/trip.pl trip.pl || is_OK=false + +# get same filename in log +$LN_S $testdir/trip.tex . + +./tex --progname=initex --ini <$testdir/trip1.in >tripin.fot +mv trip.log tripin.log || exit 1 +diff $testdir/tripin.log tripin.log + +# May as well test non-ini second time through. +./tex --progname=tex <$testdir/trip2.in >trip.fot +diff $testdir/trip.fot trip.fot + +# We use $DIFF instead of `diff' only for those files where there +# might actually be legitimate numerical differences. +$DIFF $DIFFFLAGS $testdir/trip.log trip.log + +eval ./dvitype $dvitype_args trip.dvi >trip.typ || exit 1 +$DIFF $DIFFFLAGS $testdir/trip.typ trip.typ + +$is_OK || { + echo ">>> There were some errors." >&2 + exit 1 +} + |