Debian Codegraph @

texk/web2c/omegaware/ofonts.test

raw
1 #! /bin/sh -vx
2 # $Id: ofonts.test 67982 2023-08-19 15:10:25Z takuji $
3 # Copyright 2017 Karl Berry <[email protected]>
4 # Copyright 2009-2014 Peter Breitenlohner <[email protected]>
5 # You may freely use, modify and/or distribute this file.
6
7 BinDir=${BinDir:-.}
8 ExeExt=${ExeExt:-}
9 _wofm2opl=$BinDir/wofm2opl$ExeExt
10 _wopl2ofm=$BinDir/wopl2ofm$ExeExt
11 _wovf2ovp=$BinDir/wovf2ovp$ExeExt
12 _wovp2ovf=$BinDir/wovp2ovf$ExeExt
13
14 tests=omegaware/tests
15
16 test -d $tests || mkdir -p $tests
17 rc=0
18
19 VPL='ofontr1 ofontv4'
20 OVP='ofontr2 ofontr3 ofontv5 ofontv6'
21
22 for f in $VPL; do
23 $_wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || rc=1
24 TEXMFCNF=$srcdir/../kpathsea \
25 $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=2
26 diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=3
27 done
28
29 for f in $OVP; do
30 $_wopl2ofm -verbose $srcdir/$tests/$f $tests/x$f || rc=4
31 TEXMFCNF=$srcdir/../kpathsea \
32 $_wofm2opl -verbose $tests/x$f $tests/x$f || rc=5
33 diff $srcdir/$tests/$f.opl $tests/x$f.opl || rc=6
34 done
35
36 rm -rf $tests/xofontr* $tests/xofontv*
37
38 for f in ofontr0; do
39 $_wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || rc=7
40 TEXMFCNF=$srcdir/../kpathsea \
41 $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=8
42 diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=9
43 done
44
45 for f in $VPL; do
46 $_wovp2ovf -verbose $srcdir/$tests/$f.vpl $tests/x$f.vf $tests/x$f.tfm || rc=10
47 TEXMFCNF=$srcdir/../kpathsea \
48 $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=11
49 diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=12
50 TEXMFCNF=$srcdir/../kpathsea \
51 OFMFONTS=".;$srcdir/$tests" \
52 $_wovf2ovp -verbose $tests/x$f.vf $tests/x$f.tfm $tests/x$f.vpl || rc=13
53 diff $srcdir/$tests/$f.vpl $tests/x$f.vpl || rc=14
54 done
55
56 for f in $OVP; do
57 $_wovp2ovf -verbose $srcdir/$tests/$f $tests/x$f $tests/x$f || rc=15
58 TEXMFCNF=$srcdir/../kpathsea \
59 $_wofm2opl -verbose $tests/x$f $tests/x$f || rc=16
60 diff $srcdir/$tests/$f.opl $tests/x$f.opl || rc=17
61 TEXMFCNF=$srcdir/../kpathsea \
62 OFMFONTS=".;$srcdir/$tests" \
63 $_wovf2ovp -verbose $tests/x$f $tests/x$f $tests/x$f || rc=18
64 diff $srcdir/$tests/$f.ovp $tests/x$f.ovp || rc=19
65 done
66
67 exit $rc