| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: charwd.test 67982 2023-08-19 15:10:25Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2010, 2011 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 |
grep -v 'CHARWD R' $srcdir/$tests/charwd-r.pl >$tests/charwdr.pl |
| 17 |
|
| 18 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 19 |
$_omfonts -opl2ofm $tests/charwdr.pl $tests/charwdr.tfm || rc=1 |
| 20 |
|
| 21 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 22 |
TFMFONTS=$tests \ |
| 23 |
$_omfonts -ofm2opl $tests/charwdr.tfm $tests/charwdr.xpl || rc=2 |
| 24 |
|
| 25 |
diff $srcdir/$tests/charwd-r.pl $tests/charwdr.xpl || rc=3 |
| 26 |
|
| 27 |
grep -v 'CHARWD R' $srcdir/$tests/charwd-v.vpl >$tests/charwdv.vpl |
| 28 |
|
| 29 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 30 |
$_omfonts -ovp2ovf $tests/charwdv.vpl $tests/charwdv.vf $tests/charwdv.tfm || rc=4 |
| 31 |
|
| 32 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 33 |
TFMFONTS=$tests \ |
| 34 |
$_omfonts -ofm2opl $tests/charwdr.tfm $tests/charwdr.xpl || rc=5 |
| 35 |
|
| 36 |
diff $srcdir/$tests/charwd-r.pl $tests/charwdr.xpl || rc=6 |
| 37 |
|
| 38 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 39 |
TFMFONTS=$tests \ |
| 40 |
VFFONTS=$tests \ |
| 41 |
$_omfonts -ovf2ovp $tests/charwdv.vf $tests/charwdv.tfm $tests/charwdv.xpl || rc=7 |
| 42 |
|
| 43 |
diff $srcdir/$tests/charwd-v.vpl $tests/charwdv.xpl || rc=8 |
| 44 |
|
| 45 |
exit $rc |