| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: omfonts.test 67982 2023-08-19 15:10:25Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2009, 2011 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
W2CDir=${W2CDir:-..} |
| 8 |
BinDir=${BinDir:-.} |
| 9 |
ExeExt=${ExeExt:-} |
| 10 |
_pltotf=$W2CDir/pltotf$ExeExt |
| 11 |
_tftopl=$W2CDir/tftopl$ExeExt |
| 12 |
_omfonts=$BinDir/omfonts$ExeExt |
| 13 |
|
| 14 |
tests=tests |
| 15 |
|
| 16 |
test -d $tests || mkdir -p $tests |
| 17 |
rc=0 |
| 18 |
|
| 19 |
$_pltotf $srcdir/$tests/Cherokee $tests/Cherokee || rc=1 |
| 20 |
|
| 21 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 22 |
$_tftopl $tests/Cherokee $tests/xCherokee || rc=2 |
| 23 |
|
| 24 |
diff $srcdir/$tests/Cherokee.pl $tests/xCherokee.pl || rc=3 |
| 25 |
|
| 26 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 27 |
OFMFONTS=$tests \ |
| 28 |
$_omfonts -ovp2ovf -verbose $srcdir/$tests/OCherokee $tests/OCherokee $tests/OCherokee || rc=4 |
| 29 |
|
| 30 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 31 |
$_omfonts -ofm2opl -verbose $tests/OCherokee $tests/OCherokee || rc=5 |
| 32 |
|
| 33 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 34 |
$_omfonts -opl2ofm -verbose $tests/OCherokee $tests/xOCherokee || rc=6 |
| 35 |
|
| 36 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 37 |
$_omfonts -ofm2opl -verbose $tests/xOCherokee $tests/xOCherokee || rc=7 |
| 38 |
|
| 39 |
diff $tests/OCherokee.opl $tests/xOCherokee.opl || rc=8 |
| 40 |
|
| 41 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 42 |
OFMFONTS=".;./$tests" \ |
| 43 |
$_omfonts -ovf2ovp -verbose $tests/OCherokee $tests/OCherokee $tests/xOCherokee || rc=9 |
| 44 |
|
| 45 |
diff $srcdir/$tests/OCherokee.ovp $tests/xOCherokee.ovp || rc=10 |
| 46 |
|
| 47 |
exit $rc |