Debian Codegraph @

texk/web2c/mfluajitdir/mfluajittraptest.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 jtestdir=$abs_srcdir/mfluajitdir/mfluajittrap
9
10 TEXMFCNF=$ltestdir
11 LUAINPUTS=$ltestdir
12 export TEXMFCNF LUAINPUTS
13
14 rm -rf mfluajittrapdir
15 mkdir mfluajittrapdir
16 cd mfluajittrapdir
17
18 echo ">>> Running TRAP test for MFLuaJIT." >&2
19 echo ">>> See $jtestdir/mfluajittrap.diffs for example of acceptable diffs." >&2
20
21 is_OK=:
22
23 set -x
24
25 # get same filename in log
26 $LN_S $testdir/trap.mf .
27
28 ../mfluajit --progname=inimfluajit <$testdir/mftrap1.in >mftrapin.fot
29 if test ! -s trap.base; then
30 echo "*** trap.base not created by mftrap1.in, investigate!" >&2
31 exit 1
32 fi
33 mv trap.log mftrapin.log || exit 1
34 diff $testdir/mftrapin.log mftrapin.log
35
36 ../mfluajit --progname=inimfluajit <$testdir/mftrap2.in >mftrap.fot
37 mv trap.log mftrap.log || exit 1
38 mv trap.tfm mftrap.tfm || exit 1
39 diff $testdir/mftrap.fot mftrap.fot
40 diff $testdir/mftrap.log mftrap.log
41
42 ../tftopl ./mftrap.tfm mftrap.pl || exit 1
43 diff $testdir/mftrap.pl mftrap.pl || is_OK=false
44
45 ../gftype -m -i ./trap.72270gf >trap.typ || exit 1
46 diff $testdir/trap.typ trap.typ
47
48 $is_OK || {
49 echo ">>> There were some errors." >&2
50 exit 1
51 }
52