Debian Codegraph @

texk/web2c/mfluadir/mfluatraptest.test

raw
1 #! /bin/sh -vx
2 # Copyright 2017 Karl Berry <[email protected]>
3 # Copyright 2015 Peter Breitenlohner <[email protected]>
4 # You may freely use, modify and/or distribute this file.
5
6 testdir=$abs_srcdir/triptrap
7 ltestdir=$abs_srcdir/mfluadir/mfluatrap
8
9 TEXMFCNF=$ltestdir
10 LUAINPUTS=$ltestdir
11 export TEXMFCNF LUAINPUTS
12
13 rm -rf mfluatrapdir
14 mkdir mfluatrapdir
15 cd mfluatrapdir
16
17 echo ">>> Running TRAP test for MFLua." >&2
18 echo ">>> See $ltestdir/mfluatrap.diffs for example of acceptable diffs." >&2
19
20 is_OK=:
21
22 set -x
23
24 # get same filename in log
25 $LN_S $testdir/trap.mf .
26
27 ../mflua --progname=inimflua <$testdir/mftrap1.in >mftrapin.fot
28 if test ! -s trap.base; then
29 echo "*** trap.base not created by mftrap1.in, investigate!" >&2
30 exit 1
31 fi
32 mv trap.log mftrapin.log || exit 1
33 diff $testdir/mftrapin.log mftrapin.log
34
35 ../mflua --progname=inimflua <$testdir/mftrap2.in >mftrap.fot
36 mv trap.log mftrap.log || exit 1
37 mv trap.tfm mftrap.tfm || exit 1
38 diff $testdir/mftrap.fot mftrap.fot
39 diff $testdir/mftrap.log mftrap.log
40
41 ../tftopl ./mftrap.tfm mftrap.pl || exit 1
42 diff $testdir/mftrap.pl mftrap.pl || is_OK=false
43
44 ../gftype -m -i ./trap.72270gf >trap.typ || exit 1
45 diff $testdir/trap.typ trap.typ
46
47 $is_OK || {
48 echo ">>> There were some errors." >&2
49 exit 1
50 }
51