Debian Codegraph @

texk/web2c/omegafonts/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 _omfonts=$BinDir/omfonts$ExeExt
10
11 tests=tests
12
13 test -d $tests || mkdir -p $tests
14 rc=0
15
16 VPL='ofontr1 ofontv4'
17 OVP='ofontr2 ofontr3 ofontv5 ofontv6'
18
19 TEXMFCNF=$srcdir/../../kpathsea
20 OFMFONTS=".;$srcdir/$tests"
21 export TEXMFCNF OFMFONTS
22
23 for f in $VPL; do
24 $_omfonts -opl2ofm $srcdir/$tests/$f.pl $tests/x$f.tfm || rc=1
25 $_omfonts -ofm2opl $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 $_omfonts -opl2ofm $srcdir/$tests/$f $tests/x$f || rc=4
31 $_omfonts -ofm2opl $tests/x$f $tests/x$f || rc=5
32 diff $srcdir/$tests/$f.opl $tests/x$f.opl || rc=6
33 done
34
35 rm -rf $tests/xofontr* $tests/xofontv*
36
37 for f in ofontr0; do
38 $_omfonts -opl2ofm $srcdir/$tests/$f.pl $tests/x$f.tfm || rc=7
39 $_omfonts -ofm2opl $tests/x$f.tfm $tests/x$f.pl || rc=8
40 diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=9
41 done
42
43 for f in $VPL; do
44 $_omfonts -ovp2ovf $srcdir/$tests/$f.vpl $tests/x$f.vf $tests/x$f.tfm || rc=10
45 $_omfonts -ofm2opl $tests/x$f.tfm $tests/x$f.pl || rc=11
46 diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=12
47 $_omfonts -ovf2ovp $tests/x$f.vf $tests/x$f.tfm $tests/x$f.vpl || rc=13
48 diff $srcdir/$tests/$f.vpl $tests/x$f.vpl || rc=14
49 done
50
51 for f in $OVP; do
52 $_omfonts -ovp2ovf $srcdir/$tests/$f $tests/x$f $tests/x$f || rc=15
53 $_omfonts -ofm2opl $tests/x$f $tests/x$f || rc=16
54 diff $srcdir/$tests/$f.opl $tests/x$f.opl || rc=17
55 $_omfonts -ovf2ovp $tests/x$f $tests/x$f $tests/x$f || rc=18
56 diff $srcdir/$tests/$f.ovp $tests/x$f.ovp || rc=19
57 done
58
59 exit $rc
60